Commit 2ba8085c authored by David Stutz's avatar David Stutz

Merge pull request #628 from Abi1ity/master

Fixed trigger onSelectAll run.
parents f44ea79b 2e93a99a
......@@ -309,7 +309,7 @@
/**
* Triggered on select all.
*/
onSelectAll: function() {
onSelectAll: function(checked) {
},
/**
......@@ -1333,11 +1333,14 @@
if (checkedBoxesLength > 0 && checkedBoxesLength === allBoxesLength) {
selectAllInput.prop("checked", true);
selectAllLi.addClass(this.options.selectedClass);
this.options.onSelectAll();
this.options.onSelectAll(true);
}
else {
selectAllInput.prop("checked", false);
selectAllLi.removeClass(this.options.selectedClass);
if (checkedBoxesLength === 0) {
this.options.onSelectAll(false);
}
}
}
},
......
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