19,667
edits
(replacing importScript() with mw.loader.load()) |
(attempting to replace deprecated addHandler()) |
||
| Line 140: | Line 140: | ||
if (hasClass(Cells[j], "hovercell")) | if (hasClass(Cells[j], "hovercell")) | ||
{ | { | ||
$(Cells[j]).mouseover(showDescrip(this.id, true)); | |||
$(Cells[j]).mouseout(showDescrip(this.id, false)); | |||
} | } | ||
} | } | ||
| Line 180: | Line 180: | ||
for (var i = 0; i < gifs.length; i++) | for (var i = 0; i < gifs.length; i++) | ||
{ | { | ||
$(gifs[i]).mouseover(swapImage(this.id, true)); | |||
$(gifs[i]).mouseout(swapImage(this.id, false)); | |||
} | } | ||
} | } | ||
| Line 257: | Line 257: | ||
ButtonLink.setAttribute("id", "collapseButton" + tableIndex); | ButtonLink.setAttribute("id", "collapseButton" + tableIndex); | ||
ButtonLink.setAttribute("href", "#"); | ButtonLink.setAttribute("href", "#"); | ||
$(ButtonLink).click(new Function("evt", "collapseTable(" + tableIndex + " ); return killEvt(evt);")); | |||
ButtonLink.appendChild(ButtonText); | ButtonLink.appendChild(ButtonText); | ||
| Line 269: | Line 269: | ||
} | } | ||
for (var i = 0; | for (var i = 0; i < tableIndex; i++) | ||
{ | { | ||
if (hasClass(NavigationBoxes[i], "collapsed") || (tableIndex >= autoCollapse && hasClass(NavigationBoxes[i], "autocollapse"))) | if (hasClass(NavigationBoxes[i], "collapsed") || (tableIndex >= autoCollapse && hasClass(NavigationBoxes[i], "autocollapse"))) | ||
| Line 282: | Line 282: | ||
if (hasClass(element, "outercollapse")) | if (hasClass(element, "outercollapse")) | ||
{ | { | ||
collapseTable (i); | collapseTable(i); | ||
break; | break; | ||
} | } | ||