Last modified: 2013-11-10 16:10:01 UTC
We have a problem with template show/hide button on Kowiki. When I and other users click the show or hide button of the navbox, screen goes to the top of the page. This malfunction happens regaless of OSs, browsers, and devices(win7/8.1, IE10/Firefox/Chrome, and PC/android OSs) Also, I found the templates which is including "collapsible" as a class are the only object where this trouble occurs. I guess this bug has started within this week because I had checked the template works normally last week. We need solution asap.
When I and other users click the show or hide button of the navbox, screen goes to the top of the page -> When I and other users click the show or hide button of the navbox, screen goes to the top of the page and doesn't show the hidden links and lists of the template.
Thanks for taking the time to report this! Please provide exact steps to reproduce that anybody else could follow, in order to see the same problem. Thanks!
For example, on this page:[https://ko.wikipedia.org/wiki/%ED%8B%80:%EB%8C%80%ED%95%9C%EB%AF%BC%EA%B5%AD_%EB%B3%B4%EA%B1%B4%EB%B3%B5%EC%A7%80%EB%B6%80#], you might not be able to unfold the navbox. This happens on whole templates of Kowiki. I've checked other users have the same problem here: [[:ko:위키백과:사랑방 (일반)/2013년 제45주#숨김 틀에 이상..?]]
The problem is the use of addHandler() in the createCollapseButtons function in https://ko.wikipedia.org/wiki/%EB%AF%B8%EB%94%94%EC%96%B4%EC%9C%84%ED%82%A4:Common.js This function is now deprecated. There is an updated version of what looks like the same function in https://en.wikipedia.org/wiki/MediaWiki:Common.js that should work.
(Marking INVALID per comment 4. This isn't a bug in MediaWiki, but a problem with local scripts; a local ko.wp admin must fix the code per Alex's instructions.)