can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r18807: LJSUP-8511: incorrect handles the event ...

Committer: dpetrov
LJSUP-8511: incorrect handles the event - Mark as spam
U   trunk/htdocs/js/commentmanage.js
Modified: trunk/htdocs/js/commentmanage.js
===================================================================
--- trunk/htdocs/js/commentmanage.js	2011-04-06 07:36:53 UTC (rev 18806)
+++ trunk/htdocs/js/commentmanage.js	2011-04-06 08:28:25 UTC (rev 18807)
@@ -163,7 +163,7 @@
             removeComment(ditemid, opt_delthread);
             if (opt_delauthor) {
                 for (var item in LJ_cmtinfo) {
-                    if (LJ_cmtinfo[item].u == LJ_cmtinfo[ditemid].u) {
+					if (LJ_cmtinfo[item].u == LJ_cmtinfo[ditemid].u && !LJ_cmtinfo[ item ].is_deleted ) {
                         removeComment(item, false);
                     }
                 }
@@ -182,6 +182,11 @@
 
 		LiveJournal.CommentManager.getThreadJSON(threadId, function(result) {
 			LiveJournal.CommentManager.processThreadJSON( result, function( dtid, html, comment) {
+				if (LJ_cmtinfo[ threadId ].u !== LJ_cmtinfo[ dtid ].u) {
+					return;
+				}
+
+				html = ExpanderEx.prepareCommentBlock( html, dtid ); //, isChildCollapsed( i ) );
 				LiveJournal.CommentManager.updateCell( dtid, html );
 				if( comment.is_deleted && ( dtid in ExpanderEx.Collection ) ) {
 					delete ExpanderEx.Collection[ dtid ];

Tags: can3p, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments