From 3fa010027c69fb72ef92ab0fa704750fc90cf9df Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 31 Jul 2017 12:29:41 +0200 Subject: [PATCH] implement clearTooltips --- www/common/common-interface.js | 5 +++++ www/common/cryptpad-common.js | 1 + 2 files changed, 6 insertions(+) diff --git a/www/common/common-interface.js b/www/common/common-interface.js index f0315efb5..329a458d0 100644 --- a/www/common/common-interface.js +++ b/www/common/common-interface.js @@ -297,6 +297,11 @@ define([ }; // Tooltips + + UI.clearTooltips = function () { + $('.tippy-popper').remove(); + }; + UI.addTooltips = function () { var MutationObserver = window.MutationObserver; var addTippy = function (el) { diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index eecf2490b..b0674f0ef 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -77,6 +77,7 @@ define([ common.unnotify = UI.unnotify; common.getIcon = UI.getIcon; common.addTooltips = UI.addTooltips; + common.clearTooltips = UI.clearTooltips; // import common utilities for export common.find = Util.find;