##// END OF EJS Templates
don't use contains in SelectWidget item_query...
MinRK -
Show More
@@ -403,7 +403,7 b' define(['
403 var items = this.model.get('value_names');
403 var items = this.model.get('value_names');
404 var that = this;
404 var that = this;
405 _.each(items, function(item, index) {
405 _.each(items, function(item, index) {
406 var item_query = ' :contains("' + item + '")';
406 var item_query = 'option[value_name="' + item + '"]';
407 if (that.$listbox.find(item_query).length === 0) {
407 if (that.$listbox.find(item_query).length === 0) {
408 $('<option />')
408 $('<option />')
409 .text(item)
409 .text(item)
General Comments 0
You need to be logged in to leave comments. Login now