Commit 462fbf0a authored by Raffael Santschi's avatar Raffael Santschi

fix selectAll/deselectAll for non-visible checkboxes

if checkbox is not visible selectAll/deselectAll does not work
parent 6367ced0
......@@ -332,6 +332,7 @@
numberDisplayed: 3,
disableIfEmpty: false,
delimiterText: ', ',
justVisible: true,
templates: {
button: '<button type="button" class="multiselect dropdown-toggle" data-toggle="dropdown"><span class="multiselect-selected-text"></span> <b class="caret"></b></button>',
ul: '<ul class="multiselect-container dropdown-menu"></ul>',
......@@ -481,10 +482,10 @@
if (isSelectAllOption) {
if (checked) {
this.selectAll();
this.selectAll(this.options.justVisible);
}
else {
this.deselectAll();
this.deselectAll(this.options.justVisible);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment