[SSE] Refactoring sort settings

This commit is contained in:
Julia Radzhabova 2019-11-28 17:33:54 +03:00
parent ad4f70949f
commit dfd52d3886
2 changed files with 6 additions and 6 deletions

View file

@ -378,8 +378,8 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
if (values[i]==undefined) continue;
this.column_data.push({ value: i, displayValue: values[i] });
}
if (this.column_data.length>500)
this.column_data.push({ value: -1, displayValue: '(' + (this.sortOptions.sortcol ? this.textMoreCols : this.textMoreRows) + '...)' });
if (this.column_data.length>=500)
this.column_data.push({ value: -1, displayValue: this.sortOptions.sortcol ? this.textMoreCols : this.textMoreRows });
},
updateSortValues: function() {
@ -633,8 +633,8 @@ define([ 'text!spreadsheeteditor/main/app/template/SortDialog.template',
errorMoreOneRow: 'More than one row is selected.',
errorMoreOneCol: 'More than one column is selected.',
txtInvalidRange: 'Invalid cells range.',
textMoreRows: 'More rows',
textMoreCols: 'More columns'
textMoreRows: '(More rows...)',
textMoreCols: '(More columns...)'
}, SSE.Views.SortDialog || {}));
});

View file

@ -2115,8 +2115,8 @@
"SSE.Views.SortDialog.errorMoreOneRow": "More than one row is selected.",
"SSE.Views.SortDialog.errorMoreOneCol": "More than one column is selected.",
"SSE.Views.SortDialog.txtInvalidRange": "Invalid cells range.",
"SSE.Views.SortDialog.textMoreRows": "More rows",
"SSE.Views.SortDialog.textMoreCols": "More columns",
"SSE.Views.SortDialog.textMoreRows": "(More rows...)",
"SSE.Views.SortDialog.textMoreCols": "(More columns...)",
"SSE.Views.Statusbar.CopyDialog.itemCopyToEnd": "(Copy to end)",
"SSE.Views.Statusbar.CopyDialog.itemMoveToEnd": "(Move to end)",
"SSE.Views.Statusbar.CopyDialog.textCopyBefore": "Copy before sheet",