K Seit MW1.17: jQuery anstatt addOnloadHook |
K $ (oder jQuery) statt $j |
||
| Zeile 2: | Zeile 2: | ||
{ | { | ||
if (wgAction != "edit" && wgAction != "submit") return; | if (wgAction != "edit" && wgAction != "submit") return; | ||
if ($ | if ($(".noSummary").length > 0) return; | ||
var label = document.createElement("label"); | var label = document.createElement("label"); | ||
label.htmlFor = "stdSummaries"; | label.htmlFor = "stdSummaries"; | ||
| Zeile 31: | Zeile 31: | ||
eo.insertBefore(label, sel); | eo.insertBefore(label, sel); | ||
$ | $.get(wgScript+"?title=Vorlage:Stdsummaries&action=raw&ctype=text/plain", function(text) | ||
{ | { | ||
var sel = document.getElementById("stdSummaries"); | var sel = document.getElementById("stdSummaries"); | ||