Commit f942dbd1 authored by Luís Rudge's avatar Luís Rudge

fixing a bug when 'multiple' option wasn't enabled

parent 1f4dd581
...@@ -161,7 +161,7 @@ ...@@ -161,7 +161,7 @@
// Build the dropdown and bind event handling. // Build the dropdown and bind event handling.
buildDropdown: function () { buildDropdown: function () {
//If options.includeSelectAllOption === true, add the include all checkbox //If options.includeSelectAllOption === true, add the include all checkbox
if (this.options.includeSelectAllOption) { if (this.options.includeSelectAllOption && this.options.multiple) {
this.createSelectAllOption(); this.createSelectAllOption();
} }
this.$select.children().each($.proxy(function (index, element) { this.$select.children().each($.proxy(function (index, element) {
......
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