[SSE] Fix Bug 38033, Bug 38894

This commit is contained in:
Julia Radzhabova 2018-09-12 15:33:30 +03:00 committed by Alexey Golubev
parent d5c7220c9c
commit 5481ef7de4

View file

@ -256,6 +256,19 @@ define([
})
);
if (!config.isEdit) {
var menu = me.header.btnOptions.menu;
me.header.mnuitemHideHeadings.hide();
me.header.mnuitemHideGridlines.hide();
me.header.mnuitemFreezePanes.hide();
menu.items[5].hide();
menu.items[7].hide();
if (!config.canComments) { // show advanced settings for editing and commenting mode
mnuitemAdvSettings.hide();
menu.items[9].hide();
}
}
var _on_btn_zoom = function (btn) {
if ( btn == 'up' ) {
var _f = Math.floor(this.api.asc_getZoom() * 10)/10;