summaryrefslogtreecommitdiffstats
path: root/jquery.multiple.select.js
diff options
context:
space:
mode:
Diffstat (limited to 'jquery.multiple.select.js')
-rw-r--r--jquery.multiple.select.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index b118efe..119cd71 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -257,6 +257,9 @@
var $items = this.$selectItems.filter(':visible');
this.$selectAll.prop('checked', $items.length &&
$items.length === $items.filter(':checked').length);
+ if (this.$selectAll.prop('checked')) {
+ this.options.onCheckAll();
+ }
},
updateOptGroupSelect: function() {