Site Notice
hello, world
Difference between revisions of "MediaWiki:Gadget-WikiForum/loader.js"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要) |
([InPageEdit] 没有编辑摘要) |
||
Line 1: | Line 1: | ||
− | mw.hook('WikiForum').add(function() { | + | mw.hook('WikiForum').add(function(Core) { |
var conf = mw.config.get() | var conf = mw.config.get() | ||
if (conf.wgNamespaceNumber === 3000 && $('.wiki-forum').length > 0) { | if (conf.wgNamespaceNumber === 3000 && $('.wiki-forum').length > 0) { | ||
− | + | Core.renderer.fromPage() | |
} | } | ||
}) | }) |
Revision as of 21:28, 28 December 2020
mw.hook('WikiForum').add(function(Core) {
var conf = mw.config.get()
if (conf.wgNamespaceNumber === 3000 && $('.wiki-forum').length > 0) {
Core.renderer.fromPage()
}
})