Commit e0cb4afe authored by David Stutz's avatar David Stutz

Merge pull request #497 from homeslicesolutions/master

Fixed "All Selected" problem on non-multiselect with one option
parents 26c50e2d 48c1fb06
...@@ -188,7 +188,11 @@ ...@@ -188,7 +188,11 @@
if (options.length === 0) { if (options.length === 0) {
return this.nonSelectedText; return this.nonSelectedText;
} }
else if (this.allSelectedText && options.length == $('option', $(select)).length) { else if (this.allSelectedText
&& options.length === $('option', $(select)).length
&& $('option', $(select)).length !== 1
&& this.multiple) {
if (this.selectAllNumber) { if (this.selectAllNumber) {
return this.allSelectedText + ' (' + options.length + ')'; return this.allSelectedText + ' (' + options.length + ')';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment