mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 20:35:54 +08:00
Fix Bug 65935
This commit is contained in:
@ -1996,6 +1996,7 @@ define([
|
||||
|
||||
me.onUpdateLastCustomMargins();
|
||||
Common.NotificationCenter.on('margins:update', _.bind(me.onUpdateLastCustomMargins, me));
|
||||
Common.NotificationCenter.on('desktop:window', _.bind(me.onDesktopWindow, me));
|
||||
}
|
||||
|
||||
if ( me.isCompactView )
|
||||
@ -3498,6 +3499,12 @@ define([
|
||||
}
|
||||
},
|
||||
|
||||
onDesktopWindow: function() {
|
||||
if (this.synchTooltip && this.synchTooltip.isVisible()) {
|
||||
this.synchTooltip.show(); // change position for visible tip
|
||||
}
|
||||
},
|
||||
|
||||
lockToolbar: function (causes, lock, opts) {
|
||||
Common.Utils.lockControls(causes, lock, opts, this.lockControls);
|
||||
}
|
||||
|
||||
@ -1214,6 +1214,7 @@ define([
|
||||
this.showSynchTip = !Common.localStorage.getBool("pdfe-hide-synch");
|
||||
this.needShowSynchTip = false;
|
||||
/** coauthoring end **/
|
||||
Common.NotificationCenter.on('desktop:window', _.bind(this.onDesktopWindow, this));
|
||||
}
|
||||
(mode.isEdit || mode.isRestrictedEdit) && me.setTab('home');
|
||||
|
||||
@ -1777,6 +1778,11 @@ define([
|
||||
}
|
||||
},
|
||||
|
||||
onDesktopWindow: function() {
|
||||
if (this.synchTooltip && this.synchTooltip.isVisible()) {
|
||||
this.synchTooltip.show(); // change position for visible tip
|
||||
}
|
||||
},
|
||||
/** coauthoring end **/
|
||||
|
||||
lockToolbar: function (causes, lock, opts) {
|
||||
|
||||
@ -1374,6 +1374,7 @@ define([
|
||||
if ( mode.isEdit ) {
|
||||
me.setTab('home');
|
||||
me.processPanelVisible();
|
||||
Common.NotificationCenter.on('desktop:window', _.bind(me.onDesktopWindow, me));
|
||||
}
|
||||
|
||||
if ( me.isCompactView )
|
||||
@ -2407,6 +2408,12 @@ define([
|
||||
return !!specSymbol ? specSymbol.description : this.capBtnInsSymbol + ': ' + symbol;
|
||||
},
|
||||
|
||||
onDesktopWindow: function() {
|
||||
if (this.synchTooltip && this.synchTooltip.isVisible()) {
|
||||
this.synchTooltip.show(); // change position for visible tip
|
||||
}
|
||||
},
|
||||
|
||||
tipNumCapitalLetters: 'A. B. C.',
|
||||
tipNumLettersParentheses: 'a) b) c)',
|
||||
tipNumLettersPoints: 'a. b. c.',
|
||||
|
||||
@ -2360,6 +2360,7 @@ define([
|
||||
me.onUpdateLastCustomMargins();
|
||||
Common.NotificationCenter.on('margins:update', _.bind(me.onUpdateLastCustomMargins, me));
|
||||
this.btnInsertImage.menu.items[2].setVisible(mode.canRequestInsertImage || mode.fileChoiceUrl && mode.fileChoiceUrl.indexOf("{documentType}")>-1);
|
||||
Common.NotificationCenter.on('desktop:window', _.bind(me.onDesktopWindow, me));
|
||||
}
|
||||
|
||||
me.setTab('home');
|
||||
@ -3508,6 +3509,12 @@ define([
|
||||
getSymbolDescription: function(symbol){
|
||||
var specSymbol = this.specSymbols.find(function (item){return item.symbol == symbol});
|
||||
return !!specSymbol ? specSymbol.description : this.capBtnInsSymbol + ': ' + symbol;
|
||||
},
|
||||
|
||||
onDesktopWindow: function() {
|
||||
if (this.synchTooltip && this.synchTooltip.isVisible()) {
|
||||
this.synchTooltip.show(); // change position for visible tip
|
||||
}
|
||||
}
|
||||
}, SSE.Views.Toolbar || {}));
|
||||
});
|
||||
Reference in New Issue
Block a user