summaryrefslogtreecommitdiffstats
path: root/jquery.multiple.select.js
diff options
context:
space:
mode:
authorzhixin <wenzhixin2010@gmail.com>2015-11-24 16:12:28 +0800
committerzhixin <wenzhixin2010@gmail.com>2015-11-24 16:12:28 +0800
commit55755388aa09ccc8ce42431188c79c8d5a129a36 (patch)
tree7b10c1283d0ae7b449cf1ee3edb12bf0e4e26d9c /jquery.multiple.select.js
parent5b00fb082b556e2be723088a1da711513b61a987 (diff)
downloadmultiple-select-55755388aa09ccc8ce42431188c79c8d5a129a36.zip
multiple-select-55755388aa09ccc8ce42431188c79c8d5a129a36.tar.gz
multiple-select-55755388aa09ccc8ce42431188c79c8d5a129a36.tar.bz2
Fix #220: Prevents updateSelectAll() from calling options.onCheckAll() on init
Diffstat (limited to 'jquery.multiple.select.js')
-rw-r--r--jquery.multiple.select.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 8fa8f17..3610d93 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -387,7 +387,7 @@
}
this.$selectAll.prop('checked', $items.length &&
$items.length === $items.filter(':checked').length);
- if (this.$selectAll.prop('checked')) {
+ if (!isInit && this.$selectAll.prop('checked')) {
this.options.onCheckAll();
}
},