From 038c1c811c222109cb720f9b6066d7515dab31c0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 31 Mar 2020 13:03:31 +0200 Subject: [PATCH] fix not closed spinner for application names with a dot --- api/js/jsapi/egw_message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/jsapi/egw_message.js b/api/js/jsapi/egw_message.js index c30c6ba885..3ef74191a3 100644 --- a/api/js/jsapi/egw_message.js +++ b/api/js/jsapi/egw_message.js @@ -288,12 +288,12 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd) var $animator = jQuery(_wnd.document.createElement('div')) .addClass('egw-loading-prompt-'+mode+'-animator') .appendTo($container); - if (jQuery('#'+id).length == 0) $container.insertBefore($node); + if (!_wnd.document.getElementById(id)) $container.insertBefore($node); return $container; } else { - $container = jQuery('#'+id); + $container = jQuery(_wnd.document.getElementById(id)); if ($container.length > 0) $container.remove(); return null; }