mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user