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) { if (str_tip) {
me.tooltip.setTitle(str_tip); me.tooltip.setTitle(str_tip);
me.tooltip.show(); me.tooltip.show();
me.tipTimeout = setTimeout(function () {
me.tooltip.hide();
}, 5000);
} }
} }
@ -842,10 +845,10 @@ define([
hideonclick: true, hideonclick: true,
placement: 'bottom', placement: 'bottom',
cls: 'main-info', cls: 'main-info',
offset: 30, offset: 30
hoverState: 'in'
}); });
this.tooltip.on('tooltip:hide', function(cmp){ this.tooltip.on('tooltip:hide', function(cmp){
clearTimeout(me.tipTimeout);
(cmp==me.tooltip) && setTimeout(showNextTip, 300); (cmp==me.tooltip) && setTimeout(showNextTip, 300);
}); });
} }