Hide track changes tip on timeout

This commit is contained in:
Julia Radzhabova 2021-02-10 13:40:53 +03:00
parent 4b232db539
commit 7e822933ca

View file

@ -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);
});
}