mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-02-10 18:05:32 +08:00
Fix bug 68833
This commit is contained in:
@ -106,12 +106,6 @@ define([
|
||||
me.isTooltipHiding = false;
|
||||
|
||||
me.screenTip = {
|
||||
toolTip: new Common.UI.Tooltip({
|
||||
owner: this,
|
||||
html: true,
|
||||
title: '<br><b>Press Ctrl and click link</b>'
|
||||
// style: 'word-wrap: break-word;'
|
||||
}),
|
||||
strTip: '',
|
||||
isHidden: true,
|
||||
isVisible: false
|
||||
@ -128,7 +122,8 @@ define([
|
||||
me.wrapEvents = {
|
||||
userTipMousover: _.bind(me.userTipMousover, me),
|
||||
userTipMousout: _.bind(me.userTipMousout, me),
|
||||
onKeyUp: _.bind(me.onKeyUp, me)
|
||||
onKeyUp: _.bind(me.onKeyUp, me),
|
||||
onMouseLeave: _.bind(me.onMouseLeave, me)
|
||||
};
|
||||
|
||||
me.guideTip = { ttHeight: 20 };
|
||||
@ -533,10 +528,14 @@ define([
|
||||
},
|
||||
|
||||
hideScreenTip: function() {
|
||||
this.screenTip.toolTip.hide();
|
||||
this.screenTip.toolTip && this.screenTip.toolTip.hide();
|
||||
this.screenTip.isVisible = false;
|
||||
},
|
||||
|
||||
onMouseLeave: function () {
|
||||
this.hideScreenTip();
|
||||
},
|
||||
|
||||
getUserName: function(id){
|
||||
var usersStore = PE.getCollection('Common.Collections.Users');
|
||||
if (usersStore){
|
||||
@ -627,7 +626,7 @@ define([
|
||||
if (this.screenTip.isHidden && this.screenTip.isVisible) {
|
||||
me.screenTip.isVisible = false;
|
||||
me.isTooltipHiding = true;
|
||||
me.screenTip.toolTip.hide(function(){
|
||||
me.screenTip.toolTip && me.screenTip.toolTip.hide(function(){
|
||||
me.isTooltipHiding = false;
|
||||
if (me.mouseMoveData) me.onMouseMove(me.mouseMoveData);
|
||||
me.mouseMoveData = null;
|
||||
|
||||
@ -460,6 +460,21 @@ define([], function () {
|
||||
}
|
||||
var recalc = false;
|
||||
screenTip.isHidden = false;
|
||||
|
||||
if (!me.screenTip.toolTip) {
|
||||
me.screenTip.toolTip = new Common.UI.Tooltip({
|
||||
owner: me,
|
||||
html: true,
|
||||
title: '<br><b>Press Ctrl and click link</b>'
|
||||
});
|
||||
me.screenTip.toolTip.on('tooltip:show', function () {
|
||||
$('#id_main_parent').on('mouseleave', me.wrapEvents.onMouseLeave);
|
||||
});
|
||||
me.screenTip.toolTip.on('tooltip:hide',function () {
|
||||
$('#id_main_parent').off('mouseleave', me.wrapEvents.onMouseLeave);
|
||||
});
|
||||
}
|
||||
|
||||
if (screenTip.tipType !== type || screenTip.tipLength !== ToolTip.length || screenTip.strTip.indexOf(ToolTip)<0 ) {
|
||||
screenTip.toolTip.setTitle((type===Asc.c_oAscMouseMoveDataTypes.Hyperlink) ? (ToolTip + (me.isPreviewVisible ? '' : '<br><b>' + Common.Utils.String.platformKey('Ctrl', me.documentHolder.txtPressLink) + '</b>')) : ToolTip);
|
||||
screenTip.tipLength = ToolTip.length;
|
||||
|
||||
Reference in New Issue
Block a user