##// END OF EJS Templates
fix broken issue list filter (#11885)...
Toshi MARUYAMA -
r10278:fe832071d44d
parent child
Show More
@@ -152,10 +152,10 function buildFilterRow(field, operator, values) {
152 var option = $('<option>');
152 var option = $('<option>');
153 if ($.isArray(filterValue)) {
153 if ($.isArray(filterValue)) {
154 option.val(filterValue[1]).text(filterValue[0]);
154 option.val(filterValue[1]).text(filterValue[0]);
155 if (values.indexOf(filterValue[1]) > -1) {option.attr('selected', true);}
155 if ($.inArray(filterValue[1], values) > -1) {option.attr('selected', true);}
156 } else {
156 } else {
157 option.val(filterValue).text(filterValue);
157 option.val(filterValue).text(filterValue);
158 if (values.indexOf(filterValue) > -1) {option.attr('selected', true);}
158 if ($.inArray(filterValue, values) > -1) {option.attr('selected', true);}
159 }
159 }
160 select.append(option);
160 select.append(option);
161 }
161 }
@@ -204,7 +204,7 function toggleFilter(field) {
204 function enableValues(field, indexes) {
204 function enableValues(field, indexes) {
205 var fieldId = field.replace('.', '_');
205 var fieldId = field.replace('.', '_');
206 $('#tr_'+fieldId+' td.values .value').each(function(index) {
206 $('#tr_'+fieldId+' td.values .value').each(function(index) {
207 if (indexes.indexOf(index) >= 0) {
207 if ($.inArray(index, indexes) >= 0) {
208 $(this).removeAttr('disabled');
208 $(this).removeAttr('disabled');
209 $(this).parents('span').first().show();
209 $(this).parents('span').first().show();
210 } else {
210 } else {
General Comments 0
You need to be logged in to leave comments. Login now