10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 11:17:42 +02:00

Modernize option selection

This commit is contained in:
Mickaël Véril 2020-01-29 17:36:50 +01:00
parent 9e0d3359b0
commit 47487c4d61

View File

@ -2,7 +2,7 @@ function selectSelectAll_click(e) {
const ctrl = $(e.target).next() const ctrl = $(e.target).next()
if (ctrl.prop('type') == 'select-multiple') { if (ctrl.prop('type') == 'select-multiple') {
ctrl.find("option").each(function () { ctrl.find("option").each(function () {
$(this).attr('selected', 'selected'); $(this).prop('selected', true);
ctrl.trigger("change") ctrl.trigger("change")
}); });
} }