bei mehreren Signachträgen nicht mehrmals "Signaturnachtrag" hintereinander in der Zusammenfassung; Komma wird jetzt - falls nötig - auch eingefügt |
K Seit MW1.17: jQuery anstatt addOnloadHook; $ (oder jQuery) statt $j |
||
| Zeile 1: | Zeile 1: | ||
//Signaturnachtrag automatisch ausfüllen | //Signaturnachtrag automatisch ausfüllen | ||
$(function() | |||
{ | { | ||
$ | $("select[name='Auswahl']").each(function(i) | ||
{ | { | ||
this.onchange = function() | this.onchange = function() | ||
{ | { | ||
if (this.options[this.options.selectedIndex].value == '%7B%7Bsubst%3AIP-Signaturnachtrag%7C%2B%7C%7C%7D%7D%2B') | if (this.options[this.options.selectedIndex].value == '%7B%7Bsubst%3AIP-Signaturnachtrag%7C%2B%7C%7C%7D%7D%2B') | ||
$ | $.get(wgServer+wgScriptPath+'/api.php?action=query&format=json&titles='+encodeURIComponent(wgPageName)+'&prop=revisions&meta=siteinfo|allmessages&ammessages=jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec', | ||
function(data) | function(data) | ||
{ | { | ||