Tablesorter: Remove not really necessary setTimeout.
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Wed, 22 Jun 2011 23:03:12 +0000 (23:03 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Wed, 22 Jun 2011 23:03:12 +0000 (23:03 +0000)
resources/jquery/jquery.tablesorter.js

index a32c05e..b443eb1 100644 (file)
                                                                        config.sortList.push( [i, this.order] );
                                                                }
                                                        }
-                                                       setTimeout( function () {
-                                                               // set css for headers
-                                                               setHeadersCss( $this[0], $headers, config.sortList, sortCSS, sortMsg );
-                                                               appendToTable( 
-                                                               $this[0], multisort( 
-                                                               $this[0], config.sortList, cache ) );
-                                                               //benchmark( "Sorting " + totalRows + " rows:", clickTime );
-                                                       }, 1 );
+
+                                                       // set css for headers
+                                                       setHeadersCss( $this[0], $headers, config.sortList, sortCSS, sortMsg );
+                                                       appendToTable( 
+                                                       $this[0], multisort( 
+                                                       $this[0], config.sortList, cache ) );
+                                                       //benchmark( "Sorting " + totalRows + " rows:", clickTime );
+
                                                        // stop normal event by returning false
                                                        return false;
                                                }