From 7c8c2c2d2d607c9d38f0dca7f68b686597dc860c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 9 Oct 2019 08:21:53 +0200 Subject: [PATCH] Force close all tooltips when closing sharing menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- js/vendor/nextcloud/share.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/vendor/nextcloud/share.js b/js/vendor/nextcloud/share.js index db22c3c33..a939e0712 100644 --- a/js/vendor/nextcloud/share.js +++ b/js/vendor/nextcloud/share.js @@ -495,7 +495,8 @@ .tooltip('hide') .tooltip({ placement: 'bottom', - trigger: 'manual' + trigger: 'manual', + trackTooltip: true }) .tooltip('fixTitle') .tooltip('show'); @@ -805,6 +806,7 @@ */ hideDropDown: function (callback) { this.currentShares = null; + $('[data-original-title]').tooltip('hide'); $('#dropdown').slideUp(OC.menuSpeed, function () { Gallery.Share.droppedDown = false; $('#dropdown').remove();