From a117ebcbb12fc392ed691fb197df7cb9528ee7d3 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 8 Aug 2024 12:15:48 +0300 Subject: [PATCH] Fix bug with co-editing icon --- apps/documenteditor/main/app/view/Toolbar.js | 2 +- apps/pdfeditor/main/app/view/Toolbar.js | 2 +- apps/presentationeditor/main/app/view/Toolbar.js | 2 +- apps/spreadsheeteditor/main/app/view/Toolbar.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 98fdacfdf4..1ca0cde034 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -3287,7 +3287,7 @@ define([ if ( cls !== me.btnSaveCls && me.btnCollabChanges.rendered ) { me.btnSaveTip = ((length > 1) ? me.tipSaveCoauth : me.tipSave ) + Common.Utils.String.platformKey('Ctrl+S'); me.btnCollabChanges.updateHint(me.btnSaveTip); - me.btnCollabChanges.$icon.removeClass(me.btnSaveCls).addClass(cls); + me.btnCollabChanges.changeIcon({next: cls, curr: me.btnSaveCls}); me.btnSaveCls = cls; } }, diff --git a/apps/pdfeditor/main/app/view/Toolbar.js b/apps/pdfeditor/main/app/view/Toolbar.js index 587c1e2954..742fa00423 100644 --- a/apps/pdfeditor/main/app/view/Toolbar.js +++ b/apps/pdfeditor/main/app/view/Toolbar.js @@ -1751,7 +1751,7 @@ define([ if ( cls !== me.btnSaveCls && me.btnCollabChanges.rendered ) { me.btnSaveTip = ((length > 1) ? me.tipSaveCoauth : me.tipSave ) + Common.Utils.String.platformKey('Ctrl+S'); me.btnCollabChanges.updateHint(me.btnSaveTip); - me.btnCollabChanges.$icon.removeClass(me.btnSaveCls).addClass(cls); + me.btnCollabChanges.changeIcon({next: cls, curr: me.btnSaveCls}); me.btnSaveCls = cls; } }, diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 0ed6af2497..32d2af42e5 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -2145,7 +2145,7 @@ define([ if (cls !== this.btnSaveCls && this.btnCollabChanges.rendered) { this.btnSaveTip = ((length > 1) ? this.tipSaveCoauth : this.tipSave ) + Common.Utils.String.platformKey('Ctrl+S'); this.btnCollabChanges.updateHint(this.btnSaveTip); - this.btnCollabChanges.$icon.removeClass(this.btnSaveCls).addClass(cls); + this.btnCollabChanges.changeIcon({next: cls, curr: this.btnSaveCls}); this.btnSaveCls = cls; } }, diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 61370d25fc..76c25c8e9f 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -3273,7 +3273,7 @@ define([ if (cls !== this.btnSaveCls && this.btnCollabChanges.rendered) { this.btnSaveTip = ((length>1) ? this.tipSaveCoauth : this.tipSave )+ Common.Utils.String.platformKey('Ctrl+S'); this.btnCollabChanges.updateHint(this.btnSaveTip); - this.btnCollabChanges.$icon.removeClass(this.btnSaveCls).addClass(cls); + this.btnCollabChanges.changeIcon({next: cls, curr: this.btnSaveCls}); this.btnSaveCls = cls; } },