@@ -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 (values.indexOf(filterValue[1]) > -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 (values.indexOf(filterValue) > -1) {option.attr('selected', true);} | |
159 | } |
|
159 | } | |
160 | select.append(option); |
|
160 | select.append(option); | |
161 | } |
|
161 | } |
General Comments 0
You need to be logged in to leave comments.
Login now