Commit 0086264b authored by David Stutz's avatar David Stutz

Fixed #73.

Fixed #73.
parent f504044c
...@@ -189,7 +189,7 @@ ...@@ -189,7 +189,7 @@
// If options.includeSelectAllOption === true, add the include all checkbox. // If options.includeSelectAllOption === true, add the include all checkbox.
if (this.options.includeSelectAllOption && this.options.multiple && !alreadyHasSelectAll) { if (this.options.includeSelectAllOption && this.options.multiple && !alreadyHasSelectAll) {
this.$select.prepend('<option value="select-all-option">' + this.options.selectAllText + '</option>'); this.$select.prepend('<option value="' + this.options.selectAllValue + '">' + this.options.selectAllText + '</option>');
} }
this.$select.children().each($.proxy(function (index, element) { this.$select.children().each($.proxy(function (index, element) {
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
// Get all selected options. // Get all selected options.
getSelected: function () { getSelected: function () {
return $('option:selected[value!="select-all-option"]', this.$select); return $('option:selected[value!="' + this.options.selectAllValue + '"]', this.$select);
}, },
// Get filtered options. // Get filtered options.
......
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