]> git.joonet.de Git - adminer.git/commitdiff
Syntax highlight just the new message
authorJakub Vrana <jakub@vrana.cz>
Thu, 19 Dec 2013 20:39:03 +0000 (12:39 -0800)
committerJakub Vrana <jakub@vrana.cz>
Thu, 19 Dec 2013 20:39:03 +0000 (12:39 -0800)
adminer/static/functions.js

index 0d8c38fa9e9b1bf9e45d8b61a25ac3817eb63b0c..a5ea770a0348985d7f752228440a830c08904bf7 100644 (file)
@@ -534,7 +534,7 @@ function ajaxForm(form, message, button) {
        return ajax(url, function (request) {
                setHtml('message', request.responseText);
                if (window.jush) {
-                       jush.highlight_tag('code', 0);
+                       jush.highlight_tag(document.getElementById('message').getElementsByTagName('code'), 0);
                }
        }, data);
 }