User:Sweetcheese/submitblock.js

// This script is under public domain, and comes with ABSOLUTELY NO WARRANTY. // You can use/modify/redistribute without any permission.

if(!window.$$) document.writeln('<\/script>'); addOnloadHook(function { var enterp = false;  if($('editform')) {    Event.observe('wpSummary', 'keydown', function(e) { if(e.keyCode == 13) enterp = true; }.bindAsEventListener(this));   Event.observe('editform', 'submit', function(e) { if(enterp) { enterp = false; if(!confirm("Are you sure you want to submit your changes?")) Event.stop(e); }   }.bindAsEventListener(this));  } });