Skip to content

Commit

Permalink
Changed selected attribute to HTML5 boolean syntax in SelectBox.js.
Browse files Browse the repository at this point in the history
Per MDN, HTMLOptionElement.selected is a Boolean attribute.
  • Loading branch information
jdufresne authored May 8, 2020
1 parent 3c5a586 commit 6137ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/static/admin/js/SelectBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
};
Expand Down

0 comments on commit 6137ec2

Please sign in to comment.