Jump to content

MediaWiki:Common.js: Difference between revisions

same
(attempting to fix autosort)
(same)
Line 545: Line 545:
                         if ($(theTable).hasClass(colOption))
                         if ($(theTable).hasClass(colOption))
                         {
                         {
                            alert("A table wants to sort by column " + col);
                             sortColumnNum = col;
                             sortColumnNum = col;
                             break;
                             break;
Line 562: Line 561:
                         if (curColumnNum == sortColumnNum)
                         if (curColumnNum == sortColumnNum)
                         {
                         {
                            alert("Clicking sort button (ID " + k + ") for column " + sortColumnNum);
                             $(allTHs[k]).trigger("click"); // use jQuery's trigger() to send click event to this arrow
                             $(allTHs[k]).trigger("click"); // use jQuery's trigger() to send click event to this arrow
                             return;
                             return;