diff --git a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js index 763065358..24c041b90 100644 --- a/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js +++ b/apps/spreadsheeteditor/main/app/view/AutoFilterDialog.js @@ -584,7 +584,6 @@ define([ menu : new Common.UI.Menu({ menuAlign: 'tl-tr', items: [ - {value: 0, caption: this.textNoFilter, checkable: true}, {value: Asc.c_oAscCustomAutoFilter.equals, caption: this.txtEquals, checkable: true, type: Asc.c_oAscAutoFilterTypes.CustomFilters}, {value: Asc.c_oAscCustomAutoFilter.doesNotEqual, caption: this.txtNotEquals, checkable: true, type: Asc.c_oAscAutoFilterTypes.CustomFilters}, {value: Asc.c_oAscCustomAutoFilter.isGreaterThan, caption: this.txtGreater, checkable: true, type: Asc.c_oAscAutoFilterTypes.CustomFilters}, @@ -600,8 +599,7 @@ define([ }) }); var items = this.miNumFilter.menu.items; - items[0].on('click', _.bind(this.onClear, this)); - for (var i=1; i1) ? (null === customFilters[1].asc_getVal() ? '' : customFilters[1].asc_getVal()) : ''); } - if (item.value==0) { - this.onClear(); - return; - } else if (item.value!==-1) { + if (item.value!==-1) { var newCustomFilter = new Asc.CustomFilters(); newCustomFilter.asc_setCustomFilters([new Asc.CustomFilter()]); @@ -1341,7 +1335,6 @@ define([ txtNotEnds : "Does not end with...", txtContains : "Contains...", txtNotContains : "Does not contain...", - textNoFilter : "None", textSelectAllResults: 'Select All Search Results', textAddSelection : 'Add current selection to filter' diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index 28714f586..3f891cfee 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -270,7 +270,6 @@ "SSE.Views.AutoFilterDialog.txtNotEnds": "Does not end with...", "SSE.Views.AutoFilterDialog.txtContains": "Contains...", "SSE.Views.AutoFilterDialog.txtNotContains": "Does not contain...", - "SSE.Views.AutoFilterDialog.textNoFilter": "None", "SSE.Views.AutoFilterDialog.textSelectAllResults": "Select All Search Results", "SSE.Views.AutoFilterDialog.textAddSelection": "Add current selection to filter", "SSE.Views.CellEditor.textManager": "Name Manager",