0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Changed selected attribute to HTML5 boolean syntax in SelectBox.js.

Per MDN, HTMLOptionElement.selected is a Boolean attribute.
This commit is contained in:
Jon Dufresne 2020-05-07 21:02:42 -07:00 committed by GitHub
parent 3c5a586ce9
commit 6137ec2bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}
};