jQuery 1.6 (used in Trunk) needs to use prop() instead of attr() to access DOM attributes

This commit is contained in:
Ralf Becker 2012-07-31 13:35:29 +00:00
parent 42563b8d1a
commit 0d84fdd087

View File

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