Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r17633: LJSUP-7283: Comments are disappears when...

Committer: pkornilov
LJSUP-7283: Comments are disappears when click to Expand.
U   trunk/htdocs/js/thread_expander.ex.js
Modified: trunk/htdocs/js/thread_expander.ex.js
===================================================================
--- trunk/htdocs/js/thread_expander.ex.js	2010-11-03 06:27:26 UTC (rev 17632)
+++ trunk/htdocs/js/thread_expander.ex.js	2010-11-03 07:28:24 UTC (rev 17633)
@@ -87,6 +87,8 @@
         // copying comment from ifame, so this code is not executed (?)
         this.__caller__.removeAttribute('already_clicked','already_clicked');
         if(this.__caller__.parentNode) this.__caller__.parentNode.replaceChild(this.stored_caller,this.__caller__);
+        //remove preloader if exist
+        this.removePreloader();
     }
     var obj = this;
     // When frame is removed immediately, IE raises an error sometimes
@@ -114,8 +116,6 @@
         ExpanderEx.Collection[ threadId ] = cell.html();
         cell.replaceWith( ExpanderEx.prepareCommentBlock( json[ i ].html, threadId, false ) );
     }
-    //remove preloader if exist
-    this.removePreloader();
 
     //duplicate cycle, because we do not know, that external scripts do with node
     for( var i = 0; i < json.length; ++i ) {

Tags: js, livejournal, lusever
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