Content deleted Content added
oops |
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... |
||
Line 8:
function unverified() {
document.editform.wpSummary.value = 'needs a source and copyright tag - see [[Wikipedia:Image copyright tags]]';▼
// Find the edit box
var txt = document.editform.wpTextbox1;
Line 16 ⟶ 14:
var summary = '{{unverified}}';
if (txt.value.indexOf(summary) == -1) {
// Add the tag
txt.value += summary;
//Add an edit summary
▲ document.editform.wpSummary.value = '
// Press the Save page button▼
document.editform.wpSave.click()▼
}
▲ // Press the Save page button
▲ document.editform.wpSave.click()
}
|