Wednesday, 15 August 2012

jquery mobile - Mediawiki MobileFrontend: Stop collapsing sections by default -



jquery mobile - Mediawiki MobileFrontend: Stop collapsing sections by default -

collapsed sections example:

the default of mediawiki's mobilefrontend sections collapsed default, uncollapsed when user clicks on section title.

i want alter uncollapsedness default.

what have tried:

in of mobilefrontend files, found "collaps" exists in these (and these) files

mobilefrontend\javascripts\common\pageapi.js mobilefrontend\less\common\enwp.less mobilefrontend\less=common\reset.less

but unsure if these related seek do.

i tried apply guidelines in manual:collapsible_elements of mediawiki 3 files didn't work.

i searched "expandablesections" using 'find in files' of notepad++.

then found

mobilefrontend\includes\api\apiparseextender.php line 82: $mf->enableexpandablesections( !$params['mainpage'] ); mobilefrontend\includes\formatters\mobileformatter.php line 23: protected $expandablesections = false; line 64: $formatter->enableexpandablesections( !$ismainpage && !$isspecialpage ); line 89: public function enableexpandablesections( $flag = true ) { line 90: $this->expandablesections = $flag; mobilefrontend\includes\formatters\mobileformatterhtml.php line 24: if ( $this->expandablesections ) { mobilefrontend\tests\mobileformattertest.php line 24: $mf->enableexpandablesections();

i tried changing

$expandablesections = false;

to

$expandablesections = true;

but didn't create sections uncollapsed.

in localsettings.php: $wgmfcollapsesectionsbydefault = false;

jquery-mobile mediawiki

No comments:

Post a Comment