Utente:Titore/Gadget-MultiDiffConsecutive.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
importo da MediaWiki:Gadget-MultiDiffConsecutive.js |
sposto api in funzione |
||
(Una versione intermedia di uno stesso utente non è mostrata) | |||
Riga 1:
/**
* View the next/ previous edit of a revision in MediaWiki multi diffs.
* Uses the localization provided by MediaWiki, requires mediawiki.util and mediawiki.api to work.
*
* This program is free software; you can redistribute it and/or modify
Riga 20:
* @author Marius Hoch < hoo@online.de >
*/
mw.loader.using( [ 'mediawiki.util', 'mediawiki.api' ], function() {
$( document ).ready( function() {
Riga 27:
/**
* Gets the needed interface messages to the client, so they can be accessed by mw.msg.
*
* @return {jQuery.promise}
*/
function
return
▲ } );
}
Riga 71 ⟶ 63:
getPrevRevisionText();
} else {
getMessages()
.done( function(
nextRevisionText =
} )
.done( getPrevRevisionText );
Riga 87 ⟶ 79:
doLink();
} else {
getMessages()
▲ getMessage( 'previousdiff' )
.done( function(
prevRevisionText =
} )
.done( doLink );
|