From d0afd9bd8a73e9d2bb92e630d945450b339bb26c Mon Sep 17 00:00:00 2001 From: OVSharova Date: Sat, 2 Sep 2023 05:20:16 +0300 Subject: [PATCH] Bug 63887 --- apps/documenteditor/main/app/controller/Statusbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Statusbar.js b/apps/documenteditor/main/app/controller/Statusbar.js index fa8c4003ed..a601ddbe9d 100644 --- a/apps/documenteditor/main/app/controller/Statusbar.js +++ b/apps/documenteditor/main/app/controller/Statusbar.js @@ -126,7 +126,7 @@ define([ onAppReady: function (config) { var me = this; - + me._isDocReady = true; (new Promise(function(resolve) { resolve(); })).then(function () { @@ -248,8 +248,8 @@ define([ _onZoomChange: function(percent, type) { this.statusbar.btnZoomToPage.toggle(type == 2, true); this.statusbar.btnZoomToWidth.toggle(type == 1, true); - $('.statusbar #label-zoom').text(Common.Utils.String.format(this.zoomText, percent)); + if(!this._isDocReady) return; Common.localStorage.setItem('de-last-zoom', percent); },