[SSE] Collapse toolbar when document context menu is opened.
This commit is contained in:
parent
857d688afb
commit
dead0af353
|
@ -301,6 +301,7 @@ define([
|
|||
if ( !config.isEditDiagram && !config.isEditMailMerge ) {
|
||||
this.api.asc_registerCallback('asc_onSendThemeColors', _.bind(this.onSendThemeColors, this));
|
||||
this.api.asc_registerCallback('asc_onMathTypes', _.bind(this.onMathTypes, this));
|
||||
this.api.asc_registerCallback('asc_onContextMenu', _.bind(this.onContextMenu, this));
|
||||
}
|
||||
|
||||
this.api.asc_registerCallback('asc_onInitEditorStyles', _.bind(this.onApiInitEditorStyles, this));
|
||||
|
@ -324,6 +325,10 @@ define([
|
|||
// Common.component.Analytics.trackEvent('ToolBar', 'Open Document');
|
||||
// },
|
||||
|
||||
onContextMenu: function() {
|
||||
this.toolbar.collapseToolbar();
|
||||
},
|
||||
|
||||
onPrint: function(e) {
|
||||
Common.NotificationCenter.trigger('print', this.toolbar);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue