13,748
edits
mNo edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for users of the mobile site */ | /* Any JavaScript here will be loaded for users of the mobile site */ | ||
/* Expand section | /* Expand single talk section */ | ||
$(function() { | $(function() { | ||
setTimeout(function() { | setTimeout(function() { | ||
if ($('. | if ($('.ns-talk .collapsible-heading').length === 1) | ||
$('.collapsible-heading | $('.collapsible-heading:not(.open-block)').click(); | ||
}, 100); | }, 100); | ||
}); | }); | ||
Line 23: | Line 23: | ||
var optionsLink = '/Special:MobileOptions'; | var optionsLink = '/Special:MobileOptions'; | ||
var optionsDesc = 'Settings for the mobile site'; | var optionsDesc = 'Settings for the mobile site'; | ||
mw.util.addPortletLink('p-tb', optionsLink, 'Mobile options', 't-options', optionsDesc); | |||
} | } | ||
}); | }); |