<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[14663] trunk: autosave_update_post_ID() no longer needed.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14663">14663</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-05-15 14:03:46 +0000 (Sat, 15 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>autosave_update_post_ID() no longer needed.  Fix button enable lag.  Props duck_.  fixes <a href="http://trac.wordpress.org/ticket/13400">#13400</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjspostdevjs">trunk/wp-admin/js/post.dev.js</a></li>
<li><a href="#trunkwpadminjspostjs">trunk/wp-admin/js/post.js</a></li>
<li><a href="#trunkwpincludesjsautosavedevjs">trunk/wp-includes/js/autosave.dev.js</a></li>
<li><a href="#trunkwpincludesjsautosavejs">trunk/wp-includes/js/autosave.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjspostdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.dev.js (14662 => 14663)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.dev.js        2010-05-15 12:21:45 UTC (rev 14662)
+++ trunk/wp-admin/js/post.dev.js        2010-05-15 14:03:46 UTC (rev 14663)
</span><span class="lines">@@ -331,9 +331,6 @@
</span><span class="cx">         if ( $('#postcustom').length ) {
</span><span class="cx">                 $('#the-list').wpList( { addAfter: function( xml, s ) {
</span><span class="cx">                         $('table#list-table').show();
</span><del>-                        if ( typeof( autosave_update_post_ID ) != 'undefined' ) {
-                                autosave_update_post_ID(s.parsed.responses[0].supplemental.postid);
-                        }
</del><span class="cx">                 }, addBefore: function( s ) {
</span><span class="cx">                         s.data += '&amp;post_id=' + $('#post_ID').val();
</span><span class="cx">                         return s;
</span></span></pre></div>
<a id="trunkwpadminjspostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.js (14662 => 14663)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.js        2010-05-15 12:21:45 UTC (rev 14662)
+++ trunk/wp-admin/js/post.js        2010-05-15 14:03:46 UTC (rev 14663)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var tagBox,commentsBox,editPermalink,makeSlugeditClickable,WPSetThumbnailHTML,WPSetThumbnailID,WPRemoveThumbnail;function array_unique_noempty(a){var out=[];jQuery.each(a,function(key,val){val=jQuery.trim(val);if(val&amp;&amp;jQuery.inArray(val,out)==-1){out.push(val)}});return out}(function($){tagBox={clean:function(tags){return tags.replace(/\s*,\s*/g,&quot;,&quot;).replace(/,+/g,&quot;,&quot;).replace(/[,\s]+$/,&quot;&quot;).replace(/^[,\s]+/,&quot;&quot;)},parseTags:function(el){var id=el.id,num=id.split(&quot;-check-num-&quot;)[1],taxbox=$(el).closest(&quot;.tagsdiv&quot;),thetags=taxbox.find(&quot;.the-tags&quot;),current_tags=thetags.val().split(&quot;,&quot;),new_tags=[];delete current_tags[num];$.each(current_tags,function(key,val){val=$.trim(val);if(val){new_tags.push(val)}});thetags.val(this.clean(new_tags.join(&quot;,&quot;)));this.quickClicks(taxbox);return false},quickClicks:function(el){var thetags=$(&quot;.the-tags&quot;,el),tagchecklist=$(&quot;.tagchecklist&quot;,el),current_tags;if(!thetags.length){return}var disabled=thetags.attr(&quot;disabled&quot;);current_tags=thetags.val().split(&quot;,&quot;);tagchecklist.empty();$.each(current_tags,function(key,val){var txt,button_id,id=$(el).attr(&quot;id&quot;);val=$.trim(val);if(!val.match(/^\s+$/)&amp;&amp;&quot;&quot;!=val){button_id=id+&quot;-check-num-&quot;+key;if(disabled){txt=&quot;&lt;span&gt;&quot;+val+&quot;&lt;/span&gt; &quot;}else{txt='&lt;span&gt;&lt;a id=&quot;'+button_id+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;&amp;nbsp;'+val+&quot;&lt;/span&gt; &quot;}tagchecklist.append(txt);if(!disabled){$(&quot;#&quot;+button_id).click(function(){tagBox.parseTags(this)})}}})},flushTags:function(el,a,f){a=a||false;var text,tags=$(&quot;.the-tags&quot;,el),newtag=$(&quot;input.newtag&quot;,el),newtags;text=a?$(a).text():newtag.val();tagsval=tags.val();newtags=tagsval?tagsval+&quot;,&quot;+text:text;newtags=this.clean(newtags);newtags=array_unique_noempty(newtags.split(&quot;,&quot;)).join(&quot;,&quot;);tags.val(newtags);this.quickClicks(el);if(!a){newtag.val(&quot;&quot;)}if(&quot;undefined&quot;==typeof(f)){newtag.focus()}return false},get:function(id){var tax=id.substr(id.indexOf(&quot;-&quot;)+1);$.post(ajaxurl,{action:&quot;get-tagcloud&quot;,tax:tax},function(r,stat){if(0==r||&quot;success&quot;!=stat){r=wpAjax.broken}r=$('&lt;p id=&quot;tagcloud-'+tax+'&quot; class=&quot;the-tagcloud&quot;&gt;'+r+&quot;&lt;/p&gt;&quot;);$(&quot;a&quot;,r).click(function(){tagBox.flushTags($(this).closest(&quot;.inside&quot;).children(&quot;.tagsdiv&quot;),this);return false});$(&quot;#&quot;+id).after(r)})},init:function(){var t=this,ajaxtag=$(&quot;div.ajaxtag&quot;);$(&quot;.tagsdiv&quot;).each(function(){tagBox.quickClicks(this)});$(&quot;input.tagadd&quot;,ajaxtag).click(function(){t.flushTags($(this).closest(&quot;.tagsdiv&quot;))});$(&quot;div.taghint&quot;,ajaxtag).click(function(){$(this).css(&quot;visibility&quot;,&quot;hidden&quot;).parent().siblings(&quot;.newtag&quot;).focus()});$(&quot;input.newtag&quot;,ajaxtag).blur(function(){if(this.value==&quot;&quot;){$(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){$(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).keyup(function(e){if(13==e.which){tagBox.flushTags($(this).closest(&quot;.tagsdiv&quot;));return false}}).keypress(function(e){if(13==e.which){e.preventDefault();return false}}).each(function(){var tax=$(this).closest(&quot;div.tagsdiv&quot;).attr(&quot;id&quot;);$(this).suggest(ajaxurl+&quot;?action=ajax-tag-search&amp;tax=&quot;+tax,{delay:500,minchars:2,multiple:true,multipleSep:&quot;,&quot;})});$(&quot;#post&quot;).submit(function(){$(&quot;div.tagsdiv&quot;).each(function(){tagBox.flushTags(this,false,1)})});$(&quot;a.tagcloud-link&quot;).click(function(){tagBox.get($(this).attr(&quot;id&quot;));$(this).unbind().click(function(){$(this).siblings(&quot;.the-tagcloud&quot;).toggle();return false});return false})}};commentsBox={st:0,get:function(total,num){var st=this.st,data;if(!num){num=20}this.st+=num;this.total=total;$(&quot;#commentsdiv img.waiting&quot;).show();data={action:&quot;get-comments&quot;,mode:&quot;single&quot;,_ajax_nonce:$(&quot;#add_comment_nonce&quot;).val(),post_ID:$(&quot;#post_ID&quot;).val(),start:st,num:num};$.post(ajaxurl,data,function(r){r=wpAjax.parseAjaxResponse(r);$(&quot;#commentsdiv .widefat&quot;).show();$(&quot;#commentsdiv img.waiting&quot;).hide();if(&quot;object&quot;==typeof r&amp;&amp;r.responses[0]){$(&quot;#the-comment-list&quot;).append(r.responses[0].data);theList=theExtraList=null;$(&quot;a[className*=':']&quot;).unbind();setCommentsList();if(commentsBox.st&gt;commentsBox.total){$(&quot;#show-comments&quot;).hide()}else{$(&quot;#show-comments&quot;).html(postL10n.showcomm)}return}else{if(1==r){$(&quot;#show-comments&quot;).parent().html(postL10n.endcomm);return}}$(&quot;#the-comment-list&quot;).append('&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;'+wpAjax.broken+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)});return false}};WPSetThumbnailHTML=function(html){$(&quot;.inside&quot;,&quot;#postimagediv&quot;).html(html)};WPSetThumbnailID=function(id){var field=$(&quot;input[value=_thumbnail_id]&quot;,&quot;#list-table&quot;);if(field.size()&gt;0){$(&quot;#meta\\[&quot;+field.attr(&quot;id&quot;).match(/[0-9]+/)+&quot;\\]\\[value\\]&quot;).text(id)}};WPRemoveThumbnail=function(){$.post(ajaxurl,{action:&quot;set-post-thumbnail&quot;,post_id:$(&quot;#post_ID&quot;).val(),thumbnail_id:-1,cookie:encodeURIComponent(document.cookie)},function(str){if(str==&quot;0&quot;){alert(setPostThumbnailL10n.error)}else{WPSetThumbnailHTML(str)}})}})(jQuery);jQuery(document).ready(function($){var stamp,visibility,sticky=&quot;&quot;;postboxes.add_postbox_toggles(pagenow);if($(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{$(&quot;#side-sortables, #normal-sortables, #advanced-sortables&quot;).children(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}})}$(&quot;.categorydiv&quot;).each(function(){var this_id=$(this).attr(&quot;id&quot;),noSyncChecks=false,syncChecks,catAddAfter,taxonomyParts,taxonomy,settingName;taxonomyParts=this_id.split(&quot;-&quot;);taxonomyParts.shift();taxonomy=taxonomyParts.join(&quot;-&quot;);settingName=taxonomy+&quot;_tab&quot;;if(taxonomy==&quot;category&quot;){settingName=&quot;cats&quot;}$(&quot;a&quot;,&quot;#&quot;+taxonomy+&quot;-tabs&quot;).click(function(){var t=$(this).attr(&quot;href&quot;);$(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);$(&quot;#&quot;+taxonomy+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();$(t).show();if(&quot;#&quot;+taxonomy+&quot;-all&quot;==t){deleteUserSetting(settingName)}else{setUserSetting(settingName,&quot;pop&quot;)}return false});if(getUserSetting(settingName)){$('a[href=&quot;#'+taxonomy+'-pop&quot;]',&quot;#&quot;+taxonomy+&quot;-tabs&quot;).click()}$(&quot;#new&quot;+taxonomy).one(&quot;focus&quot;,function(){$(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});$(&quot;#&quot;+taxonomy+&quot;-add-submit&quot;).click(function(){$(&quot;#new&quot;+taxonomy).focus()});syncChecks=function(){if(noSyncChecks){return}noSyncChecks=true;var th=jQuery(this),c=th.is(&quot;:checked&quot;),id=th.val().toString();$(&quot;#in-&quot;+taxonomy+&quot;-&quot;+id+&quot;, #in-&quot;+taxonomy+&quot;-category-&quot;+id).attr(&quot;checked&quot;,c);noSyncChecks=false};catAddBefore=function(s){if(!$(&quot;#new&quot;+taxonomy).val()){return false}s.data+=&quot;&amp;&quot;+$(&quot;:checked&quot;,&quot;#&quot;+taxonomy+&quot;checklist&quot;).serialize();return s};catAddAfter=function(r,s){var sup,drop=$(&quot;#new&quot;+taxonomy+&quot;_parent&quot;);if(&quot;undefined&quot;!=s.parsed.responses[0]&amp;&amp;(sup=s.parsed.responses[0].supplemental.newcat_parent)){drop.before(sup);drop.remove()}};$(&quot;#&quot;+taxonomy+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:taxonomy+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:catAddAfter});$(&quot;#&quot;+taxonomy+&quot;-add-toggle&quot;).click(function(){$(&quot;#&quot;+taxonomy+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);$('a[href=&quot;#'+taxonomy+'-all&quot;]',&quot;#&quot;+taxonomy+&quot;-tabs&quot;).click();return false});$(&quot;#&quot;+taxonomy+&quot;checklist li.popular-category :checkbox, #&quot;+taxonomy+&quot;checklist-pop :checkbox&quot;).live(&quot;click&quot;,function(){var t=$(this),c=t.is(&quot;:checked&quot;),id=t.val();if(id&amp;&amp;t.parents(&quot;#taxonomy-&quot;+taxonomy).length){$(&quot;#in-&quot;+taxonomy+&quot;-&quot;+id+&quot;, #in-popular-&quot;+taxonomy+&quot;-&quot;+id).attr(&quot;checked&quot;,c)}})});if($(&quot;#postcustom&quot;).length){$(&quot;#the-list&quot;).wpList({addAfter:function(xml,s){$(&quot;table#list-table&quot;).show();if(typeof(autosave_update_post_ID)!=&quot;undefined&quot;){autosave_update_post_ID(s.parsed.responses[0].supplemental.postid)}},addBefore:function(s){s.data+=&quot;&amp;post_id=&quot;+$(&quot;#post_ID&quot;).val();return s}})}if($(&quot;#submitdiv&quot;).length){stamp=$(&quot;#timestamp&quot;).html();visibility=$(&quot;#post-visibility-display&quot;).html();function updateVisibility(){var pvSelect=$(&quot;#post-visibility-select&quot;);if($(&quot;input:radio:checked&quot;,pvSelect).val()!=&quot;public&quot;){$(&quot;#sticky&quot;).attr(&quot;checked&quot;,false);$(&quot;#sticky-span&quot;).hide()}else{$(&quot;#sticky-span&quot;).show()}if($(&quot;input:radio:checked&quot;,pvSelect).val()!=&quot;password&quot;){$(&quot;#password-span&quot;).hide()}else{$(&quot;#password-span&quot;).show()}}function updateText(){var attemptedDate,originalDate,currentDate,publishOn,page=&quot;page&quot;==pagenow||&quot;page-new&quot;==pagenow,postStatus=$(&quot;#post_status&quot;),optPublish=$(&quot;option[value=publish]&quot;,postStatus),aa=$(&quot;#aa&quot;).val(),mm=$(&quot;#mm&quot;).val(),jj=$(&quot;#jj&quot;).val(),hh=$(&quot;#hh&quot;).val(),mn=$(&quot;#mn&quot;).val();attemptedDate=new Date(aa,mm-1,jj,hh,mn);originalDate=new Date($(&quot;#hidden_aa&quot;).val(),$(&quot;#hidden_mm&quot;).val()-1,$(&quot;#hidden_jj&quot;).val(),$(&quot;#hidden_hh&quot;).val(),$(&quot;#hidden_mn&quot;).val());currentDate=new Date($(&quot;#cur_aa&quot;).val(),$(&quot;#cur_mm&quot;).val()-1,$(&quot;#cur_jj&quot;).val(),$(&quot;#cur_hh&quot;).val(),$(&quot;#cur_mn&quot;).val());if(attemptedDate.getFullYear()!=aa||(1+attemptedDate.getMonth())!=mm||attemptedDate.getDate()!=jj||attemptedDate.getMinutes()!=mn){$(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{$(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(attemptedDate&gt;currentDate&amp;&amp;$(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){publishOn=postL10n.publishOnFuture;$(&quot;#publish&quot;).val(postL10n.schedule)}else{if(attemptedDate&lt;=currentDate&amp;&amp;$(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){publishOn=postL10n.publishOn;$(&quot;#publish&quot;).val(postL10n.publish)}else{publishOn=postL10n.publishOnPast;if(page){$(&quot;#publish&quot;).val(postL10n.updatePage)}else{$(&quot;#publish&quot;).val(postL10n.updatePost)}}}if(originalDate.toUTCString()==attemptedDate.toUTCString()){$(&quot;#timestamp&quot;).html(stamp)}else{$(&quot;#timestamp&quot;).html(publishOn+&quot; &lt;b&gt;&quot;+$(&quot;option[value=&quot;+$(&quot;#mm&quot;).val()+&quot;]&quot;,&quot;#mm&quot;).text()+&quot; &quot;+jj+&quot;, &quot;+aa+&quot; @ &quot;+hh+&quot;:&quot;+mn+&quot;&lt;/b&gt; &quot;)}if($(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){if(page){$(&quot;#publish&quot;).val(postL10n.updatePage)}else{$(&quot;#publish&quot;).val(postL10n.updatePost)}if(optPublish.length==0){postStatus.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{optPublish.html(postL10n.privatelyPublished)}$(&quot;option[value=publish]&quot;,postStatus).attr(&quot;selected&quot;,true);$(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if($(&quot;#original_post_status&quot;).val()==&quot;future&quot;||$(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(optPublish.length){optPublish.remove();postStatus.val($(&quot;#hidden_post_status&quot;).val())}}else{optPublish.html(postL10n.published)}if(postStatus.is(&quot;:hidden&quot;)){$(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}$(&quot;#post-status-display&quot;).html($(&quot;option:selected&quot;,postStatus).text());if($(&quot;option:selected&quot;,postStatus).val()==&quot;private&quot;||$(&quot;option:selected&quot;,postStatus).val()==&quot;publish&quot;){$(&quot;#save-post&quot;).hide()}else{$(&quot;#save-post&quot;).show();if($(&quot;option:selected&quot;,postStatus).val()==&quot;pending&quot;){$(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{$(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}$(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if($(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){updateVisibility();$(&quot;#post-visibility-select&quot;).slideDown(&quot;normal&quot;);$(this).hide()}return false});$(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){$(&quot;#post-visibility-select&quot;).slideUp(&quot;normal&quot;);$(&quot;#visibility-radio-&quot;+$(&quot;#hidden-post-visibility&quot;).val()).attr(&quot;checked&quot;,true);$(&quot;#post_password&quot;).val($(&quot;#hidden_post_password&quot;).val());$(&quot;#sticky&quot;).attr(&quot;checked&quot;,$(&quot;#hidden-post-sticky&quot;).attr(&quot;checked&quot;));$(&quot;#post-visibility-display&quot;).html(visibility);$(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();updateText();return false});$(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var pvSelect=$(&quot;#post-visibility-select&quot;);pvSelect.slideUp(&quot;normal&quot;);$(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();updateText();if($(&quot;input:radio:checked&quot;,pvSelect).val()!=&quot;public&quot;){$(&quot;#sticky&quot;).attr(&quot;checked&quot;,false)}if(true==$(&quot;#sticky&quot;).attr(&quot;checked&quot;)){sticky=&quot;Sticky&quot;}else{sticky=&quot;&quot;}$(&quot;#post-visibility-display&quot;).html(postL10n[$(&quot;input:radio:checked&quot;,pvSelect).val()+sticky]);return false});$(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){updateVisibility()});$(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if($(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){$(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);$(this).hide()}return false});$(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){$(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);$(&quot;#mm&quot;).val($(&quot;#hidden_mm&quot;).val());$(&quot;#jj&quot;).val($(&quot;#hidden_jj&quot;).val());$(&quot;#aa&quot;).val($(&quot;#hidden_aa&quot;).val());$(&quot;#hh&quot;).val($(&quot;#hidden_hh&quot;).val());$(&quot;#mn&quot;).val($(&quot;#hidden_mn&quot;).val());$(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();updateText();return false});$(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(updateText()){$(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);$(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show()}return false});$(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if($(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){$(&quot;#post-status-select&quot;).slideDown(&quot;normal&quot;);$(this).hide()}return false});$(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){$(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);$(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();updateText();return false});$(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){$(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);$(&quot;#post_status&quot;).val($(&quot;#hidden_post_status&quot;).val());$(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();updateText();return false})}if($(&quot;#edit-slug-box&quot;).length){editPermalink=function(post_id){var i,c=0,e=$(&quot;#editable-post-name&quot;),revert_e=e.html(),real_slug=$(&quot;#post_name&quot;),revert_slug=real_slug.val(),b=$(&quot;#edit-slug-buttons&quot;),revert_b=b.html(),full=$(&quot;#editable-post-name-full&quot;).html();$(&quot;#view-post-btn&quot;).hide();b.html('&lt;a href=&quot;#&quot; class=&quot;save button&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);b.children(&quot;.save&quot;).click(function(){var new_slug=e.children(&quot;input&quot;).val();$.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:post_id,new_slug:new_slug,new_title:$(&quot;#title&quot;).val(),samplepermalinknonce:$(&quot;#samplepermalinknonce&quot;).val()},function(data){$(&quot;#edit-slug-box&quot;).html(data);b.html(revert_b);real_slug.attr(&quot;value&quot;,new_slug);makeSlugeditClickable();$(&quot;#view-post-btn&quot;).show()});return false});$(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){$(&quot;#view-post-btn&quot;).show();e.html(revert_e);b.html(revert_b);real_slug.attr(&quot;value&quot;,revert_slug);return false});for(i=0;i&lt;full.length;++i){if(&quot;%&quot;==full.charAt(i)){c++}}slug_value=(c&gt;full.length/4)?&quot;&quot;:full;e.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(e){var key=e.keyCode||0;if(13==key){b.children(&quot;.save&quot;).click();return false}if(27==key){b.children(&quot;.cancel&quot;).click();return false}real_slug.attr(&quot;value&quot;,this.value)}).focus()};makeSlugeditClickable=function(){$(&quot;#editable-post-name&quot;).click(function(){$(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}if($(&quot;#title&quot;).val()==&quot;&quot;){$(&quot;#title&quot;).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;&quot;)}$(&quot;#title-prompt-text&quot;).click(function(){$(this).css(&quot;visibility&quot;,&quot;hidden&quot;).siblings(&quot;#title&quot;).focus()});$(&quot;#title&quot;).blur(function(){if(this.value==&quot;&quot;){$(this).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){$(this).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).keydown(function(e){$(this).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;);$(this).unbind(e)})});
</del><span class="cx">\ No newline at end of file
</span><ins>+var tagBox,commentsBox,editPermalink,makeSlugeditClickable,WPSetThumbnailHTML,WPSetThumbnailID,WPRemoveThumbnail;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&amp;&amp;jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(b){return b.replace(/\s*,\s*/g,&quot;,&quot;).replace(/,+/g,&quot;,&quot;).replace(/[,\s]+$/,&quot;&quot;).replace(/^[,\s]+/,&quot;&quot;)},parseTags:function(e){var h=e.id,b=h.split(&quot;-check-num-&quot;)[1],d=a(e).closest(&quot;.tagsdiv&quot;),g=d.find(&quot;.the-tags&quot;),c=g.val().split(&quot;,&quot;),f=[];delete c[b];a.each(c,function(i,j){j=a.trim(j);if(j){f.push(j)}});g.val(this.clean(f.join(&quot;,&quot;)));this.quickClicks(d);return false},quickClicks:function(d){var f=a(&quot;.the-tags&quot;,d),e=a(&quot;.tagchecklist&quot;,d),b;if(!f.length){return}var c=f.attr(&quot;disabled&quot;);b=f.val().split(&quot;,&quot;);e.empty();a.each(b,function(i,j){var g,h,k=a(d).attr(&quot;id&quot;);j=a.trim(j);if(!j.match(/^\s+$/)&amp;&amp;&quot;&quot;!=j){h=k+&quot;-check-num-&quot;+i;if(c){g=&quot;&lt;span&gt;&quot;+j+&quot;&lt;/span&gt; &quot;}else{g='&lt;span&gt;&lt;a id=&quot;'+h+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;&amp;nbsp;'+j+&quot;&lt;/span&gt; &quot;}e.append(g);if(!c){a(&quot;#&quot;+h).click(function(){tagBox.parseTags(this)})}}})},flushTags:function(e,b,g){b=b||false;var i,c=a(&quot;.the-tags&quot;,e),h=a(&quot;input.newtag&quot;,e),d;i=b?a(b).text():h.val();tagsval=c.val();d=tagsval?tagsval+&quot;,&quot;+i:i;d=this.clean(d);d=array_unique_noempty(d.split(&quot;,&quot;)).join(&quot;,&quot;);c.val(d);this.quickClicks(e);if(!b){h.val(&quot;&quot;)}if(&quot;undefined&quot;==typeof(g)){h.focus()}return false},get:function(c){var b=c.substr(c.indexOf(&quot;-&quot;)+1);a.post(ajaxurl,{action:&quot;get-tagcloud&quot;,tax:b},function(e,d){if(0==e||&quot;success&quot;!=d){e=wpAjax.broken}e=a('&lt;p id=&quot;tagcloud-'+b+'&quot; class=&quot;the-tagcloud&quot;&gt;'+e+&quot;&lt;/p&gt;&quot;);a(&quot;a&quot;,e).click(function(){tagBox.flushTags(a(this).closest(&quot;.inside&quot;).children(&quot;.tagsdiv&quot;),this);return false});a(&quot;#&quot;+c).after(e)})},init:function(){var b=this,c=a(&quot;div.ajaxtag&quot;);a(&quot;.tagsdiv&quot;).each(function(){tagBox.quickClicks(this)});a(&quot;input.tagadd&quot;,c).click(function(){b.flushTags(a(this).closest(&quot;.tagsdiv&quot;))});a(&quot;div.taghint&quot;,c).click(function(){a(this).css(&quot;visibility&quot;,&quot;hidden&quot;).parent().siblings(&quot;.newtag&quot;).focus()});a(&quot;input.newtag&quot;,c).blur(function(){if(this.value==&quot;&quot;){a(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){a(this).parent().siblings(&quot;.taghint&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(this).closest(&quot;.tagsdiv&quot;));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest(&quot;div.tagsdiv&quot;).attr(&quot;id&quot;);a(this).suggest(ajaxurl+&quot;?action=ajax-tag-search&amp;tax=&quot;+d,{delay:500,minchars:2,multiple:true,multipleSep:&quot;,&quot;})});a(&quot;#post&quot;).submit(function(){a(&quot;div.tagsdiv&quot;).each(function(){tagBox.flushTags(this,false,1)})});a(&quot;a.tagcloud-link&quot;).click(function(){tagBox.get(a(this).attr(&quot;id&quot;));a(this).unbind().click(function(){a(this).siblings(&quot;.the-tagcloud&quot;).toggle();return false});return false})}};commentsBox={st:0,get:function(d,c){var b=this.st,e;if(!c){c=20}this.st+=c;this.total=d;a(&quot;#commentsdiv img.waiting&quot;).show();e={action:&quot;get-comments&quot;,mode:&quot;single&quot;,_ajax_nonce:a(&quot;#add_comment_nonce&quot;).val(),post_ID:a(&quot;#post_ID&quot;).val(),start:b,num:c};a.post(ajaxurl,e,function(f){f=wpAjax.parseAjaxResponse(f);a(&quot;#commentsdiv .widefat&quot;).show();a(&quot;#commentsdiv img.waiting&quot;).hide();if(&quot;object&quot;==typeof f&amp;&amp;f.responses[0]){a(&quot;#the-comment-list&quot;).append(f.responses[0].data);theList=theExtraList=null;a(&quot;a[className*=':']&quot;).unbind();setCommentsList();if(commentsBox.st&gt;commentsBox.total){a(&quot;#show-comments&quot;).hide()}else{a(&quot;#show-comments&quot;).html(postL10n.showcomm)}return}else{if(1==f){a(&quot;#show-comments&quot;).parent().html(postL10n.endcomm);return}}a(&quot;#the-comment-list&quot;).append('&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;'+wpAjax.broken+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)});return false}};WPSetThumbnailHTML=function(b){a(&quot;.inside&quot;,&quot;#postimagediv&quot;).html(b)};WPSetThumbnailID=function(c){var b=a(&quot;input[value=_thumbnail_id]&quot;,&quot;#list-table&quot;);if(b.size()&gt;0){a(&quot;#meta\\[&quot;+b.attr(&quot;id&quot;).match(/[0-9]+/)+&quot;\\]\\[value\\]&quot;).text(c)}};WPRemoveThumbnail=function(){a.post(ajaxurl,{action:&quot;set-post-thumbnail&quot;,post_id:a(&quot;#post_ID&quot;).val(),thumbnail_id:-1,cookie:encodeURIComponent(document.cookie)},function(b){if(b==&quot;0&quot;){alert(setPostThumbnailL10n.error)}else{WPSetThumbnailHTML(b)}})}})(jQuery);jQuery(document).ready(function(e){var b,a,f=&quot;&quot;;postboxes.add_postbox_toggles(pagenow);if(e(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{e(&quot;#side-sortables, #normal-sortables, #advanced-sortables&quot;).children(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}})}e(&quot;.categorydiv&quot;).each(function(){var l=e(this).attr(&quot;id&quot;),h=false,k,m,j,g,i;j=l.split(&quot;-&quot;);j.shift();g=j.join(&quot;-&quot;);i=g+&quot;_tab&quot;;if(g==&quot;category&quot;){i=&quot;cats&quot;}e(&quot;a&quot;,&quot;#&quot;+g+&quot;-tabs&quot;).click(function(){var n=e(this).attr(&quot;href&quot;);e(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);e(&quot;#&quot;+g+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();e(n).show();if(&quot;#&quot;+g+&quot;-all&quot;==n){deleteUserSetting(i)}else{setUserSetting(i,&quot;pop&quot;)}return false});if(getUserSetting(i)){e('a[href=&quot;#'+g+'-pop&quot;]',&quot;#&quot;+g+&quot;-tabs&quot;).click()}e(&quot;#new&quot;+g).one(&quot;focus&quot;,function(){e(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});e(&quot;#&quot;+g+&quot;-add-submit&quot;).click(function(){e(&quot;#new&quot;+g).focus()});k=function(){if(h){return}h=true;var n=jQuery(this),p=n.is(&quot;:checked&quot;),o=n.val().toString();e(&quot;#in-&quot;+g+&quot;-&quot;+o+&quot;, #in-&quot;+g+&quot;-category-&quot;+o).attr(&quot;checked&quot;,p);h=false};catAddBefore=function(n){if(!e(&quot;#new&quot;+g).val()){return false}n.data+=&quot;&amp;&quot;+e(&quot;:checked&quot;,&quot;#&quot;+g+&quot;checklist&quot;).serialize();return n};m=function(q,p){var o,n=e(&quot;#new&quot;+g+&quot;_parent&quot;);if(&quot;undefined&quot;!=p.parsed.responses[0]&amp;&amp;(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove()}};e(&quot;#&quot;+g+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:g+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:m});e(&quot;#&quot;+g+&quot;-add-toggle&quot;).click(function(){e(&quot;#&quot;+g+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);e('a[href=&quot;#'+g+'-all&quot;]',&quot;#&quot;+g+&quot;-tabs&quot;).click();return false});e(&quot;#&quot;+g+&quot;checklist li.popular-category :checkbox, #&quot;+g+&quot;checklist-pop :checkbox&quot;).live(&quot;click&quot;,function(){var n=e(this),p=n.is(&quot;:checked&quot;),o=n.val();if(o&amp;&amp;n.parents(&quot;#taxonomy-&quot;+g).length){e(&quot;#in-&quot;+g+&quot;-&quot;+o+&quot;, #in-popular-&quot;+g+&quot;-&quot;+o).attr(&quot;checked&quot;,p)}})});if(e(&quot;#postcustom&quot;).length){e(&quot;#the-list&quot;).wpList({addAfter:function(g,h){e(&quot;table#list-table&quot;).show()},addBefore:function(g){g.data+=&quot;&amp;post_id=&quot;+e(&quot;#post_ID&quot;).val();return g}})}if(e(&quot;#submitdiv&quot;).length){b=e(&quot;#timestamp&quot;).html();a=e(&quot;#post-visibility-display&quot;).html();function d(){var g=e(&quot;#post-visibility-select&quot;);if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;public&quot;){e(&quot;#sticky&quot;).attr(&quot;checked&quot;,false);e(&quot;#sticky-span&quot;).hide()}else{e(&quot;#sticky-span&quot;).show()}if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;password&quot;){e(&quot;#password-span&quot;).hide()}else{e(&quot;#password-span&quot;).show()}}function c(){var n,p,h,r,o=&quot;page&quot;==pagenow||&quot;page-new&quot;==pagenow,q=e(&quot;#post_status&quot;),i=e(&quot;option[value=publish]&quot;,q),g=e(&quot;#aa&quot;).val(),l=e(&quot;#mm&quot;).val(),m=e(&quot;#jj&quot;).val(),k=e(&quot;#hh&quot;).val(),j=e(&quot;#mn&quot;).val();n=new Date(g,l-1,m,k,j);p=new Date(e(&quot;#hidden_aa&quot;).val(),e(&quot;#hidden_mm&quot;).val()-1,e(&quot;#hidden_jj&quot;).val(),e(&quot;#hidden_hh&quot;).val(),e(&quot;#hidden_mn&quot;).val());h=new Date(e(&quot;#cur_aa&quot;).val(),e(&quot;#cur_mm&quot;).val()-1,e(&quot;#cur_jj&quot;).val(),e(&quot;#cur_hh&quot;).val(),e(&quot;#cur_mn&quot;).val());if(n.getFullYear()!=g||(1+n.getMonth())!=l||n.getDate()!=m||n.getMinutes()!=j){e(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{e(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(n&gt;h&amp;&amp;e(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){r=postL10n.publishOnFuture;e(&quot;#publish&quot;).val(postL10n.schedule)}else{if(n&lt;=h&amp;&amp;e(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){r=postL10n.publishOn;e(&quot;#publish&quot;).val(postL10n.publish)}else{r=postL10n.publishOnPast;if(o){e(&quot;#publish&quot;).val(postL10n.updatePage)}else{e(&quot;#publish&quot;).val(postL10n.updatePost)}}}if(p.toUTCString()==n.toUTCString()){e(&quot;#timestamp&quot;).html(b)}else{e(&quot;#timestamp&quot;).html(r+&quot; &lt;b&gt;&quot;+e(&quot;option[value=&quot;+e(&quot;#mm&quot;).val()+&quot;]&quot;,&quot;#mm&quot;).text()+&quot; &quot;+m+&quot;, &quot;+g+&quot; @ &quot;+k+&quot;:&quot;+j+&quot;&lt;/b&gt; &quot;)}if(e(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){if(o){e(&quot;#publish&quot;).val(postL10n.updatePage)}else{e(&quot;#publish&quot;).val(postL10n.updatePost)}if(i.length==0){q.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{i.html(postL10n.privatelyPublished)}e(&quot;option[value=publish]&quot;,q).attr(&quot;selected&quot;,true);e(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(e(&quot;#original_post_status&quot;).val()==&quot;future&quot;||e(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(i.length){i.remove();q.val(e(&quot;#hidden_post_status&quot;).val())}}else{i.html(postL10n.published)}if(q.is(&quot;:hidden&quot;)){e(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}e(&quot;#post-status-display&quot;).html(e(&quot;option:selected&quot;,q).text());if(e(&quot;option:selected&quot;,q).val()==&quot;private&quot;||e(&quot;option:selected&quot;,q).val()==&quot;publish&quot;){e(&quot;#save-post&quot;).hide()}else{e(&quot;#save-post&quot;).show();if(e(&quot;option:selected&quot;,q).val()==&quot;pending&quot;){e(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{e(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(e(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){d();e(&quot;#post-visibility-select&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){e(&quot;#post-visibility-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#visibility-radio-&quot;+e(&quot;#hidden-post-visibility&quot;).val()).attr(&quot;checked&quot;,true);e(&quot;#post_password&quot;).val(e(&quot;#hidden_post_password&quot;).val());e(&quot;#sticky&quot;).attr(&quot;checked&quot;,e(&quot;#hidden-post-sticky&quot;).attr(&quot;checked&quot;));e(&quot;#post-visibility-display&quot;).html(a);e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});e(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var g=e(&quot;#post-visibility-select&quot;);g.slideUp(&quot;normal&quot;);e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;public&quot;){e(&quot;#sticky&quot;).attr(&quot;checked&quot;,false)}if(true==e(&quot;#sticky&quot;).attr(&quot;checked&quot;)){f=&quot;Sticky&quot;}else{f=&quot;&quot;}e(&quot;#post-visibility-display&quot;).html(postL10n[e(&quot;input:radio:checked&quot;,g).val()+f]);return false});e(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){d()});e(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(e(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){e(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){e(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);e(&quot;#mm&quot;).val(e(&quot;#hidden_mm&quot;).val());e(&quot;#jj&quot;).val(e(&quot;#hidden_jj&quot;).val());e(&quot;#aa&quot;).val(e(&quot;#hidden_aa&quot;).val());e(&quot;#hh&quot;).val(e(&quot;#hidden_hh&quot;).val());e(&quot;#mn&quot;).val(e(&quot;#hidden_mn&quot;).val());e(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});e(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(c()){e(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);e(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show()}return false});e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if(e(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){e(&quot;#post-status-select&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){e(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});e(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){e(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#post_status&quot;).val(e(&quot;#hidden_post_status&quot;).val());e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(e(&quot;#edit-slug-box&quot;).length){editPermalink=function(g){var h,l=0,k=e(&quot;#editable-post-name&quot;),m=k.html(),p=e(&quot;#post_name&quot;),q=p.val(),n=e(&quot;#edit-slug-buttons&quot;),o=n.html(),j=e(&quot;#editable-post-name-full&quot;).html();e(&quot;#view-post-btn&quot;).hide();n.html('&lt;a href=&quot;#&quot; class=&quot;save button&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);n.children(&quot;.save&quot;).click(function(){var i=k.children(&quot;input&quot;).val();e.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:g,new_slug:i,new_title:e(&quot;#title&quot;).val(),samplepermalinknonce:e(&quot;#samplepermalinknonce&quot;).val()},function(r){e(&quot;#edit-slug-box&quot;).html(r);n.html(o);p.attr(&quot;value&quot;,i);makeSlugeditClickable();e(&quot;#view-post-btn&quot;).show()});return false});e(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){e(&quot;#view-post-btn&quot;).show();k.html(m);n.html(o);p.attr(&quot;value&quot;,q);return false});for(h=0;h&lt;j.length;++h){if(&quot;%&quot;==j.charAt(h)){l++}}slug_value=(l&gt;j.length/4)?&quot;&quot;:j;k.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(r){var i=r.keyCode||0;if(13==i){n.children(&quot;.save&quot;).click();return false}if(27==i){n.children(&quot;.cancel&quot;).click();return false}p.attr(&quot;value&quot;,this.value)}).focus()};makeSlugeditClickable=function(){e(&quot;#editable-post-name&quot;).click(function(){e(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}if(e(&quot;#title&quot;).val()==&quot;&quot;){e(&quot;#title&quot;).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;&quot;)}e(&quot;#title-prompt-text&quot;).click(function(){e(this).css(&quot;visibility&quot;,&quot;hidden&quot;).siblings(&quot;#title&quot;).focus()});e(&quot;#title&quot;).blur(function(){if(this.value==&quot;&quot;){e(this).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){e(this).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}).keydown(function(g){e(this).siblings(&quot;#title-prompt-text&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;);e(this).unbind(g)})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsautosavedevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.dev.js (14662 => 14663)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.dev.js        2010-05-15 12:21:45 UTC (rev 14662)
+++ trunk/wp-includes/js/autosave.dev.js        2010-05-15 14:03:46 UTC (rev 14663)
</span><span class="lines">@@ -132,7 +132,11 @@
</span><span class="cx">         if ( res &amp;&amp; res.responses.length &amp;&amp; !res.errors ) {
</span><span class="cx">                 // An ID is sent only for real auto-saves, not for autosave=0 &quot;keepalive&quot; saves
</span><span class="cx">                 postID = parseInt( res.responses[0].id, 10 );
</span><del>-                autosave_update_post_ID( postID ); // disabled form buttons are re-enabled here
</del><ins>+                if ( !isNaN(postID) &amp;&amp; postID &gt; 0 ) {
+                        notSaved = false;
+                        jQuery('#auto_draft').val('0'); // No longer an auto-draft
+                }
+                autosave_enable_buttons();
</ins><span class="cx">                 if ( autosaveDelayPreview ) {
</span><span class="cx">                         autosaveDelayPreview = false;
</span><span class="cx">                         doPreview();
</span><span class="lines">@@ -142,17 +146,6 @@
</span><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function autosave_update_post_ID( postID ) {
-        if ( !isNaN(postID) &amp;&amp; postID &gt; 0 ) {
-                if ( postID == parseInt(jQuery('#post_ID').val(), 10) ) { return; } // no need to do this more than once
-                notSaved = false;
-                autosave_enable_buttons();
-                jQuery('#delete-action a.submitdelete').fadeIn();
-                jQuery('#hiddenaction').val('editpost');
-                jQuery('#auto_draft').val('0'); // No longer an auto-draft
-        }
-}
-
</del><span class="cx"> function autosave_update_slug(post_id) {
</span><span class="cx">         // create slug area only if not already there
</span><span class="cx">         if ( 'undefined' != makeSlugeditClickable &amp;&amp; jQuery.isFunction(makeSlugeditClickable) &amp;&amp; !jQuery('#edit-slug-box &gt; *').size() ) {
</span></span></pre></div>
<a id="trunkwpincludesjsautosavejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.js (14662 => 14663)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.js        2010-05-15 12:21:45 UTC (rev 14662)
+++ trunk/wp-includes/js/autosave.js        2010-05-15 14:03:46 UTC (rev 14663)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var autosave,autosaveLast=&quot;&quot;,autosavePeriodical,autosaveOldMessage=&quot;&quot;,autosaveDelayPreview=false,notSaved=true,blockSave=false,interimLogin=false;jQuery(document).ready(function($){var dotabkey=true;autosaveLast=$(&quot;#post #title&quot;).val()+$(&quot;#post #content&quot;).val();autosavePeriodical=$.schedule({time:autosaveL10n.autosaveInterval*1000,func:function(){autosave()},repeat:true,protect:true});$(&quot;#post&quot;).submit(function(){$.cancel(autosavePeriodical)});$('input[type=&quot;submit&quot;], a.submitdelete',&quot;#submitpost&quot;).click(function(){blockSave=true;window.onbeforeunload=null;$(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).each(function(){var t=$(this);if(t.hasClass(&quot;button-primary&quot;)){t.addClass(&quot;button-primary-disabled&quot;)}else{t.addClass(&quot;button-disabled&quot;)}});$(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)});window.onbeforeunload=function(){var mce=typeof(tinyMCE)!=&quot;undefined&quot;?tinyMCE.activeEditor:false,title,content;if(mce&amp;&amp;!mce.isHidden()){if(mce.isDirty()){return autosaveL10n.saveAlert}}else{title=$(&quot;#post #title&quot;).val(),content=$(&quot;#post #content&quot;).val();if((title||content)&amp;&amp;title+content!=autosaveLast){return autosaveL10n.saveAlert}}};$(&quot;#post-preview&quot;).click(function(){if($(&quot;#auto_draft&quot;).val()==&quot;1&quot;&amp;&amp;notSaved){autosaveDelayPreview=true;autosave();return false}doPreview();return false});doPreview=function(){$(&quot;input#wp-preview&quot;).val(&quot;dopreview&quot;);$(&quot;form#post&quot;).attr(&quot;target&quot;,&quot;wp-preview&quot;).submit().attr(&quot;target&quot;,&quot;&quot;);$(&quot;input#wp-preview&quot;).val(&quot;&quot;)};if(typeof tinyMCE!=&quot;undefined&quot;){$(&quot;#title&quot;)[$.browser.opera?&quot;keypress&quot;:&quot;keydown&quot;](function(e){if(e.which==9&amp;&amp;!e.shiftKey&amp;&amp;!e.controlKey&amp;&amp;!e.altKey){if(($(&quot;#auto_draft&quot;).val()==&quot;1&quot;)&amp;&amp;($(&quot;#title&quot;).val().length&gt;0)){autosave()}if(tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden()&amp;&amp;dotabkey){e.preventDefault();dotabkey=false;tinyMCE.activeEditor.focus();return false}}})}if(&quot;1&quot;==$(&quot;#auto_draft&quot;).val()){$(&quot;#title&quot;).blur(function(){if(!this.value||$(&quot;#auto_draft&quot;).val()!=&quot;1&quot;){return}delayed_autosave()})}});function autosave_parse_response(response){var res=wpAjax.parseAjaxResponse(response,&quot;autosave&quot;),message=&quot;&quot;,postID,sup,url;if(res&amp;&amp;res.responses&amp;&amp;res.responses.length){message=res.responses[0].data;if(res.responses[0].supplemental){sup=res.responses[0].supplemental;if(&quot;disable&quot;==sup.disable_autosave){autosave=function(){};res={errors:true}}if(sup.session_expired&amp;&amp;(url=sup.session_expired)){if(!interimLogin||interimLogin.closed){interimLogin=window.open(url,&quot;login&quot;,&quot;width=600,height=450,resizable=yes,scrollbars=yes,status=yes&quot;);interimLogin.focus()}delete sup.session_expired}jQuery.each(sup,function(selector,value){if(selector.match(/^replace-/)){jQuery(&quot;#&quot;+selector.replace(&quot;replace-&quot;,&quot;&quot;)).val(value)}})}if(!res.errors){postID=parseInt(res.responses[0].id,10);if(!isNaN(postID)&amp;&amp;postID&gt;0){autosave_update_slug(postID)}}}if(message){jQuery(&quot;#autosave&quot;).html(message)}else{if(autosaveOldMessage&amp;&amp;res){jQuery(&quot;#autosave&quot;).html(autosaveOldMessage)}}return res}function autosave_saved(response){blockSave=false;autosave_parse_response(response);autosave_enable_buttons()}function autosave_saved_new(response){blockSave=false;var res=autosave_parse_response(response),tempID,postID;if(res&amp;&amp;res.responses.length&amp;&amp;!res.errors){postID=parseInt(res.responses[0].id,10);autosave_update_post_ID(postID);if(autosaveDelayPreview){autosaveDelayPreview=false;doPreview()}}else{autosave_enable_buttons()}}function autosave_update_post_ID(postID){if(!isNaN(postID)&amp;&amp;postID&gt;0){if(postID==parseInt(jQuery(&quot;#post_ID&quot;).val(),10)){return}notSaved=false;autosave_enable_buttons();jQuery(&quot;#delete-action a.submitdelete&quot;).fadeIn();jQuery(&quot;#hiddenaction&quot;).val(&quot;editpost&quot;);jQuery(&quot;#auto_draft&quot;).val(&quot;0&quot;)}}function autosave_update_slug(post_id){if(&quot;undefined&quot;!=makeSlugeditClickable&amp;&amp;jQuery.isFunction(makeSlugeditClickable)&amp;&amp;!jQuery(&quot;#edit-slug-box &gt; *&quot;).size()){jQuery.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:post_id,new_title:jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(data){jQuery(&quot;#edit-slug-box&quot;).html(data);makeSlugeditClickable()})}}function autosave_loading(){jQuery(&quot;#autosave&quot;).html(autosaveL10n.savingText)}function autosave_enable_buttons(){setTimeout(function(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).removeAttr(&quot;disabled&quot;);jQuery(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)},500)}function autosave_disable_buttons(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);setTimeout(autosave_enable_buttons,5000)}function delayed_autosave(){setTimeout(function(){if(blockSave){return}autosave()},200)}autosave=function(){blockSave=true;var rich=(typeof tinyMCE!=&quot;undefined&quot;)&amp;&amp;tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden(),post_data,doAutoSave,ed,origStatus,successCallback;autosave_disable_buttons();post_data={action:&quot;autosave&quot;,post_ID:jQuery(&quot;#post_ID&quot;).val()||0,post_title:jQuery(&quot;#title&quot;).val()||&quot;&quot;,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()||&quot;&quot;,autosave:1};jQuery(&quot;.tags-input&quot;).each(function(){post_data[this.name]=this.value});doAutoSave=true;if(jQuery(&quot;#TB_window&quot;).css(&quot;display&quot;)==&quot;block&quot;){doAutoSave=false}if(rich&amp;&amp;doAutoSave){ed=tinyMCE.activeEditor;if(ed.plugins.spellchecker&amp;&amp;ed.plugins.spellchecker.active){doAutoSave=false}else{if(&quot;mce_fullscreen&quot;==ed.id){tinyMCE.get(&quot;content&quot;).setContent(ed.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.get(&quot;content&quot;).save()}}post_data.content=jQuery(&quot;#content&quot;).val();if(jQuery(&quot;#post_name&quot;).val()){post_data.post_name=jQuery(&quot;#post_name&quot;).val()}if((post_data.post_title.length==0&amp;&amp;post_data.content.length==0)||post_data.post_title+post_data.content==autosaveLast){doAutoSave=false}origStatus=jQuery(&quot;#original_post_status&quot;).val();goodcats=([]);jQuery(&quot;[name='post_category[]']:checked&quot;).each(function(i){goodcats.push(this.value)});post_data.catslist=goodcats.join(&quot;,&quot;);if(jQuery(&quot;#comment_status&quot;).attr(&quot;checked&quot;)){post_data.comment_status=&quot;open&quot;}if(jQuery(&quot;#ping_status&quot;).attr(&quot;checked&quot;)){post_data.ping_status=&quot;open&quot;}if(jQuery(&quot;#excerpt&quot;).size()){post_data.excerpt=jQuery(&quot;#excerpt&quot;).val()}if(jQuery(&quot;#post_author&quot;).size()){post_data.post_author=jQuery(&quot;#post_author&quot;).val()}if(jQuery(&quot;#parent_id&quot;).val()){post_data.parent_id=jQuery(&quot;#parent_id&quot;).val()}post_data.user_ID=jQuery(&quot;#user-id&quot;).val();if(jQuery(&quot;#auto_draft&quot;).val()==&quot;1&quot;){post_data.auto_draft=&quot;1&quot;}if(doAutoSave){autosaveLast=jQuery(&quot;#title&quot;).val()+jQuery(&quot;#content&quot;).val()}else{post_data.autosave=0}if(post_data.auto_draft==&quot;1&quot;){successCallback=autosave_saved_new}else{successCallback=autosave_saved}autosaveOldMessage=jQuery(&quot;#autosave&quot;).html();jQuery.ajax({data:post_data,beforeSend:doAutoSave?autosave_loading:null,type:&quot;POST&quot;,url:autosaveL10n.requestFile,success:successCallback})};
</del><span class="cx">\ No newline at end of file
</span><ins>+var autosave,autosaveLast=&quot;&quot;,autosavePeriodical,autosaveOldMessage=&quot;&quot;,autosaveDelayPreview=false,notSaved=true,blockSave=false,interimLogin=false;jQuery(document).ready(function(b){var a=true;autosaveLast=b(&quot;#post #title&quot;).val()+b(&quot;#post #content&quot;).val();autosavePeriodical=b.schedule({time:autosaveL10n.autosaveInterval*1000,func:function(){autosave()},repeat:true,protect:true});b(&quot;#post&quot;).submit(function(){b.cancel(autosavePeriodical)});b('input[type=&quot;submit&quot;], a.submitdelete',&quot;#submitpost&quot;).click(function(){blockSave=true;window.onbeforeunload=null;b(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).each(function(){var c=b(this);if(c.hasClass(&quot;button-primary&quot;)){c.addClass(&quot;button-primary-disabled&quot;)}else{c.addClass(&quot;button-disabled&quot;)}});b(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)});window.onbeforeunload=function(){var c=typeof(tinyMCE)!=&quot;undefined&quot;?tinyMCE.activeEditor:false,e,d;if(c&amp;&amp;!c.isHidden()){if(c.isDirty()){return autosaveL10n.saveAlert}}else{e=b(&quot;#post #title&quot;).val(),d=b(&quot;#post #content&quot;).val();if((e||d)&amp;&amp;e+d!=autosaveLast){return autosaveL10n.saveAlert}}};b(&quot;#post-preview&quot;).click(function(){if(b(&quot;#auto_draft&quot;).val()==&quot;1&quot;&amp;&amp;notSaved){autosaveDelayPreview=true;autosave();return false}doPreview();return false});doPreview=function(){b(&quot;input#wp-preview&quot;).val(&quot;dopreview&quot;);b(&quot;form#post&quot;).attr(&quot;target&quot;,&quot;wp-preview&quot;).submit().attr(&quot;target&quot;,&quot;&quot;);b(&quot;input#wp-preview&quot;).val(&quot;&quot;)};if(typeof tinyMCE!=&quot;undefined&quot;){b(&quot;#title&quot;)[b.browser.opera?&quot;keypress&quot;:&quot;keydown&quot;](function(c){if(c.which==9&amp;&amp;!c.shiftKey&amp;&amp;!c.controlKey&amp;&amp;!c.altKey){if((b(&quot;#auto_draft&quot;).val()==&quot;1&quot;)&amp;&amp;(b(&quot;#title&quot;).val().length&gt;0)){autosave()}if(tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden()&amp;&amp;a){c.preventDefault();a=false;tinyMCE.activeEditor.focus();return false}}})}if(&quot;1&quot;==b(&quot;#auto_draft&quot;).val()){b(&quot;#title&quot;).blur(function(){if(!this.value||b(&quot;#auto_draft&quot;).val()!=&quot;1&quot;){return}delayed_autosave()})}});function autosave_parse_response(c){var e=wpAjax.parseAjaxResponse(c,&quot;autosave&quot;),f=&quot;&quot;,a,b,d;if(e&amp;&amp;e.responses&amp;&amp;e.responses.length){f=e.responses[0].data;if(e.responses[0].supplemental){b=e.responses[0].supplemental;if(&quot;disable&quot;==b.disable_autosave){autosave=function(){};e={errors:true}}if(b.session_expired&amp;&amp;(d=b.session_expired)){if(!interimLogin||interimLogin.closed){interimLogin=window.open(d,&quot;login&quot;,&quot;width=600,height=450,resizable=yes,scrollbars=yes,status=yes&quot;);interimLogin.focus()}delete b.session_expired}jQuery.each(b,function(g,h){if(g.match(/^replace-/)){jQuery(&quot;#&quot;+g.replace(&quot;replace-&quot;,&quot;&quot;)).val(h)}})}if(!e.errors){a=parseInt(e.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){autosave_update_slug(a)}}}if(f){jQuery(&quot;#autosave&quot;).html(f)}else{if(autosaveOldMessage&amp;&amp;e){jQuery(&quot;#autosave&quot;).html(autosaveOldMessage)}}return e}function autosave_saved(a){blockSave=false;autosave_parse_response(a);autosave_enable_buttons()}function autosave_saved_new(b){blockSave=false;var d=autosave_parse_response(b),c,a;if(d&amp;&amp;d.responses.length&amp;&amp;!d.errors){a=parseInt(d.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){notSaved=false;jQuery(&quot;#auto_draft&quot;).val(&quot;0&quot;)}autosave_enable_buttons();if(autosaveDelayPreview){autosaveDelayPreview=false;doPreview()}}else{autosave_enable_buttons()}}function autosave_update_slug(a){if(&quot;undefined&quot;!=makeSlugeditClickable&amp;&amp;jQuery.isFunction(makeSlugeditClickable)&amp;&amp;!jQuery(&quot;#edit-slug-box &gt; *&quot;).size()){jQuery.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:a,new_title:jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(b){jQuery(&quot;#edit-slug-box&quot;).html(b);makeSlugeditClickable()})}}function autosave_loading(){jQuery(&quot;#autosave&quot;).html(autosaveL10n.savingText)}function autosave_enable_buttons(){setTimeout(function(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).removeAttr(&quot;disabled&quot;);jQuery(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)},500)}function autosave_disable_buttons(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);setTimeout(autosave_enable_buttons,5000)}function delayed_autosave(){setTimeout(function(){if(blockSave){return}autosave()},200)}autosave=function(){blockSave=true;var c=(typeof tinyMCE!=&quot;undefined&quot;)&amp;&amp;tinyMCE.activeEditor&amp;&amp;!tinyMCE.activeEditor.isHidden(),d,f,b,e,a;autosave_disable_buttons();d={action:&quot;autosave&quot;,post_ID:jQuery(&quot;#post_ID&quot;).val()||0,post_title:jQuery(&quot;#title&quot;).val()||&quot;&quot;,autosavenonce:jQuery(&quot;#autosavenonce&quot;).val(),post_type:jQuery(&quot;#post_type&quot;).val()||&quot;&quot;,autosave:1};jQuery(&quot;.tags-input&quot;).each(function(){d[this.name]=this.value});f=true;if(jQuery(&quot;#TB_window&quot;).css(&quot;display&quot;)==&quot;block&quot;){f=false}if(c&amp;&amp;f){b=tinyMCE.activeEditor;if(b.plugins.spellchecker&amp;&amp;b.plugins.spellchecker.active){f=false}else{if(&quot;mce_fullscreen&quot;==b.id){tinyMCE.get(&quot;content&quot;).setContent(b.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.get(&quot;content&quot;).save()}}d.content=jQuery(&quot;#content&quot;).val();if(jQuery(&quot;#post_name&quot;).val()){d.post_name=jQuery(&quot;#post_name&quot;).val()}if((d.post_title.length==0&amp;&amp;d.content.length==0)||d.post_title+d.content==autosaveLast){f=false}e=jQuery(&quot;#original_post_status&quot;).val();goodcats=([]);jQuery(&quot;[name='post_category[]']:checked&quot;).each(function(g){goodcats.push(this.value)});d.catslist=goodcats.join(&quot;,&quot;);if(jQuery(&quot;#comment_status&quot;).attr(&quot;checked&quot;)){d.comment_status=&quot;open&quot;}if(jQuery(&quot;#ping_status&quot;).attr(&quot;checked&quot;)){d.ping_status=&quot;open&quot;}if(jQuery(&quot;#excerpt&quot;).size()){d.excerpt=jQuery(&quot;#excerpt&quot;).val()}if(jQuery(&quot;#post_author&quot;).size()){d.post_author=jQuery(&quot;#post_author&quot;).val()}if(jQuery(&quot;#parent_id&quot;).val()){d.parent_id=jQuery(&quot;#parent_id&quot;).val()}d.user_ID=jQuery(&quot;#user-id&quot;).val();if(jQuery(&quot;#auto_draft&quot;).val()==&quot;1&quot;){d.auto_draft=&quot;1&quot;}if(f){autosaveLast=jQuery(&quot;#title&quot;).val()+jQuery(&quot;#content&quot;).val()}else{d.autosave=0}if(d.auto_draft==&quot;1&quot;){a=autosave_saved_new}else{a=autosave_saved}autosaveOldMessage=jQuery(&quot;#autosave&quot;).html();jQuery.ajax({data:d,beforeSend:f?autosave_loading:null,type:&quot;POST&quot;,url:autosaveL10n.requestFile,success:a})};
</ins><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>