User:Ohconfucius/test/Sources.js: Difference between revisions

Content deleted Content added
added framework
new edit summary
Line 245:
 
function Ohc_Source_edit_summary(){
// Add a tag to the summary box
setoptions(minor='true');
var txt=document.editform.wpSummary;
var summary = " setreason('per [[WP:MOSTEXT]]"', 'append');
doaction('diff');
if (txt.value.indexOf(summary) == -1) {
if (txt.value.match(/[^\*\/\s][^\/\s]?\s*$/)) {
txt.value += "; ";
}
txt.value += summary;
}
// document.forms.editform.wpMinoredit.checked = true;
// document.editform.wpDiff.click();
}