@@ -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 ( |
|
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 ( |
|
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 ( |
|
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