diff options
author | zhixin <wenzhixin2010@gmail.com> | 2015-11-24 16:12:28 +0800 |
---|---|---|
committer | zhixin <wenzhixin2010@gmail.com> | 2015-11-24 16:12:28 +0800 |
commit | 55755388aa09ccc8ce42431188c79c8d5a129a36 (patch) | |
tree | 7b10c1283d0ae7b449cf1ee3edb12bf0e4e26d9c /jquery.multiple.select.js | |
parent | 5b00fb082b556e2be723088a1da711513b61a987 (diff) | |
download | multiple-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.js | 2 |
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(); } }, |