62 737
modifications
Page créée avec « →* CatRename * * Ajoute un onglet permettant de renommer une catégorie, en déplaçant les pages * incluses dans celle-ci. Permet de faire faire l'action à un bot en un clic. * * Fonction copiée depuis Wikipédia : https://fr.wikipedia.org/wiki/MediaWiki:Gadget-CatRename.js : →<nowiki> : →globals mw, OO, $ : if ( mw.config.get( 'wgNamespaceNumber' ) === 14 ) { mw.loader.using( 'mediawiki.util', function () { 'use strict'; // Site-related parameter... » |
Aucun résumé des modifications |
||
Ligne 316 : | Ligne 316 : | ||
// Disable actions button when a process is runing | // Disable actions button when a process is runing | ||
this.getActions().get( { actions: 'rename' } )[ 0 ].setDisabled( true ); | this.getActions().get( { actions: 'rename' } )[ 0 ].setDisabled( true ); | ||
// Except for the cancel button, which behaviour change to cancel the ongoing process | // Except for the cancel button, which behaviour change to cancel the ongoing process | ||
this.getActions().get( { actions: 'cancel' } )[ 0 ].on( 'click', function () { | this.getActions().get( { actions: 'cancel' } )[ 0 ].on( 'click', function () { | ||
Ligne 741 : | Ligne 740 : | ||
this.getActions().get( { actions: 'rename' } )[ 0 ].setDisabled( false ); | this.getActions().get( { actions: 'rename' } )[ 0 ].setDisabled( false ); | ||
this.deferred.reject( errorMessage ); | this.deferred.reject( errorMessage ); |
modifications