mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 10:27:48 +08:00
Hide track changes tip on timeout
This commit is contained in:
@ -833,6 +833,9 @@ define([
|
||||
if (str_tip) {
|
||||
me.tooltip.setTitle(str_tip);
|
||||
me.tooltip.show();
|
||||
me.tipTimeout = setTimeout(function () {
|
||||
me.tooltip.hide();
|
||||
}, 5000);
|
||||
}
|
||||
}
|
||||
|
||||
@ -842,10 +845,10 @@ define([
|
||||
hideonclick: true,
|
||||
placement: 'bottom',
|
||||
cls: 'main-info',
|
||||
offset: 30,
|
||||
hoverState: 'in'
|
||||
offset: 30
|
||||
});
|
||||
this.tooltip.on('tooltip:hide', function(cmp){
|
||||
clearTimeout(me.tipTimeout);
|
||||
(cmp==me.tooltip) && setTimeout(showNextTip, 300);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user