MediaWiki:Mobile.js: Difference between revisions

From Melvor Idle
(Enable collapsible elements on mobile view, in line with desktop view behaviour)
 
(Blanked: Isn't loaded by mobile view)
Tag: Blanking
 
Line 1: Line 1:
/* 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(); });

Latest revision as of 00:03, 19 February 2024