Controlling output order: Difference between revisions

no edit summary
No edit summary
Line 18:
ts_resortTable(lnk);
 
ThePrior to version 1.16 of MediaWiki, ''wikibits.js'' was usually is called at the end of a page and performsperformed ''sortables_init()''. IfCalling weexplicitly call it ourselves it willdid not recognizeresult this and thereforein it willbeing addrecognized itsand sort link buttonsadding a second time (which looks quite funny...). You can teach wikibits.js to be awareset of initialized sortable tables by adding the following if-statement around the line where it inserts the href for the sort buttonlink (near line 550 in MW 1buttons.13):
if (cell.innerHTML.indexOf("sortheader") < 0) { ... place the original code line here ... }
 
==ordermethod==
Anonymous user