Patch #32523 » javascript-perf2.diff
| public/javascripts/application.js | ||
|---|---|---|
|
filterTable.append(tr);
|
||
|
select = tr.find('td.operator select');
|
||
|
for (i = 0; i < operators.length; i++) {
|
||
|
operatorsLength = operators.length;
|
||
|
for (i = 0; i < operatorsLength; i++) {
|
||
|
var option = $('<option>').val(operators[i]).text(operatorLabels[operators[i]]);
|
||
|
if (operators[i] == operator) { option.prop('selected', true); }
|
||
|
select.append(option);
|
||
| ... | ... | |
|
);
|
||
|
select = tr.find('td.values select');
|
||
|
if (values.length > 1) { select.attr('multiple', true); }
|
||
|
for (i = 0; i < filterValues.length; i++) {
|
||
|
filterValuesLength = filterValues.length;
|
||
|
for (i = 0; i < filterValuesLength; i++) {
|
||
|
var filterValue = filterValues[i];
|
||
|
var option = $('<option>');
|
||
|
if ($.isArray(filterValue)) {
|
||
| ... | ... | |
|
);
|
||
|
$('#values_'+fieldId).val(values[0]);
|
||
|
select = tr.find('td.values select');
|
||
|
for (i = 0; i < filterValues.length; i++) {
|
||
|
filterValuesLength = filterValues.length;
|
||
|
for (i = 0; i < filterValuesLength; i++) {
|
||
|
var filterValue = filterValues[i];
|
||
|
var option = $('<option>');
|
||
|
option.val(filterValue[1]).text(filterValue[0]);
|
||