User:ErrantX/defaultsummaries.js: Difference between revisions

Content deleted Content added
test
more
Line 8:
{
// Save the original value of the edit summary field
editsummOriginalSummary = document.forms.editform.getElementById("wpSummary").value;
alert(editsummOriginalSummary);
 
// For convenience, add a dropdown box with some canned edit
// summaries to the form.
Line 46:
editsummAddOptionToDropdown(dropdown,"sectioning");
editsummAddOptionToDropdown(dropdown,"start article");
 
alert(document.forms.editform.wpSummary);
var insertBeforeThis = document.forms.editform.getElementById("wpSummary").nextSibling;
var theParent = insertBeforeThis.parentNode;
theParent.insertBefore(dropdown,insertBeforeThis);
Line 106:
}
}
// Hide refs
addOnloadHook(function (){
editsummInitialize ();
});