From 7e822933ca288afbc06fee687f7b42e363e92603 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 10 Feb 2021 13:40:53 +0300 Subject: [PATCH] Hide track changes tip on timeout --- apps/common/main/lib/controller/ReviewChanges.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/controller/ReviewChanges.js b/apps/common/main/lib/controller/ReviewChanges.js index c0f434879..a1139e63e 100644 --- a/apps/common/main/lib/controller/ReviewChanges.js +++ b/apps/common/main/lib/controller/ReviewChanges.js @@ -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); }); }