Index: trunk/extensions/Wikidata/OmegaWiki/HTMLtable.php |
— | — | @@ -64,9 +64,9 @@ |
65 | 65 | $onclick = ' onclick= "' . $sort . '"'; |
66 | 66 | if ( $leftmost ) { # Are we the leftmost column? |
67 | 67 | $leftsort = EOL . |
68 | | - '<script type="text/javascript"> toSort("' . |
| 68 | + '<script type="text/javascript"> jQuery( function() { toSort("' . |
69 | 69 | $idPath->getId() . '-h" , ' . $skipRows . ',' . |
70 | | - $columnIndex . '); </script>' |
| 70 | + $columnIndex . ') } ); </script>' |
71 | 71 | . EOL; |
72 | 72 | $leftmost = False; # There can be only one. |
73 | 73 | } |