MediaWiki:Mobile.js: Difference between revisions
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 | 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. | ||
} | } | ||