MediaWiki:Mobile.js: Difference between revisions
From Melvor Idle
(Enable collapsible elements on mobile view, in line with desktop view behaviour) |
(No difference)
|
Revision as of 23:23, 18 February 2024
/* All JavaScript here will be loaded for users of the mobile site */
/* 2024-02-18 Allow collapsing of elements with class 'mw-collapsible', in line
* with desktop view behaviour. Extension:MobileFrontend disables this, but
* it is still desirable for our use case
*/
mw.loader.using('jquery.makeCollapsible').then(function () { $('.mw-collapsible').makeCollapsible(); });