Merge "jquery.tablesorter: Never initialize twice on the same element"
[lhc/web/wiklou.git] / resources / src / jquery.tablesorter / jquery.tablesorter.js
index b73f430..c1b83fd 100644 (file)
                                        $table = $( table ),
                                        firstTime = true;
 
+                               // Don't construct twice on the same table
+                               if ( $.data( table, 'tablesorter' ) ) {
+                                       return;
+                               }
                                // Quit if no tbody
                                if ( !table.tBodies ) {
                                        return;