diff options
author | zhixin <wenzhixin2010@gmail.com> | 2014-04-19 00:23:11 +0800 |
---|---|---|
committer | zhixin <wenzhixin2010@gmail.com> | 2014-04-19 00:23:11 +0800 |
commit | 72fe6164be33d98f28497488bb6773516ff1fde8 (patch) | |
tree | 949c300843e1eb5b7d87104bdb02c5f4e1ae9d21 | |
parent | c75bc3209b712c21da57520c851972b7b206016e (diff) | |
download | multiple-select-72fe6164be33d98f28497488bb6773516ff1fde8.zip multiple-select-72fe6164be33d98f28497488bb6773516ff1fde8.tar.gz multiple-select-72fe6164be33d98f28497488bb6773516ff1fde8.tar.bz2 |
Fix #62: call open function after init when isOpen and filter options are set to true.
-rw-r--r-- | jquery.multiple.select.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js index 119cd71..35cde1a 100644 --- a/jquery.multiple.select.js +++ b/jquery.multiple.select.js @@ -48,10 +48,6 @@ this.selectAllName = 'name="selectAll' + name + '"'; this.selectGroupName = 'name="selectGroup' + name + '"'; this.selectItemName = 'name="selectItem' + name + '"'; - - if (this.options.isOpen) { - this.open(); - } } MultipleSelect.prototype = { @@ -95,6 +91,10 @@ this.$noResults = this.$drop.find('.ms-no-results'); this.events(); this.update(); + + if (this.options.isOpen) { + this.open(); + } }, optionToHtml: function(i, elm, group, groupDisabled) { |