[SSE] Refactoring sort settings

This commit is contained in:
Julia Radzhabova 2019-11-28 15:35:17 +03:00
parent 1c21971194
commit 5a4fe3df9f

View file

@ -366,9 +366,10 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
len = values.length; len = values.length;
this.column_data = []; this.column_data = [];
for (var i=0; i<len; i++) { for (var i=0; i<len; i++) {
if (values[i]==undefined) continue;
this.column_data.push({ value: i, displayValue: values[i] }); this.column_data.push({ value: i, displayValue: values[i] });
} }
if (len>500) if (this.column_data.length>500)
this.column_data.push({ value: -1, displayValue: '(' + (this.sortOptions.sortcol ? this.textMoreCols : this.textMoreRows) + '...)' }); this.column_data.push({ value: -1, displayValue: '(' + (this.sortOptions.sortcol ? this.textMoreCols : this.textMoreRows) + '...)' });
}, },