Widget:costumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
m Typo |
Removed some references and added a trigger |
||
Line 25: | Line 25: | ||
} | } | ||
selectBox.closest('.costumeContainer').find('.chibiAnimation,.live2dAnimation').trigger("costume_changed", chibiCostumeName); | selectBox.closest('.costumeContainer').find('.chibiAnimation,.live2dAnimation,.artTab').trigger("costume_changed", chibiCostumeName); | ||
var basePath = "http://en.gfwiki.com/images/"; // ToDo: find a better way to find out the base path | var basePath = "http://en.gfwiki.com/images/"; // ToDo: find a better way to find out the base path | ||
Line 33: | Line 33: | ||
var cpp = window.gfUtils.createWikiPathPart; | var cpp = window.gfUtils.createWikiPathPart; | ||
var chibiPath = basePath + cpp(costumeId +"_chibi.png") + costumeId +"_chibi.png"; | var chibiPath = basePath + cpp(costumeId +"_chibi.png") + costumeId +"_chibi.png"; | ||
$("#fullart_S").attr("src", fullartSPath); | $("#fullart_S").attr("src", fullartSPath); | ||
$("#fullart_S").attr("srcset", fullartSPath); | $("#fullart_S").attr("srcset", fullartSPath); |