Hauptmenü öffnen
Start
Zufall
Anmelden
Einstellungen
Über madipedia
Haftungsausschluss
madipedia
Suchen
Änderungen
← Zum vorherigen Versionsunterschied
MediaWiki:Mobile.js
(Quelltext anzeigen)
Version vom 25. April 2016, 15:02 Uhr
877 Bytes entfernt
,
15:02, 25. Apr. 2016
keine Bearbeitungszusammenfassung
Zeile 2:
Zeile 2:
−
( function( $, mw ) {
+
/*Für die Infoboxen (aufklappbar)
−
'use strict';
−
−
// Prefill the summary field on the Upload page with an Information template.
−
// Remove this when Bug 70146 is fixed.
−
function loadInformationTemplate() {
−
var $uploadDescription = $( '#wpUploadDescription' );
−
−
// Don't show when reuploading
−
if ( mw.util.getParamValue( 'wpDestFile' ) !== null ) return;
−
−
if ( $uploadDescription !== null && $uploadDescription.val() === '' ) {
−
−
// Prefill with template
−
$uploadDescription.val( '{{Information\n|Description=\n|Source=\n|Date=\n|Author=\n|Permission=\n|other_versions=\n}}\n' );
−
−
// Hide copy & pastable template in intro, since we just prefilled it automatically
−
$( '#Uploadtext-template-box' ).hide();
−
}
−
}
−
−
$( function() {
−
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' ) {
−
loadInformationTemplate();
−
}
−
} );
−
−
}( jQuery, mediaWiki ) );
−
−
−
−
−
/*Für die Infoboxen (aufklappbar)
*/
function fixtoggle() {
function fixtoggle() {
$('.mw-collapsible.fixtoggle').each(function(){
$('.mw-collapsible.fixtoggle').each(function(){
Zeile 45:
Zeile 13:
fixtoggle();
fixtoggle();
});
});
+
*/
ASchmidt
Passive Sichter
,
Sichter
,
Administratoren
6.756
Bearbeitungen