[SSE] Из списков числовых и текстовых фильтров убрала пункт None (т.к. его аналог Clear - чистит все фильтры).
This commit is contained in:
parent
51e83664e8
commit
503ee98e6a
|
@ -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; i<items.length; i++) {
|
||||
for (var i=0; i<items.length; i++) {
|
||||
items[i].on('click', _.bind((items[i].options.type == Asc.c_oAscAutoFilterTypes.CustomFilters) ? this.onNumCustomFilterItemClick :
|
||||
((items[i].options.type == Asc.c_oAscAutoFilterTypes.DynamicFilter) ? this.onNumDynamicFilterItemClick : this.onTop10FilterItemClick ), this));
|
||||
}
|
||||
|
@ -614,7 +612,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.beginsWith, caption: this.txtBegins, checkable: true, type: Asc.c_oAscAutoFilterTypes.CustomFilters},
|
||||
|
@ -875,10 +872,7 @@ define([
|
|||
value2 = ((customFilters.length>1) ? (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'
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue