]> git.joonet.de Git - adminer.git/commitdiff
Remove <noscript> in AJAX
authorJakub Vrana <jakub@vrana.cz>
Fri, 10 Dec 2010 00:09:19 +0000 (01:09 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 10 Dec 2010 00:09:19 +0000 (01:09 +0100)
adminer/static/functions.js

index d8ee552bb7695f5a8d09d590d223d484172d9964..e8fb4c2111dba7589a7d2b9d4f43a46262c3b49c 100644 (file)
@@ -102,7 +102,7 @@ function setHtml(id, html) {
                if (html == undefined) {
                        el.parentNode.innerHTML = '&nbsp;';
                } else {
-                       el.innerHTML = html;
+                       el.innerHTML = html.replace(/<noscript>.*<\/noscript>/i, ''); // required for Google Chrome // hopes that there will be only one <noscript> on each line
                }
        }
 }