10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-12-25 13:53:48 +01:00

trigger("change") for selectSelectAll

This commit is contained in:
Mickaël Véril 2020-01-28 10:53:37 +01:00
parent 17fff81183
commit bc297ae40d

View File

@ -1,8 +1,9 @@
function selectSelectAll_click(e) { function selectSelectAll_click(e) {
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).attr('selected', 'selected');
}); ctrl.trigger("change")
});
} }
} }