MediaWiki:Mobile.js

From Melvor Idle
Revision as of 23:23, 18 February 2024 by Auron956 (talk | contribs) (Enable collapsible elements on mobile view, in line with desktop view behaviour)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* 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(); });