[SSE] Fix Bug 46974

This commit is contained in:
Julia Radzhabova 2020-11-27 00:25:44 +03:00
parent afd6e76a97
commit 89c68bb64e
4 changed files with 12 additions and 1 deletions

View file

@ -97,6 +97,7 @@ define([
}
});
Common.NotificationCenter.on('data:remduplicates', _.bind(this.onRemoveDuplicates, this));
Common.NotificationCenter.on('data:sortcustom', _.bind(this.onCustomSort, this));
},
SetDisabled: function(state) {

View file

@ -407,6 +407,10 @@ define([
},
onSortCells: function(menu, item) {
if (item.value=='advanced') {
Common.NotificationCenter.trigger('data:sortcustom', this);
return;
}
if (this.api) {
var res = this.api.asc_sortCellsRangeExpand();
if (res) {
@ -1875,6 +1879,7 @@ define([
documentHolder.pmiSortCells.setVisible((iscellmenu||isallmenu) && !iscelledit);
documentHolder.pmiSortCells.menu.items[2].setVisible(!internaleditor);
documentHolder.pmiSortCells.menu.items[3].setVisible(!internaleditor);
documentHolder.pmiSortCells.menu.items[4].setVisible(!internaleditor);
documentHolder.pmiFilterCells.setVisible(iscellmenu && !iscelledit && !internaleditor);
documentHolder.pmiReapply.setVisible((iscellmenu||isallmenu) && !iscelledit && !internaleditor);
documentHolder.ssMenu.items[12].setVisible((iscellmenu||isallmenu||isinsparkline) && !iscelledit);

View file

@ -305,6 +305,9 @@ define([
},{
caption : me.txtSortFontColor,
value : Asc.c_oAscSortOptions.ByColorFont
},{
caption : me.txtCustomSort,
value : 'advanced'
}
]
})
@ -1210,7 +1213,8 @@ define([
textSum: 'Sum',
textStdDev: 'StdDev',
textVar: 'Var',
textMore: 'More functions'
textMore: 'More functions',
txtCustomSort: 'Custom sort'
}, SSE.Views.DocumentHolder || {}));
});

View file

@ -1602,6 +1602,7 @@
"SSE.Views.DocumentHolder.textMax": "Max",
"SSE.Views.DocumentHolder.textMin": "Min",
"SSE.Views.DocumentHolder.textMore": "More functions",
"SSE.Views.DocumentHolder.txtCustomSort": "Custom sort",
"SSE.Views.DocumentHolder.textMoreFormats": "More formats",
"SSE.Views.DocumentHolder.textNone": "None",
"SSE.Views.DocumentHolder.textReplace": "Replace image",