[SSE] Collapse toolbar when document context menu is opened.

This commit is contained in:
Julia Radzhabova 2017-04-28 17:43:12 +03:00
parent 857d688afb
commit dead0af353

View file

@ -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);
},