MediaWiki:Gadget-cambusa.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+fail callback per mw.loader.using
Riga 43:
readHandler( text );
} ).fail ( function ( code, data ) {
OO.ui.getWindowManager().getCurrentWindow().close();
OO.ui.alert( 'Errore nel leggere la discussione: ' + code );
} );
Riga 65 ⟶ 66:
___location.reload();
} ).fail ( function ( code, data ) {
OO.ui.getWindowManager().getCurrentWindow().close();
OO.ui.alert( 'Errore nel modificare la discussione: ' + code );
} );
Riga 83 ⟶ 85:
} )
.fail ( function ( code, data ) {
OO.ui.getWindowManager().getCurrentWindow().close();
OO.ui.alert( 'Errore nel creare la discussione: ' + code );
} );
Riga 102 ⟶ 105:
anchorHandler( data.parse.sections[ data.parse.sections.length - 1 ].anchor );
} ).fail ( function ( code, data ) {
OO.ui.getWindowManager().getCurrentWindow().close();
OO.ui.alert( 'Errore nel leggere l\'anchor della sezione: ' + code );
} );
Riga 131 ⟶ 135:
from = mw.config.get( 'wgPageName' ).replace( /_/g, ' ' );
text = '{{Cambusada|' + from + '|firma=~~\~~}}\n' + formData.sourceText;
// @todo L'utilizzo dell'alert qui rende necessaria una chiamata a OO.ui.getWindowManager().getCurrentWindow().close()
// prima di poter mostrare ulteriori alert
OO.ui.alert( 'Spostamento in corso...' );
addSection( formData.destTitle, formData.destSectionTitle, text, function ( newrevid ) {