Commit 8a882bcb authored by Julia Radzhabova's avatar Julia Radzhabova

[SSE] оптимизация кода.

parent 8625a594
...@@ -1168,8 +1168,12 @@ define([ ...@@ -1168,8 +1168,12 @@ define([
Common.util.Shortcuts.delegateShortcuts({ Common.util.Shortcuts.delegateShortcuts({
shortcuts: { shortcuts: {
'command+l,ctrl+l': function(e) { 'command+l,ctrl+l': function(e) {
if (me.editMode && (!me.api.asc_getCellInfo().asc_getAutoFilterInfo() || me.api.asc_getCellInfo().asc_getAutoFilterInfo().asc_getTableName()===null)) if (me.editMode) {
me._setTableFormat(me.toolbar.mnuTableTemplatePicker.store.at(23).get('name')); var cellinfo = me.api.asc_getCellInfo(),
filterinfo = cellinfo.asc_getAutoFilterInfo();
if (!filterinfo || filterinfo.asc_getTableName()===null)
me._setTableFormat(me.toolbar.mnuTableTemplatePicker.store.at(23).get('name'));
}
return false; return false;
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment