can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r19114: LJSUP-8848: Number is widget (autopost) ...

Committer: dpetrov
LJSUP-8848: Number is widget (autopost) should be dynamically connected to DB
U   trunk/htdocs/js/journal.js
Modified: trunk/htdocs/js/journal.js
===================================================================
--- trunk/htdocs/js/journal.js	2011-05-24 04:00:41 UTC (rev 19113)
+++ trunk/htdocs/js/journal.js	2011-05-24 04:06:14 UTC (rev 19114)
@@ -313,17 +313,17 @@
 		} );
 	}
 
-	function findElement( onload ) {
+	function findElement() {
 		var element = jQuery( options.blockSelector );
 
 		if( element.length ) {
-			retrieveContestInfo( element );
-		} else if( !onload ) {
-			jQuery( function() {
-				findElement( true );
+			element.each( function() {
+				retrieveContestInfo( jQuery( this ) );
 			} );
 		}
 	}
 
-	setTimeout( findElement, 0 );
+	jQuery( function() {
+		findElement();
+	} );
 } )();

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