Syntax highlight just the new message

This commit is contained in:
Jakub Vrana 2013-12-19 12:39:03 -08:00
parent 2c8d81c1ae
commit e71e4ccb4c

View 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);
}