mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-12-25 05:43:46 +01:00
selectSelectAll is now a separate function
This commit is contained in:
parent
47487c4d61
commit
6c5f082e3b
@ -1,9 +1,12 @@
|
|||||||
function selectSelectAll_click(e) {
|
function selectSelectAll_click(e) {
|
||||||
const ctrl = $(e.target).next()
|
const ctrl = $(e.target).next()
|
||||||
if (ctrl.prop('type') == 'select-multiple') {
|
selectSelectAll(ctrl)
|
||||||
ctrl.find("option").each(function () {
|
}
|
||||||
|
function selectSelectAll(target) {
|
||||||
|
if (target.prop('type') == 'select-multiple') {
|
||||||
|
target.find("option").each(function () {
|
||||||
$(this).prop('selected', true);
|
$(this).prop('selected', true);
|
||||||
ctrl.trigger("change")
|
target.trigger("change")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user