reverted "no need for RegExp replace", as javascript only replace first occurence, if a string given

This commit is contained in:
Ralf Becker 2013-07-23 14:42:24 +00:00
parent 02917ec5bf
commit 4557a1d24d

View File

@ -178,7 +178,7 @@ function refresh_'.$id.'()
ajax.sendRequest(true,function(_data) { ajax.sendRequest(true,function(_data) {
if (_data.length) { if (_data.length) {
'.$id.'_tail_start = _data.next; '.$id.'_tail_start = _data.next;
var log = $j("#'.$id.'").append(_data.content.replace("<","&lt;")); var log = $j("#'.$id.'").append(_data.content.replace(/</g,"&lt;"));
log.animate({ scrollTop: log.prop("scrollHeight") - log.height() + 20 }, 500); log.animate({ scrollTop: log.prop("scrollHeight") - log.height() + 20 }, 500);
} }
if (_data.size === false) if (_data.size === false)