diff options
author | JustAndrei <andrei.mitin@gmail.com> | 2014-05-18 18:28:32 +0300 |
---|---|---|
committer | JustAndrei <andrei.mitin@gmail.com> | 2014-05-18 18:28:32 +0300 |
commit | fd7f7dca8701d8b32776790c86058e527dc4b05c (patch) | |
tree | ed169261346b12971412eb135f0670b776536d19 | |
parent | 636e0235d9735b414c10a40c17e29e76af88a795 (diff) | |
download | multiple-select-fd7f7dca8701d8b32776790c86058e527dc4b05c.zip multiple-select-fd7f7dca8701d8b32776790c86058e527dc4b05c.tar.gz multiple-select-fd7f7dca8701d8b32776790c86058e527dc4b05c.tar.bz2 |
Update jquery.multiple.select.js
It didn't work correctly with optgroups.
-rw-r--r-- | jquery.multiple.select.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js index 3b79f8a..c447c17 100644 --- a/jquery.multiple.select.js +++ b/jquery.multiple.select.js @@ -244,7 +244,7 @@ }, update: function() { - var selects = this.getSelects('text'), + var selects = this.getSelects(), $span = this.$choice.find('>span'); if (selects.length === this.$selectItems.length + this.$disableItems.length && this.options.allSelected) { $span.removeClass('placeholder').html(this.options.allSelected); @@ -253,7 +253,7 @@ .replace('#', selects.length) .replace('%', this.$selectItems.length + this.$disableItems.length)); } else if (selects.length) { - $span.removeClass('placeholder').html(selects.join(', ')); + $span.removeClass('placeholder').html(this.getSelects('text').join(', ')); } else { $span.addClass('placeholder').html(this.options.placeholder); } |