Welcome to IOPWiki, Commander.
We are searching for editors to complete gameplay topics in all games. You can contribute without an account. Learn how to contribute and join our Discord server.

Widget:costumeSwitcher: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Pianoforte (talk | contribs)
mNo edit summary
Pianoforte (talk | contribs)
No edit summary
Line 13: Line 13:
         $("#fullart_D a img").attr("src", costumePaths[1]);
         $("#fullart_D a img").attr("src", costumePaths[1]);
         $("#fullart_D a img").attr("alt", costumePaths[1]);
         $("#fullart_D a img").attr("alt", costumePaths[1]);
        $("#fullart_S a").attr("href", costumePaths[2]);
        $("#fullart_S a img").attr("src", costumePaths[2]);
        $("#fullart_S a img").attr("alt", costumePaths[2]);




Line 21: Line 25:
         // As we change the link, we have to update the Thumb-Cache of the Media Viewer
         // As we change the link, we have to update the Thumb-Cache of the Media Viewer
         // Clear up the thumbs cache
         // Clear up the thumbs cache
         //if (mv && mv.mmv && mv.mmv.bootstrap && mv.mmv.bootstrap.viewer) {
         mw.mmv.bootstrap.thumbs = [];
          //mw.mmv.bootstrap.thumbs = [];
        // Search for all thumbs
          // Search for all thumbs
        mw.mmv.bootstrap.processThumbs($("#content"));
          //mw.mmv.bootstrap.processThumbs($("#content"));
        // Re-Init the viewer with the new thumbs
          // Re-Init the viewer with the new thumbs
        mw.mmv.bootstrap.viewer.initWithThumbs(mw.mmv.bootstrap.thumbs);
          //mw.mmv.bootstrap.viewer.initWithThumbs(mw.mmv.bootstrap.thumbs);
        //}
}
}



Revision as of 05:41, 15 December 2017


test