Widget:costumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
Removed initial swap call |
m Dfiferent approach to reload the T-Doll |
||
Line 1: | Line 1: | ||
<includeonly><script> | <includeonly><script> | ||
function swap_costume() { | function swap_costume() { | ||
var tdollId = mw.config.get("wgPageName"); | |||
costumeSelectionPathsString = document.getElementById("costumeSelection").value; | costumeSelectionPathsString = document.getElementById("costumeSelection").value; | ||
costumeSelectionIndex = document.getElementById("costumeSelection").selectedIndex; | costumeSelectionIndex = document.getElementById("costumeSelection").selectedIndex; | ||
if (costumeSelectionIndex | |||
var chibiCostumeName = ""; | |||
if (costumeSelectionIndex != 0) { | |||
chibiCostumeName = "_costume" + costumeSelectionIndex | |||
} | |||
loadGirl(baseView, tdollId, chibiCostumeName ); | |||
costumePaths = costumeSelectionPathsString.split(",,"); | costumePaths = costumeSelectionPathsString.split(",,"); |