Skip to content

Commit

Permalink
Merge pull request #2950 from ONLYOFFICE/fix/fix-bugs
Browse files Browse the repository at this point in the history
[DE PE SSE PDF] Fix bug 67213
  • Loading branch information
JuliaRadzhabova authored Apr 19, 2024
2 parents fb76d37 + 4cd87ff commit a10e75b
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/documenteditor/main/app/controller/Statusbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion apps/documenteditor/main/app/view/SignatureSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
3 changes: 2 additions & 1 deletion apps/documenteditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion apps/pdfeditor/main/app/controller/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion apps/pdfeditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion apps/presentationeditor/main/app/view/SignatureSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
3 changes: 2 additions & 1 deletion apps/presentationeditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion apps/spreadsheeteditor/main/app/view/SignatureSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
3 changes: 2 additions & 1 deletion apps/spreadsheeteditor/main/app/view/Toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit a10e75b

Please sign in to comment.