Don't show content changed warning when saving as draft from the HTML editor, fixes #9912

git-svn-id: https://develop.svn.wordpress.org/trunk@11439 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-05-23 08:41:00 +00:00
parent 3788a1ba06
commit 723b050a99
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -6,7 +6,9 @@ jQuery(function($) {
//Disable autosave after the form has been submitted
$("#post").submit(function() { $.cancel(autosavePeriodical); });
$('.submitbox input[type="submit"], .submitbox a.submitdelete').click(function(){window.onbeforeunload = null;});
window.onbeforeunload = function(){
var mce = typeof(tinyMCE) != 'undefined' ? tinyMCE.activeEditor : false, title, content;