@ -2481,7 +2481,7 @@ function postSubmit(e, oldLastPostId) {
var reply _k = parseInt ( postDataElem . attr ( 'data-id' ) ) ;
var reply _k = parseInt ( postDataElem . attr ( 'data-id' ) ) ;
var part _id = postDataElem . attr ( 'data-reply-part-id' ) ;
var part _id = postDataElem . attr ( 'data-reply-part-id' ) ;
var cbFunc = function ( req , ret ) {
var cbFunc = function ( req , ret ) {
var postDataElem = $ ( '.expanded-post .post-data'
var postDataElem = getElem ( '.expanded-post .post-data'
+ '[data-screen-name=\'' + req . reply _n + '\']'
+ '[data-screen-name=\'' + req . reply _n + '\']'
+ '[data-id=\'' + req . reply _k + '\']' ) ;
+ '[data-id=\'' + req . reply _k + '\']' ) ;
@ -2491,15 +2491,34 @@ function postSubmit(e, oldLastPostId) {
return ;
return ;
}
}
formerPostElem = postDataElem . closest ( 'li.post' ) ;
for ( var k = 0 , twistElem = undefined ; k < postDataElem . length ; k ++ ) {
if ( ! formerPostElem . next ( ) . is ( '.post-replies' ) )
var formerPostElem = postDataElem . eq ( k ) . closest ( 'li.post' ) ;
formerPostElem . after ( $ ( '<li class="post-replies"><ol class="sub-replies"></ol></li>' ) ) ; // FIXME replace with template as like as a reqRepAfterCB()'s similar thing
if ( ! formerPostElem . next ( ) . hasClass ( 'post-replies' ) )
var containerElem = $ ( '<li class="post-replies"><ol class="sub-replies"></ol></li>' ) // FIXME replace with template as like as a reqRepAfterCB()'s similar thing
. insertAfter ( formerPostElem )
. children ( '.sub-replies' )
;
else {
var containerElem = formerPostElem . next ( ) . children ( '.sub-replies' ) ;
if ( containerElem . find ( '.post-data'
+ '[data-screen-name=\'' + ret . userpost . n + '\']'
+ '[data-id=\'' + ret . userpost . k + '\']' ) . length )
continue ;
}
postToElem ( ret , 'related' ) . hide ( )
if ( typeof twistElem !== 'undefined' )
twistElem . clone ( true )
. appendTo ( containerElem )
. slideDown ( 'fast' )
;
else
twistElem = postToElem ( ret , 'related' ) . hide ( )
. addClass ( 'new' )
. addClass ( 'new' )
. appendTo ( formerPostElem . next ( ) . children ( '.sub-replies' ) )
. appendTo ( containerElem )
. slideDown ( 'fast' )
. slideDown ( 'fast' )
;
;
}
} ;
} ;
newPostMsg ( postText , reply _n , reply _k ,
newPostMsg ( postText , reply _n , reply _k ,