From: Jakub Vrana Date: Wed, 29 Feb 2012 19:02:34 +0000 (-0800) Subject: Fix AJAX loading indicator in Chrome X-Git-Tag: v3.3.4~13 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=7f2e97f0d2af923b49ae37891895c9967df2d511;p=adminer.git Fix AJAX loading indicator in Chrome --- diff --git a/adminer/static/functions.js b/adminer/static/functions.js index 0a17550e..42f0b64f 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -199,7 +199,7 @@ function bodyKeydown(event, button) { if (ajaxXmlhttp.abort) { ajaxXmlhttp.abort(); } - document.body.className = document.body.className.replace(/ loading/, ''); + document.body.className = document.body.className.replace(/ loading/g, ''); onblur = function () { }; if (originalFavicon) { replaceFavicon(originalFavicon); @@ -360,7 +360,7 @@ function ajaxSend(url, data, popState, noscroll) { scrollTo(0, 0); } setHtml('content', (xmlhttp.status ? xmlhttp.responseText : '

' + noResponse)); - document.body.className = document.body.className.replace(/ loading/, ''); + document.body.className = document.body.className.replace(/ loading/g, ''); var content = document.getElementById('content'); var scripts = content.getElementsByTagName('script'); var length = scripts.length; // required to avoid infinite loop