- 0D8FC61C9C9C1450534A7512952DABD2319C8C4DD0A4174E3C89AE8A3B6F93CED030E7C25A6E4B690E4ECF845CB4F163B9A3EC4A722999A56317CC76E2929F70
+ 30E1D670B6A0578792D5D6C78A27740F66FAF7FF175F188277E6B6B7B9E9E599630739EEBDBF35F562CC204AB23BADA8A0C4A8079A3CBB8C2A7D9C5B70F7BED8
mp-wp/wp-includes/js/autosave.js
(123 . 8)(123 . 6)
10047 }
10048
10049 var autosave = function() {
10050 // (bool) is rich editor enabled and active
10051 var rich = (typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden();
10052 var post_data = {
10053 action: "autosave",
10054 post_ID: jQuery("#post_ID").val() || 0,
(143 . 14)(141 . 6)
10056 if ( jQuery("#TB_window").css('display') == 'block' )
10057 doAutoSave = false;
10058
10059 /* Gotta do this up here so we can check the length when tinyMCE is in use */
10060 if ( rich ) {
10061 var ed = tinyMCE.activeEditor;
10062 if ( 'mce_fullscreen' == ed.id )
10063 tinyMCE.get('content').setContent(ed.getContent({format : 'raw'}), {format : 'raw'});
10064 tinyMCE.get('content').save();
10065 }
10066
10067 post_data["content"] = jQuery("#content").val();
10068 if ( jQuery('#post_name').val() )
10069 post_data["post_name"] = jQuery('#post_name').val();
(179 . 13)(169 . 9)
10071 post_data["excerpt"] = jQuery("#excerpt").val();
10072 if ( jQuery("#post_author").size() )
10073 post_data["post_author"] = jQuery("#post_author").val();
10074
10075 post_data["user_ID"] = jQuery("#user-id").val();
10076
10077 // Don't run while the TinyMCE spellcheck is on. Why? Who knows.
10078 if ( rich && tinyMCE.activeEditor.plugins.spellchecker && tinyMCE.activeEditor.plugins.spellchecker.active ) {
10079 doAutoSave = false;
10080 }
10081
10082 if(parseInt(post_data["post_ID"]) < 1) {
10083 post_data["temp_ID"] = post_data["post_ID"];
10084 var successCallback = autosave_saved_new; // new post