Difference between revisions of "MediaWiki:Gadget-Section creator.js"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
if (typeof wfSupportsAjax !== 'undefined' && typeof (SectionCreator) == 'undefined' && wgNamespaceNumber >= 0) { | if (typeof wfSupportsAjax !== 'undefined' && typeof (SectionCreator) == 'undefined' && wgNamespaceNumber >= 0) { | ||
var SectionCreator = { | var SectionCreator = { | ||
install: () | install: function() { | ||
console.log('aaaaa'); | console.log('aaaaa'); | ||
} | } | ||
}; | }; | ||
$(() | $(function() { | ||
SectionCreator.install(); | SectionCreator.install(); | ||
}); | }); | ||
} | } |
Revision as of 23:08, 1 December 2021
if (typeof wfSupportsAjax !== 'undefined' && typeof (SectionCreator) == 'undefined' && wgNamespaceNumber >= 0) { var SectionCreator = { install: function() { console.log('aaaaa'); } }; $(function() { SectionCreator.install(); }); }