From 4cd87ff1752df4a0df1ba0868d7316b8472b5249 Mon Sep 17 00:00:00 2001 From: "Julia.Svinareva" Date: Thu, 18 Apr 2024 15:25:35 +0300 Subject: [PATCH] [DE PE SSE PDF] Fix bug 67213 --- apps/documenteditor/main/app/controller/Statusbar.js | 2 +- apps/documenteditor/main/app/view/SignatureSettings.js | 2 +- apps/documenteditor/main/app/view/Toolbar.js | 3 ++- apps/pdfeditor/main/app/controller/Toolbar.js | 2 +- apps/pdfeditor/main/app/view/Toolbar.js | 3 ++- apps/presentationeditor/main/app/view/SignatureSettings.js | 2 +- apps/presentationeditor/main/app/view/Toolbar.js | 3 ++- apps/spreadsheeteditor/main/app/view/SignatureSettings.js | 2 +- apps/spreadsheeteditor/main/app/view/Toolbar.js | 3 ++- 9 files changed, 13 insertions(+), 9 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Statusbar.js b/apps/documenteditor/main/app/controller/Statusbar.js index a601ddbe9d..60c0442e30 100644 --- a/apps/documenteditor/main/app/controller/Statusbar.js +++ b/apps/documenteditor/main/app/controller/Statusbar.js @@ -304,7 +304,7 @@ define([ var tip = new Common.UI.SynchronizeTip({ target : me.btnTurnReview.$el, text : text, - placement: 'top-left', + placement: Common.UI.isRTL() ? 'top-right' : 'top-left', showLink: !!storage }); tip.on({ diff --git a/apps/documenteditor/main/app/view/SignatureSettings.js b/apps/documenteditor/main/app/view/SignatureSettings.js index 33e926c97a..b9b0a2627d 100644 --- a/apps/documenteditor/main/app/view/SignatureSettings.js +++ b/apps/documenteditor/main/app/view/SignatureSettings.js @@ -365,7 +365,7 @@ define([ text : tipText, showLink: showLink, textLink: this.txtContinueEditing, - placement: 'left-bottom' + placement: Common.UI.isRTL() ? 'right-bottom' : 'left-bottom' }); tip.on({ 'dontshowclick': function() { diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index d325611c57..dc2b99dd14 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -3092,9 +3092,10 @@ define([ }, createSynchTip: function () { + var direction = Common.UI.isRTL() ? 'left' : 'right'; this.synchTooltip = new Common.UI.SynchronizeTip({ extCls: (this.mode.compactHeader) ? undefined : 'inc-index', - placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom', + placement: this.mode.isDesktopApp ? 'bottom-' + direction : direction + '-bottom', target: this.btnCollabChanges.$el }); this.synchTooltip.on('dontshowclick', function () { diff --git a/apps/pdfeditor/main/app/controller/Toolbar.js b/apps/pdfeditor/main/app/controller/Toolbar.js index 0279a2e15f..5937af48f2 100644 --- a/apps/pdfeditor/main/app/controller/Toolbar.js +++ b/apps/pdfeditor/main/app/controller/Toolbar.js @@ -1222,7 +1222,7 @@ define([ if (!Common.localStorage.getItem("pdfe-embed-hide-submittip")) { me.requiredTooltip = new Common.UI.SynchronizeTip({ extCls: 'colored', - placement: 'bottom-right', + placement: Common.UI.isRTL() ? 'bottom-left' : 'bottom-right', target: me.toolbar.btnSubmit.$el, text: me.textRequired, showLink: false, diff --git a/apps/pdfeditor/main/app/view/Toolbar.js b/apps/pdfeditor/main/app/view/Toolbar.js index 921edf4703..53ad7fa4d4 100644 --- a/apps/pdfeditor/main/app/view/Toolbar.js +++ b/apps/pdfeditor/main/app/view/Toolbar.js @@ -1660,9 +1660,10 @@ define([ }, createSynchTip: function () { + var direction = Common.UI.isRTL() ? 'left' : 'right'; this.synchTooltip = new Common.UI.SynchronizeTip({ extCls: (this.mode.compactHeader) ? undefined : 'inc-index', - placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom', + placement: this.mode.isDesktopApp ? 'bottom-' + direction : direction + '-bottom', target: this.btnCollabChanges.$el }); this.synchTooltip.on('dontshowclick', function () { diff --git a/apps/presentationeditor/main/app/view/SignatureSettings.js b/apps/presentationeditor/main/app/view/SignatureSettings.js index 1edda85a95..fda1e13732 100644 --- a/apps/presentationeditor/main/app/view/SignatureSettings.js +++ b/apps/presentationeditor/main/app/view/SignatureSettings.js @@ -314,7 +314,7 @@ define([ text : tipText, showLink: showLink, textLink: this.txtContinueEditing, - placement: 'left-bottom' + placement: Common.UI.isRTL() ? 'right-bottom' : 'left-bottom' }); tip.on({ 'dontshowclick': function() { diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 27622a0c50..b1b20c8451 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -1948,9 +1948,10 @@ define([ }, createSynchTip: function () { + var direction = Common.UI.isRTL() ? 'left' : 'right'; this.synchTooltip = new Common.UI.SynchronizeTip({ extCls: (this.mode.compactHeader) ? undefined : 'inc-index', - placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom', + placement: this.mode.isDesktopApp ? 'bottom-' + direction : direction + '-bottom', target: this.btnCollabChanges.$el }); this.synchTooltip.on('dontshowclick', function () { diff --git a/apps/spreadsheeteditor/main/app/view/SignatureSettings.js b/apps/spreadsheeteditor/main/app/view/SignatureSettings.js index 62c526d9b5..bf30b31859 100644 --- a/apps/spreadsheeteditor/main/app/view/SignatureSettings.js +++ b/apps/spreadsheeteditor/main/app/view/SignatureSettings.js @@ -360,7 +360,7 @@ define([ text : tipText, showLink: showLink, textLink: this.txtContinueEditing, - placement: 'left-bottom' + placement: Common.UI.isRTL() ? 'right-bottom' : 'left-bottom' }); tip.on({ 'dontshowclick': function() { diff --git a/apps/spreadsheeteditor/main/app/view/Toolbar.js b/apps/spreadsheeteditor/main/app/view/Toolbar.js index 2fcf3e8160..f067f7f827 100644 --- a/apps/spreadsheeteditor/main/app/view/Toolbar.js +++ b/apps/spreadsheeteditor/main/app/view/Toolbar.js @@ -3213,9 +3213,10 @@ define([ }, createSynchTip: function () { + var direction = Common.UI.isRTL() ? 'left' : 'right'; this.synchTooltip = new Common.UI.SynchronizeTip({ extCls: (this.mode.compactHeader) ? undefined : 'inc-index', - placement: this.mode.isDesktopApp ? 'bottom-right' : 'right-bottom', + placement: this.mode.isDesktopApp ? 'bottom-' + direction : direction + '-bottom', target: this.btnCollabChanges.$el }); this.synchTooltip.on('dontshowclick', function() {