Pollenwiki-rot.png

MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Pollen-Wiki
Zur Navigation springen Zur Suche springen
K (Der Seiteninhalt wurde durch einen anderen Text ersetzt: „→‎Das folgende JavaScript wird für alle Benutzer geladen.: )
Markierung: Ersetzt
KKeine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Das folgende JavaScript wird für alle Benutzer geladen. */
/* Das folgende JavaScript wird für alle Benutzer geladen. */
/**
* Move the [edit] link from the opposite edge to the side of the heading title itself
*
* @source https://www.mediawiki.org/wiki/Snippets/Editsection_inline
* @revision 2014-04-27
*/
jQuery( 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() );
});
});

Version vom 24. Oktober 2019, 18:39 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */

/**
 * Move the [edit] link from the opposite edge to the side of the heading title itself
 *
 * @source https://www.mediawiki.org/wiki/Snippets/Editsection_inline
 * @revision 2014-04-27
 */
jQuery( 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() );
	});
});