From 7dafac9d3381bed94489e88149c8e7941b442ebd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 8 Aug 2019 10:52:48 +0300 Subject: [PATCH] [SSE] Change page settings on asc_onUpdateDocumentProps event --- apps/spreadsheeteditor/main/app/controller/Toolbar.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/Toolbar.js b/apps/spreadsheeteditor/main/app/controller/Toolbar.js index 731856662d..e78a29b298 100644 --- a/apps/spreadsheeteditor/main/app/controller/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/controller/Toolbar.js @@ -3219,7 +3219,6 @@ define([ if (this.api && state) { this._state.pgsize = [0, 0]; this.api.asc_changeDocSize(item.value[0], item.value[1], this.api.asc_getActiveWorksheetIndex()); - Common.NotificationCenter.trigger('page:settings'); Common.component.Analytics.trackEvent('ToolBar', 'Page Size'); } @@ -3231,7 +3230,6 @@ define([ this._state.pgmargins = undefined; if (item.value !== 'advanced') { this.api.asc_changePageMargins(item.value[1], item.value[3], item.value[0], item.value[2], this.api.asc_getActiveWorksheetIndex()); - Common.NotificationCenter.trigger('page:settings'); } else { var win, props, me = this; @@ -3250,7 +3248,6 @@ define([ Common.localStorage.setItem("sse-pgmargins-right", props.asc_getRight()); me.api.asc_changePageMargins( props.asc_getLeft(), props.asc_getRight(), props.asc_getTop(), props.asc_getBottom(), me.api.asc_getActiveWorksheetIndex()); - Common.NotificationCenter.trigger('page:settings'); Common.NotificationCenter.trigger('edit:complete', me.toolbar); } } @@ -3269,7 +3266,6 @@ define([ this._state.pgorient = undefined; if (this.api && item.checked) { this.api.asc_changePageOrient(item.value==Asc.c_oAscPageOrientation.PagePortrait, this.api.asc_getActiveWorksheetIndex()); - Common.NotificationCenter.trigger('page:settings'); } Common.NotificationCenter.trigger('edit:complete', this.toolbar);