##// END OF EJS Templates
Merged r10487 from trunk (#11885)...
Toshi MARUYAMA -
r10280:03bff3308fc9
parent child
Show More
@@ -152,10 +152,10 function buildFilterRow(field, operator, values) {
152 152 var option = $('<option>');
153 153 if ($.isArray(filterValue)) {
154 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 156 } else {
157 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 160 select.append(option);
161 161 }
@@ -204,7 +204,7 function toggleFilter(field) {
204 204 function enableValues(field, indexes) {
205 205 var fieldId = field.replace('.', '_');
206 206 $('#tr_'+fieldId+' td.values .value').each(function(index) {
207 if (indexes.indexOf(index) >= 0) {
207 if ($.inArray(index, indexes) >= 0) {
208 208 $(this).removeAttr('disabled');
209 209 $(this).parents('span').first().show();
210 210 } else {
General Comments 0
You need to be logged in to leave comments. Login now