MediaWiki:Mobile.js: Difference between revisions

Undo revision 474590 by Sware (talk)
Tag: Undo
No edit summary
Line 26: Line 26:
MMCollap.els = $('.mw-collapsible');
MMCollap.els = $('.mw-collapsible');
if ( MMCollap.els[0] ) {
if ( MMCollap.els[0] ) {
if ( MMCollap.els.length > 1 && ( ['enwiki'].indexOf(mw.config.get('wgDBname')) != -1) ) {
if ( MMCollap.els.length > 1) {
$('.autocollapse').addClass('mw-collapsed'); //the "autocollapse" class is handled by code in Common.js on enwiki, but Common.js isn't loaded on mobile.
$('.autocollapse').addClass('mw-collapsed'); //the "autocollapse" class is handled by code in Common.js on enwiki, but Common.js isn't loaded on mobile.
}
}