michael / multiselect

jQuery UI Multiselect Widget
http://www.quasipartikel.at/multiselect
MIT License
557 stars 208 forks source link

Bug with searchable option when its value is false and using several lists #59

Open ghusta opened 14 years ago

ghusta commented 14 years ago

The searchable option affects all the multiselect lists when false. For example, if we try to do : $("#list1").multiselect({sortable: false, searchable: true}); $("#list2").multiselect({sortable: false, searchable: false});

All the widgets now have the search input hidden.

The problem is with this code : // set up livesearch if (this.options.searchable) { this._registerSearchEvents(this.availableContainer.find('input.search')); } else { $('.search').hide(); }

The else block should be replaced by : this.availableContainer.find('input.search').hide();

JonDavies commented 12 years ago

Thanks for the fix!