Remember the post_parent during autosaves. Props duck_. Fixes #12938
git-svn-id: http://svn.automattic.com/wordpress/trunk@14057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0b4ebffe70
commit
c7b7d67892
|
@ -264,12 +264,14 @@ autosave = function() {
|
|||
post_data["excerpt"] = jQuery("#excerpt").val();
|
||||
if ( jQuery("#post_author").size() )
|
||||
post_data["post_author"] = jQuery("#post_author").val();
|
||||
if ( jQuery("#parent_id").val() )
|
||||
post_data["parent_id"] = jQuery("#parent_id").val();
|
||||
post_data["user_ID"] = jQuery("#user-id").val();
|
||||
if ( jQuery('#auto_draft').val() == '1' )
|
||||
post_data["auto_draft"] = '1';
|
||||
|
||||
if ( doAutoSave ) {
|
||||
autosaveLast = jQuery("#title").val()+jQuery("#content").val();
|
||||
autosaveLast = jQuery("#title").val() + jQuery("#content").val();
|
||||
} else {
|
||||
post_data['autosave'] = 0;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue