View source for MediaWiki:Mobile.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
/* All JavaScript here will be loaded for users of the mobile site */
/*
For whatever reason, the MediaWiki devs decided to disable collapsible sections on mobile.
(See https://phabricator.wikimedia.org/T111565)
I'm hoping if I just add back the missing function that it will work again
*/
$.fn.makeCollapsible = function(options) {
options = options || {};
this.each(function() {
var $collapsible = $(this).addClass('mw-collapsible');
if ($collapsible.data('mw-made-collapsible')) {
return;
} else {
$collapsible.addClass('mw-made-collapsible').data('mw-made-collapsible', true);
}
var collapseText = options.collapseText || $collapsible.attr('data-collapsetext') || mw.msg('collapsible-collapse');
var expandText = options.expandText || $collapsible.attr('data-expandtext') || mw.msg('collapsible-expand');
var actionHandler = function(e, opts) {
var defaultOpts = {
toggleClasses: true,
000
1:0
Return to MediaWiki:Mobile.js.