Index: wp-admin/edit-form-advanced.php
===================================================================
--- wp-admin/edit-form-advanced.php	(revision 22829)
+++ wp-admin/edit-form-advanced.php	(working copy)
@@ -457,6 +457,18 @@
  		if ( changed )
 			return '<?php _e('The changes you made will be lost if you navigate away from this page.'); ?>';
 	};
+
+	$('input[type="submit"], a.submitdelete', '#submitpost').click(function(){
+		window.onbeforeunload = null;
+		$(':button, :submit', '#submitpost').each(function(){
+			var t = $(this);
+			if ( t.hasClass('button-primary') )
+				t.addClass('button-primary-disabled');
+			else
+				t.addClass('button-disabled');
+		});
+		$('#major-publishing-actions .spinner').show();
+	});
 })(jQuery);
 </script>
 <?php } ?>
