MediaWiki Category Tree expand all by default

半城伤御伤魂 提交于 2019-12-24 17:57:01

问题


Im using the Category Tree extension for MediaWiki which allows you to create a nice tree view of all categories.

By default when you visit a page with a category tree you have to expand a category manually by clicking the toggle symbol.

Is there a way to expand all categories by default? Where do i have to make changes in code?


回答1:


Mediawiki has Jquery by default so you can just click with Jquery:

$('.CategoryTreeToggle').click();


来源:https://stackoverflow.com/questions/37348060/mediawiki-category-tree-expand-all-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!