MediaWiki:Gadget-MultiDiffConsecutive.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
action controllata dal ResourceLoader |
||
(5 versioni intermedie di 2 utenti 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 >
*/
function show() {
'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 69 ⟶ 60:
getPrevRevisionText();
} else {
loadMessages()
.done( getPrevRevisionText );
}
Riga 85 ⟶ 76:
doLink();
} else {
loadMessages()
▲ getMessage( 'previousdiff' )
.done( doLink );
}
Riga 123 ⟶ 114:
// Only add a separator if we already have a visible link
$( '#mw-diff-ntitle4' )
.find( '
.before(
prevLink,
Riga 135 ⟶ 126:
}
}
$( document ).ready( show );
|