1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

fix ajax comments

This commit is contained in:
Mzhelskiy Maxim 2009-04-06 07:57:56 +00:00
parent feb6b8fd3a
commit 9ba90c15a0

View file

@ -208,17 +208,14 @@ var lsCmtTreeClass = new Class({
},
scrollToComment: function(idComment) {
var offsetY=0;
//для скролла в центр
offsetY=-window.getSize().y/2;
this.docScroller.setOptions({
duration:500,
offset: {
'x': 0,
'y': offsetY
'y': 0
}
});
this.docScroller.toElement($('comment_id_'+idComment));
this.docScroller.start(0,$('comment_id_'+idComment).getPosition().y-window.getSize().y/2);
if (this.iCommentIdLastView) {
$('comment_content_id_'+this.iCommentIdLastView).removeClass('view');
}