User:Omegatron/monobook.js/unverified.js: Difference between revisions

Content deleted Content added
it should only do this if there isn't a tag already there. i don't know why it focuses the text box at the end...
No edit summary
Line 11:
var txt = document.editform.wpTextbox1;
 
// Add aThe tag to the edit box,be ifincluded itis doesn'tan haveunverified oneimage alreadytemplate
var summarytag = '{{unverified}}';
 
if (txt.value.indexOf(summary) == -1) {
// If the edit //box Adddoesn't thealready have a tag...
if (txt.value.indexOf(tag) +== -1) summary;{
 
// Append the tag
txt.value += tag;
// Add an edit summary
document.editform.wpSummary.value = 'Needs a source and copyright tag — see [[Wikipedia:Image copyright tags]]';