Merge pull request #6634 from minrk/select-contains

don't use contains in SelectWidget item_query
This commit is contained in:
Thomas Kluyver 2014-10-07 15:20:25 -07:00
commit 6163656f28

View File

@ -403,7 +403,7 @@ define([
var items = this.model.get('value_names');
var that = this;
_.each(items, function(item, index) {
var item_query = ' :contains("' + item + '")';
var item_query = 'option[value_name="' + item + '"]';
if (that.$listbox.find(item_query).length === 0) {
$('<option />')
.text(item)