diff options
Diffstat (limited to 'jquery.multiple.select.js')
-rw-r--r-- | jquery.multiple.select.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js index 8762086..7c28e9c 100644 --- a/jquery.multiple.select.js +++ b/jquery.multiple.select.js @@ -223,7 +223,9 @@ update: function() { var selects = this.getSelects('text'), $span = this.$choice.find('>span'); - if (selects.length) { + if(selects.length == this.$selectItems.length && this.options.overrideButtonText) { + $span.removeClass('placeholder').html(this.options.selectAllText); + } else if (selects.length) { $span.removeClass('placeholder').html(selects.join(', ')); } else { $span.addClass('placeholder').html(this.options.placeholder); |