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;