Jump to content

MediaWiki:Mobile.js: Difference between revisions

No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
mw.hook( 'wikipage.content' ).add( function ( $content ) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
alert("hi")
$content.find( 'section.collapsible-block[hidden], .collapsible-block[hidden]' ).each( function () {
$content.find( 'section.collapsible-block[hidden], .collapsible-block[hidden]' ).each( function () {
this.removeAttribute( 'hidden' );
this.removeAttribute( 'hidden' );