avoid triggering on class="notreallysortable"
authorIlmari Karonen <vyznev@users.mediawiki.org>
Sat, 30 Dec 2006 00:16:09 +0000 (00:16 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Sat, 30 Dec 2006 00:16:09 +0000 (00:16 +0000)
skins/common/sorttable.js

index aaebfc9..c5f167a 100644 (file)
@@ -17,7 +17,7 @@ function sortables_init() {
     tbls = document.getElementsByTagName("table");
     for (ti=0;ti<tbls.length;ti++) {
         thisTbl = tbls[ti];
-        if ((' '+thisTbl.className+' ').indexOf("sortable") != -1) {
+        if ((' '+thisTbl.className+' ').indexOf(" sortable ") != -1) {
                        if (!thisTbl.id) {
                                thisTbl.setAttribute('id','sortable_table_id_'+idnum);
                                ++idnum;