Aller au contenu

« MediaWiki:Gadget-CatRename.js » : différence entre les versions

aucun résumé des modifications
Kharmitch (discussion | contributions)
 
Kharmitch (discussion | contributions)
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 );
this.getActions().get( { actions: 'rbot' } )[ 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.getActions().get( { actions: 'rbot' } )[ 0 ].setDisabled( false );


this.deferred.reject( errorMessage );
this.deferred.reject( errorMessage );
Bureaucrate, commentadmin, emailconfirmed, Administrateurs d’interface, staff, Administrateur
62 734

modifications