From 39b01bc8ed1b575cf6cc960bb8a53cd199ca4043 Mon Sep 17 00:00:00 2001 From: mlorb Date: Wed, 21 Nov 2018 10:19:41 +0100 Subject: [PATCH] fix in app help window does not close in some cases --- app/assets/javascripts/sitewide/tooltip_helper.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/assets/javascripts/sitewide/tooltip_helper.js b/app/assets/javascripts/sitewide/tooltip_helper.js index 55fa035e2..939902069 100644 --- a/app/assets/javascripts/sitewide/tooltip_helper.js +++ b/app/assets/javascripts/sitewide/tooltip_helper.js @@ -79,6 +79,12 @@ }); }); } + + $(document.body).on('click', function() { + $('.help_tooltips').each(function(i, obj) { + $(obj).popover('hide'); + }); + }); }; $(document).on('turbolinks:load', function() {