User:Modulatum/monobook.js: Difference between revisions

Content deleted Content added
Modulatum (talk | contribs)
mNo edit summary
Modulatum (talk | contribs)
m h
Line 325:
function forceSummary()
{
// Section names be damned
if (!document.forms.editform.wpSummary.value.replace(/^(?:\/\\*.*\\*\/)? *(.*) *$/,'$1'))
{
var r = prompt('Are you sure you want to submit without adding a summary?\nTo add a summary, type it in the box below:',document.forms.editform.wpSummary.value);
if(r == null) { return false; }
document.forms.editform.wpSummary.value = r;
}
return true;
}