Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions demos/callbacks.htm
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@
close: function(){
$callback.text("Select closed!");
},
beforeCheckAll: function(){
$callback.text("Before Check all click event!");
},
checkAll: function(){
$callback.text("Check all clicked!");
},
beforeUncheckAll: function(){
$callback.text("Before Uncheck all click event!");
},
uncheckAll: function(){
$callback.text("Uncheck all clicked!");
},
Expand Down Expand Up @@ -94,9 +100,15 @@ <h2>Callbacks &amp; Events</h2>
checkAll: function(){
$callback.text("Check all clicked!");
},
beforeCheckAll: function(){
$callback.text("Before Check all click event!");
},
uncheckAll: function(){
$callback.text("Uncheck all clicked!");
},
beforeUncheckAll: function(){
$callback.text("Before Uncheck all click event!");
},
optgrouptoggle: function(event, ui){
var values = $.map(ui.inputs, function(checkbox){
return checkbox.value;
Expand Down
2 changes: 2 additions & 0 deletions src/jquery.multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,11 +625,13 @@
},

checkAll: function(e) {
this._trigger('beforeCheckAll');
this._toggleChecked(true);
this._trigger('checkAll');
},

uncheckAll: function() {
this._trigger('beforeUncheckAll');
this._toggleChecked(false);
this._trigger('uncheckAll');
},
Expand Down