MediaWiki:Gadget-MultiDiffConsecutive.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m parametro non più utilizzato (v. T206319) |
action controllata dal ResourceLoader |
||
(2 versioni intermedie di un altro utente non mostrate) | |||
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 ⟶ 21:
* @author Marius Hoch < hoo@online.de >
*/
$( document ).ready( function() {▼
'use strict';
var oldRevision, newRevision, nextRevisionText, prevRevisionText;
/**
* Load missing messages needed by this script
*
* @return {jQuery.promise}
*/
function
return
▲ } );
}
if ( !$( '.diff-multi' ).length ) {
// No multi diff
Riga 70 ⟶ 60:
getPrevRevisionText();
} else {
loadMessages()
.
▲ }, function rejected() {
} )
.
}
Riga 90 ⟶ 76:
doLink();
} else {
loadMessages()
▲ getMessage( 'previousdiff' )
.
prevRevisionText =
} )
.
}
}
Riga 144 ⟶ 126:
}
}
}
|