diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-05-07 21:02:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-08 06:02:42 +0200 |
| commit | 6137ec2bf2c6398b5980b8cea91ff757a867b222 (patch) | |
| tree | 1fb3d7158380718633b1c985e126136454b5bdfe | |
| parent | 3c5a586ce9bef4203f3f62b9ec9f449cfafad3bf (diff) | |
Changed selected attribute to HTML5 boolean syntax in SelectBox.js.
Per MDN, HTMLOptionElement.selected is a Boolean attribute.
| -rw-r--r-- | django/contrib/admin/static/admin/js/SelectBox.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/static/admin/js/SelectBox.js b/django/contrib/admin/static/admin/js/SelectBox.js index 6716e34530..1927b4cefa 100644 --- a/django/contrib/admin/static/admin/js/SelectBox.js +++ b/django/contrib/admin/static/admin/js/SelectBox.js @@ -102,7 +102,7 @@ select_all: function(id) { const box = document.getElementById(id); for (const option of box.options) { - option.selected = 'selected'; + option.selected = true; } } }; |
