Sonderzeichen-Bug behoben, SGPack-Script eingebunden statt (unvollständig) nachgebaut, Code teils vereinfacht und formatiert |
Ghost (Diskussion | Beiträge) K Fixes |
||
| Zeile 17: | Zeile 17: | ||
var z = document.getElementById("wpSummary").value; | var z = document.getElementById("wpSummary").value; | ||
if (z.substring((z.length - 16)) != "Signaturnachtrag") | if (z.substring((z.length - 16)) != "Signaturnachtrag") | ||
var c = (z.length && (z.substring((z.length - 3)) != "*/ ") ? ", " : ""); | |||
document.getElementById("wpSummary").value += c+"Signaturnachtrag"; | document.getElementById("wpSummary").value += c+"Signaturnachtrag"; | ||
}, 'json'); | }, 'json'); | ||
else mw. | else mw.SGPack.insertSelect(this); | ||
this.options.selectedIndex=0; | this.options.selectedIndex=0; | ||
}; | }; | ||
}); | }); | ||
}); | }); | ||