Remember the post_parent during autosaves. Props duck_. Fixes #12938

git-svn-id: https://develop.svn.wordpress.org/trunk@14057 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2010-04-10 12:39:01 +00:00
parent 0197326e4c
commit 8823027da6
2 changed files with 4 additions and 2 deletions

View File

@ -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