MediaWiki:Common.js: Difference between revisions

mNo edit summary
mNo edit summary
 
Line 1: Line 1:
/* [[Template:Spoiler]] https://support.wiki.gg/wiki/Template:Spoiler */
/* [[Template:Spoiler]] https://support.wiki.gg/wiki/Template:Spoiler */
$(function () {
$(function () {
$('.spoiler')
$('.spoiler.click')
.off('click') // in case this code is loaded twice
.off('click') // in case this code is loaded twice
.addClass( 'hide' )
.addClass( 'hide' )