User:Zhuyifei1999/common.js: Difference between revisions
Jump to navigation
Jump to search
Zhuyifei1999 (talk | contribs) (New) |
Zhuyifei1999 (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
* @source: http://www.mediawiki.org/wiki/Snippets/Editsection_inline | * @source: http://www.mediawiki.org/wiki/Snippets/Editsection_inline | ||
* @rev: 4 | * @rev: 4 | ||
jQuery( document ).ready( function( $ ) { | jQuery( document ).ready( function( $ ) { | ||
if ( $.inArray( mw.config.get('editsection-inline'), [ 'no', false ]) !== -1 ) { | if ( $.inArray( mw.config.get('editsection-inline'), [ 'no', false ]) !== -1 ) { | ||
Line 16: | Line 15: | ||
}); | }); | ||
}); | }); | ||
*/ |
Revision as of 05:58, 24 June 2013
/**
* Move the [edit] link from the opposite edge to the side of the heading title itself
*
* @source: http://www.mediawiki.org/wiki/Snippets/Editsection_inline
* @rev: 4
jQuery( document ).ready( function( $ ) {
if ( $.inArray( mw.config.get('editsection-inline'), [ 'no', false ]) !== -1 ) {
return;
}
mw.util.addCSS( '.editsection{float:none!important;margin-left:1em}' );
mw.util.$content.find('.editsection').each( function() {
var $what = $(this).parent().children();
$what.first().before( $what.last() );
});
});
*/