Widget:costumeSwitcher: Difference between revisions
Jump to navigation
Jump to search
Pianoforte (talk | contribs) No edit summary |
Pianoforte (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
// 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 (typeof mw !== "undefined" && typeof mw.mmv !== "undefined" && typeof mw.mmv.bootstrap | if (typeof mw !== "undefined" && typeof mw.mmv !== "undefined" && typeof mw.mmv.bootstrap !== "undefined") { | ||
mw.mmv.bootstrap.thumbs = []; | mw.mmv.bootstrap.thumbs = []; | ||
// Search for all thumbs | // Search for all thumbs |