<!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" />
<title>[18027] trunk: Replace .attr() with .prop() as per jQuery 1.6.1.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/18027">18027</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-05-25 01:04:12 +0000 (Wed, 25 May 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Replace .attr() with .prop() as per jQuery 1.6.1. Also fixes couple places where the JS wasn't working because attr('some', '') does not remove the HTML property now, see <a href="http://trac.wordpress.org/ticket/17311">#17311</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjscommondevjs">trunk/wp-admin/js/common.dev.js</a></li>
<li><a href="#trunkwpadminjscommonjs">trunk/wp-admin/js/common.js</a></li>
<li><a href="#trunkwpadminjseditcommentsdevjs">trunk/wp-admin/js/edit-comments.dev.js</a></li>
<li><a href="#trunkwpadminjseditcommentsjs">trunk/wp-admin/js/edit-comments.js</a></li>
<li><a href="#trunkwpadminjsimageeditdevjs">trunk/wp-admin/js/image-edit.dev.js</a></li>
<li><a href="#trunkwpadminjsimageeditjs">trunk/wp-admin/js/image-edit.js</a></li>
<li><a href="#trunkwpadminjsinlineeditpostdevjs">trunk/wp-admin/js/inline-edit-post.dev.js</a></li>
<li><a href="#trunkwpadminjsinlineeditpostjs">trunk/wp-admin/js/inline-edit-post.js</a></li>
<li><a href="#trunkwpadminjslinkdevjs">trunk/wp-admin/js/link.dev.js</a></li>
<li><a href="#trunkwpadminjslinkjs">trunk/wp-admin/js/link.js</a></li>
<li><a href="#trunkwpadminjslisttabledevjs">trunk/wp-admin/js/list-table.dev.js</a></li>
<li><a href="#trunkwpadminjslisttablejs">trunk/wp-admin/js/list-table.js</a></li>
<li><a href="#trunkwpadminjsnavmenudevjs">trunk/wp-admin/js/nav-menu.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenujs">trunk/wp-admin/js/nav-menu.js</a></li>
<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="#trunkwpadminjspostboxdevjs">trunk/wp-admin/js/postbox.dev.js</a></li>
<li><a href="#trunkwpadminjspostboxjs">trunk/wp-admin/js/postbox.js</a></li>
<li><a href="#trunkwpadminjsuserprofiledevjs">trunk/wp-admin/js/user-profile.dev.js</a></li>
<li><a href="#trunkwpadminjsuserprofilejs">trunk/wp-admin/js/user-profile.js</a></li>
<li><a href="#trunkwpadminjsxfndevjs">trunk/wp-admin/js/xfn.dev.js</a></li>
<li><a href="#trunkwpadminjsxfnjs">trunk/wp-admin/js/xfn.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>
<li><a href="#trunkwpincludesjsswfuploadhandlersdevjs">trunk/wp-includes/js/swfupload/handlers.dev.js</a></li>
<li><a href="#trunkwpincludesjsswfuploadhandlersjs">trunk/wp-includes/js/swfupload/handlers.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswplinkjswplinkdevjs">trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js</a></li>
<li><a href="#trunkwpincludesjstinymcepluginswplinkjswplinkjs">trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjscommondevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/common.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -114,7 +114,7 @@
</span><span class="cx">                 var that = this;
</span><span class="cx">                 $('.hide-column-tog', '#adv-settings').click( function() {
</span><span class="cx">                         var $t = $(this), column = $t.val();
</span><del>-                        if ( $t.attr('checked') )
</del><ins>+                        if ( $t.prop('checked') )
</ins><span class="cx">                                 that.checked(column);
</span><span class="cx">                         else
</span><span class="cx">                                 that.unchecked(column);
</span><span class="lines">@@ -261,13 +261,13 @@
</span><span class="cx">                         checks = $( lastClicked ).closest( 'form' ).find( ':checkbox' );
</span><span class="cx">                         first = checks.index( lastClicked );
</span><span class="cx">                         last = checks.index( this );
</span><del>-                        checked = $(this).attr('checked');
</del><ins>+                        checked = $(this).prop('checked');
</ins><span class="cx">                         if ( 0 &lt; first &amp;&amp; 0 &lt; last &amp;&amp; first != last ) {
</span><del>-                                checks.slice( first, last ).attr( 'checked', function(){
</del><ins>+                                checks.slice( first, last ).prop( 'checked', function(){
</ins><span class="cx">                                         if ( $(this).closest('tr').is(':visible') )
</span><del>-                                                return checked ? 'checked' : '';
</del><ins>+                                                return checked;
</ins><span class="cx"> 
</span><del>-                                        return '';
</del><ins>+                                        return false;
</ins><span class="cx">                                 });
</span><span class="cx">                         }
</span><span class="cx">                 }
</span></span></pre></div>
<a id="trunkwpadminjscommonjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/common.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var showNotice,adminMenu,columns,validateForm,screenMeta;(function(a){adminMenu={init:function(){var b=a(&quot;#adminmenu&quot;);a(&quot;.wp-menu-toggle&quot;,b).each(function(){var c=a(this),d=c.siblings(&quot;.wp-submenu&quot;);if(d.length){c.click(function(){adminMenu.toggle(d)})}else{c.hide()}});this.favorites();a(&quot;#collapse-menu&quot;,b).click(function(){if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){adminMenu.fold(1);deleteUserSetting(&quot;mfold&quot;)}else{adminMenu.fold();setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){this.fold()}},restoreMenuState:function(){},toggle:function(b){b.slideToggle(150,function(){var c=b.removeAttr(&quot;style&quot;).parent().toggleClass(&quot;wp-menu-open&quot;).attr(&quot;id&quot;);if(c){a(&quot;li.wp-has-submenu&quot;,&quot;#adminmenu&quot;).each(function(f,g){if(c==g.id){var d=a(g).hasClass(&quot;wp-menu-open&quot;)?&quot;o&quot;:&quot;c&quot;
 ;setUserSetting(&quot;m&quot;+f,d)}})}});return false},fold:function(b){if(b){a(&quot;body&quot;).removeClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).unbind()}else{a(&quot;body&quot;).addClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).hoverIntent({over:function(j){var d,c,g,k,i;d=a(this).find(&quot;.wp-submenu&quot;);c=a(this).offset().top+d.height()+1;g=a(&quot;#wpwrap&quot;).height();k=60+c-g;i=a(window).height()+a(window).scrollTop()-15;if(i&lt;(c-k)){k=c-i}if(k&gt;1){d.css({marginTop:&quot;-&quot;+k+&quot;px&quot;})}else{if(d.css(&quot;marginTop&quot;)){d.css({marginTop:&quot;&quot;})}}d.addClass(&quot;sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;).css({marginTop:&quot;&quot;})},timeout:220,sensitivity:8,interval:100})}},favorites:function(){a(&quot;#favorite-inside&quot;).width(a(&quot;#favorite-actions&quot;).width()-4);a(&quot;#favorite-toggle, #favorite-inside&quot;
 ).bind(&quot;mouseenter&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideUp&quot;).addClass(&quot;slideDown&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideDown&quot;)){a(&quot;#favorite-inside&quot;).slideDown(100);a(&quot;#favorite-first&quot;).addClass(&quot;slide-down&quot;)}},200)}).bind(&quot;mouseleave&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideDown&quot;).addClass(&quot;slideUp&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideUp&quot;)){a(&quot;#favorite-inside&quot;).slideUp(100,function(){a(&quot;#favorite-first&quot;).removeClass(&quot;slide-down&quot;)})}},300)})}};a(document).ready(function(){adminMenu.init()});columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.attr(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})
 },saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=function(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&q
 uot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={links:{&quot;screen-options-link-wrap&quot;:&quot;screen-options-wrap&quot;,&quot;contextual-help-link-wrap&quot;:&quot;contextual-help-wrap&quot;},init:function(){a(&quot;.screen-meta-toggle&quot;).click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.links[this.id]){return}b=a(&quot;#&quot;+screenMeta.links[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){a(&quot;.screen-meta-toggle&quot;).not(c).css(&quot;visibility&quot;,&quot;hidden
 &quot;);b.slideDown(&quot;fast&quot;,function(){c.addClass(&quot;screen-meta-active&quot;)})},close:function(b,c){b.slideUp(&quot;fast&quot;,function(){c.removeClass(&quot;screen-meta-active&quot;);a(&quot;.screen-meta-toggle&quot;).css(&quot;visibility&quot;,&quot;&quot;)})}};a(document).ready(function(){var g=false,b,e,d,c,f;a(&quot;div.wrap h2:first&quot;).nextAll(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quot;div.wrap h2:first&quot;));screenMeta.init();f={doc:a(document),element:a(&quot;#user_info&quot;),open:function(){if(!f.element.hasClass(&quot;active&quot;)){f.element.addClass(&quot;active&quot;);f.doc.one(&quot;click&quot;,f.close);return false}},close:function(){f.element.removeClass(&quot;active&quot;)}};f.element.click(f.open);a(&quot;tbody&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(h){if(&quot;un
 defined&quot;==h.shiftKey){return true}if(h.shiftKey){if(!g){return true}b=a(g).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);e=b.index(g);d=b.index(this);c=a(this).attr(&quot;checked&quot;);if(0&lt;e&amp;&amp;0&lt;d&amp;&amp;e!=d){b.slice(e,d).attr(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return c?&quot;checked&quot;:&quot;&quot;}return&quot;&quot;})}}g=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(j){var k=a(this).prop(&quot;checked&quot;),i=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,h=j.shiftKey||i;a(this).closest(&quot;table&quot;).children(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot;)){return false}if(h){return a(this).prop(&quot;checked&quot;)}else{if(k){
 return true}}return false});a(this).closest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(h){return false}else{if(k){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(m){if(m.keyCode!=9){return true}var j=m.target,o=j.selectionStart,i=j.selectionEnd,n=j.value,h,l;try{this.lastKey=9}catch(k){}if(document.selection){j.focus();l=document.selection.createRange();l.text=&quot;\t&quot;}else{if(o&gt;=0){h=this.scrollTop;j.value=n.substring(0,o).concat(&quot;\t&quot;,n.substring(i));j.selectionStart=j.selectionEnd=o+1;this.scrollTop=h}}if(m.stopPropagation){m.stopPropagation()}if(m.preventDefau
 lt){m.preventDefault()}});a(&quot;#newcontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(h){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}})})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var showNotice,adminMenu,columns,validateForm,screenMeta;(function(a){adminMenu={init:function(){var b=a(&quot;#adminmenu&quot;);a(&quot;.wp-menu-toggle&quot;,b).each(function(){var c=a(this),d=c.siblings(&quot;.wp-submenu&quot;);if(d.length){c.click(function(){adminMenu.toggle(d)})}else{c.hide()}});this.favorites();a(&quot;#collapse-menu&quot;,b).click(function(){if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){adminMenu.fold(1);deleteUserSetting(&quot;mfold&quot;)}else{adminMenu.fold();setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});if(a(&quot;body&quot;).hasClass(&quot;folded&quot;)){this.fold()}},restoreMenuState:function(){},toggle:function(b){b.slideToggle(150,function(){var c=b.removeAttr(&quot;style&quot;).parent().toggleClass(&quot;wp-menu-open&quot;).attr(&quot;id&quot;);if(c){a(&quot;li.wp-has-submenu&quot;,&quot;#adminmenu&quot;).each(function(f,g){if(c==g.id){var d=a(g).hasClass(&quot;wp-menu-open&quot;)?&quot;o&quot;:&quot;c&quot;
 ;setUserSetting(&quot;m&quot;+f,d)}})}});return false},fold:function(b){if(b){a(&quot;body&quot;).removeClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).unbind()}else{a(&quot;body&quot;).addClass(&quot;folded&quot;);a(&quot;#adminmenu li.wp-has-submenu&quot;).hoverIntent({over:function(j){var d,c,g,k,i;d=a(this).find(&quot;.wp-submenu&quot;);c=a(this).offset().top+d.height()+1;g=a(&quot;#wpwrap&quot;).height();k=60+c-g;i=a(window).height()+a(window).scrollTop()-15;if(i&lt;(c-k)){k=c-i}if(k&gt;1){d.css({marginTop:&quot;-&quot;+k+&quot;px&quot;})}else{if(d.css(&quot;marginTop&quot;)){d.css({marginTop:&quot;&quot;})}}d.addClass(&quot;sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;).css({marginTop:&quot;&quot;})},timeout:220,sensitivity:8,interval:100})}},favorites:function(){a(&quot;#favorite-inside&quot;).width(a(&quot;#favorite-actions&quot;).width()-4);a(&quot;#favorite-toggle, #favorite-inside&quot;
 ).bind(&quot;mouseenter&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideUp&quot;).addClass(&quot;slideDown&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideDown&quot;)){a(&quot;#favorite-inside&quot;).slideDown(100);a(&quot;#favorite-first&quot;).addClass(&quot;slide-down&quot;)}},200)}).bind(&quot;mouseleave&quot;,function(){a(&quot;#favorite-inside&quot;).removeClass(&quot;slideDown&quot;).addClass(&quot;slideUp&quot;);setTimeout(function(){if(a(&quot;#favorite-inside&quot;).hasClass(&quot;slideUp&quot;)){a(&quot;#favorite-inside&quot;).slideUp(100,function(){a(&quot;#favorite-first&quot;).removeClass(&quot;slide-down&quot;)})}},300)})}};a(document).ready(function(){adminMenu.init()});columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.prop(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})
 },saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=function(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&q
 uot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={links:{&quot;screen-options-link-wrap&quot;:&quot;screen-options-wrap&quot;,&quot;contextual-help-link-wrap&quot;:&quot;contextual-help-wrap&quot;},init:function(){a(&quot;.screen-meta-toggle&quot;).click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.links[this.id]){return}b=a(&quot;#&quot;+screenMeta.links[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){a(&quot;.screen-meta-toggle&quot;).not(c).css(&quot;visibility&quot;,&quot;hidden
 &quot;);b.slideDown(&quot;fast&quot;,function(){c.addClass(&quot;screen-meta-active&quot;)})},close:function(b,c){b.slideUp(&quot;fast&quot;,function(){c.removeClass(&quot;screen-meta-active&quot;);a(&quot;.screen-meta-toggle&quot;).css(&quot;visibility&quot;,&quot;&quot;)})}};a(document).ready(function(){var g=false,b,e,d,c,f;a(&quot;div.wrap h2:first&quot;).nextAll(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quot;div.wrap h2:first&quot;));screenMeta.init();f={doc:a(document),element:a(&quot;#user_info&quot;),open:function(){if(!f.element.hasClass(&quot;active&quot;)){f.element.addClass(&quot;active&quot;);f.doc.one(&quot;click&quot;,f.close);return false}},close:function(){f.element.removeClass(&quot;active&quot;)}};f.element.click(f.open);a(&quot;tbody&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(h){if(&quot;un
 defined&quot;==h.shiftKey){return true}if(h.shiftKey){if(!g){return true}b=a(g).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);e=b.index(g);d=b.index(this);c=a(this).prop(&quot;checked&quot;);if(0&lt;e&amp;&amp;0&lt;d&amp;&amp;e!=d){b.slice(e,d).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return c}return false})}}g=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(j){var k=a(this).prop(&quot;checked&quot;),i=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,h=j.shiftKey||i;a(this).closest(&quot;table&quot;).children(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot;)){return false}if(h){return a(this).prop(&quot;checked&quot;)}else{if(k){return true}}return false});a(this).clo
 sest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(h){return false}else{if(k){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(m){if(m.keyCode!=9){return true}var j=m.target,o=j.selectionStart,i=j.selectionEnd,n=j.value,h,l;try{this.lastKey=9}catch(k){}if(document.selection){j.focus();l=document.selection.createRange();l.text=&quot;\t&quot;}else{if(o&gt;=0){h=this.scrollTop;j.value=n.substring(0,o).concat(&quot;\t&quot;,n.substring(i));j.selectionStart=j.selectionEnd=o+1;this.scrollTop=h}}if(m.stopPropagation){m.stopPropagation()}if(m.preventDefault){m.preventDefault()}});a(&quot;#newc
 ontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(h){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}})})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjseditcommentsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/edit-comments.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/edit-comments.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/edit-comments.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx">                         el = $('#comment-' + id);
</span><span class="cx">                         note = $('#' + action + '-undo-holder').html();
</span><span class="cx"> 
</span><del>-                        el.find('.check-column :checkbox').attr('checked', ''); // Uncheck the row so as not to be affected by Bulk Edits.
</del><ins>+                        el.find('.check-column :checkbox').prop('checked', false); // Uncheck the row so as not to be affected by Bulk Edits.
</ins><span class="cx"> 
</span><span class="cx">                         if ( el.siblings('#replyrow').length &amp;&amp; commentReply.cid == id )
</span><span class="cx">                                 commentReply.close();
</span><span class="lines">@@ -569,14 +569,14 @@
</span><span class="cx"> 
</span><span class="cx">                 toggle_all = function() {
</span><span class="cx">                         toggleWithKeyboard = true;
</span><del>-                        $('input:checkbox', '#cb').click().attr('checked', '');
</del><ins>+                        $('input:checkbox', '#cb').click().prop('checked', false);
</ins><span class="cx">                         toggleWithKeyboard = false;
</span><span class="cx">                 };
</span><span class="cx"> 
</span><span class="cx">                 make_bulk = function(value) {
</span><span class="cx">                         return function() {
</span><span class="cx">                                 var scope = $('select[name=&quot;action&quot;]');
</span><del>-                                $('option[value=&quot;' + value + '&quot;]', scope).attr('selected', 'selected');
</del><ins>+                                $('option[value=&quot;' + value + '&quot;]', scope).prop('selected', true);
</ins><span class="cx">                                 $('#doaction').click();
</span><span class="cx">                         }
</span><span class="cx">                 };
</span></span></pre></div>
<a id="trunkwpadminjseditcommentsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/edit-comments.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/edit-comments.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/edit-comments.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var theList,theExtraList,toggleWithKeyboard=false,getCount,updateCount,updatePending,dashboardTotals;(function(a){setCommentsList=function(){var c,e,g,j=0,f,h,d,i,b;c=a('input[name=&quot;_total&quot;]',&quot;#comments-form&quot;);e=a('input[name=&quot;_per_page&quot;]',&quot;#comments-form&quot;);g=a('input[name=&quot;_page&quot;]',&quot;#comments-form&quot;);f=function(n,l){var p=a(&quot;#&quot;+l.element),k,o,m;k=a(&quot;#replyrow&quot;);o=a(&quot;#comment_ID&quot;,k).val();m=a(&quot;#replybtn&quot;,k);if(p.is(&quot;.unapproved&quot;)){if(l.data.id==o){m.text(adminCommentsL10n.replyApprove)}p.find(&quot;div.comment_status&quot;).html(&quot;0&quot;)}else{if(l.data.id==o){m.text(adminCommentsL10n.reply)}p.find(&quot;div.comment_status&quot;).html(&quot;1&quot;)}a(&quot;span.pending-count&quot;).each(function(){var q=a(this),s,r;s=q.html().replace(/[^0-9]+/g,&quot;&quot;);s=parseInt(s,10);if(isNaN(s)){return}r=a(&quot;#&quot;+l.element).is(&quot;.&quot;+l.dimClass
 )?1:-1;s=s+r;if(s&lt;0){s=0}q.closest(&quot;#awaiting-mod&quot;)[0==s?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;count-0&quot;);updateCount(q,s);dashboardTotals()})};h=function(o,s){var u=a(o.target).attr(&quot;class&quot;),k,l,m,r,t,q,p=false;o.data._total=c.val()||0;o.data._per_page=e.val()||0;o.data._page=g.val()||0;o.data._url=document.location.href;o.data.comment_status=a('input[name=&quot;comment_status&quot;]',&quot;#comments-form&quot;).val();if(u.indexOf(&quot;:trash=1&quot;)!=-1){p=&quot;trash&quot;}else{if(u.indexOf(&quot;:spam=1&quot;)!=-1){p=&quot;spam&quot;}}if(p){k=u.replace(/.*?comment-([0-9]+).*/,&quot;$1&quot;);l=a(&quot;#comment-&quot;+k);note=a(&quot;#&quot;+p+&quot;-undo-holder&quot;).html();l.find(&quot;.check-column :checkbox&quot;).attr(&quot;checked&quot;,&quot;&quot;);if(l.siblings(&quot;#replyrow&quot;).length&amp;&amp;commentReply.cid==k){commentReply.close()}if(l.is(&quot;tr&quot;)){m=l.children(&quot;:visible&quot;).length;q=a(&quot;.au
 thor strong&quot;,l).text();r=a('&lt;tr id=&quot;undo-'+k+'&quot; class=&quot;undo un'+p+'&quot; style=&quot;display:none;&quot;&gt;&lt;td colspan=&quot;'+m+'&quot;&gt;'+note+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)}else{q=a(&quot;.comment-author&quot;,l).text();r=a('&lt;div id=&quot;undo-'+k+'&quot; style=&quot;display:none;&quot; class=&quot;undo un'+p+'&quot;&gt;'+note+&quot;&lt;/div&gt;&quot;)}l.before(r);a(&quot;strong&quot;,&quot;#undo-&quot;+k).text(q+&quot; &quot;);t=a(&quot;.undo a&quot;,&quot;#undo-&quot;+k);t.attr(&quot;href&quot;,&quot;comment.php?action=un&quot;+p+&quot;comment&amp;c=&quot;+k+&quot;&amp;_wpnonce=&quot;+o.data._ajax_nonce);t.attr(&quot;class&quot;,&quot;delete:the-comment-list:comment-&quot;+k+&quot;::un&quot;+p+&quot;=1 vim-z vim-destructive&quot;);a(&quot;.avatar&quot;,l).clone().prependTo(&quot;#undo-&quot;+k+&quot; .&quot;+p+&quot;-undo-inside&quot;);t.click(function(){s.wpList.del(this);a(&quot;#undo-&quot;+k).css({backgroundColor:&quot;#ceb&quot
 ;}).fadeOut(350,function(){a(this).remove();a(&quot;#comment-&quot;+k).css(&quot;backgroundColor&quot;,&quot;&quot;).fadeIn(300,function(){a(this).show()})});return false})}return o};d=function(k,l,m){if(l&lt;j){return}if(m){j=l}c.val(k.toString());a(&quot;span.total-type-count&quot;).each(function(){updateCount(a(this),k)})};dashboardTotals=function(q){var p=a(&quot;#dashboard_right_now&quot;),l,o,m,k;q=q||0;if(isNaN(q)||!p.length){return}l=a(&quot;span.total-count&quot;,p);o=a(&quot;span.approved-count&quot;,p);m=getCount(l);m=m+q;k=m-getCount(a(&quot;span.pending-count&quot;,p))-getCount(a(&quot;span.spam-count&quot;,p));updateCount(l,m);updateCount(o,k)};getCount=function(k){var l=parseInt(k.html().replace(/[^0-9]+/g,&quot;&quot;),10);if(isNaN(l)){return 0}return l};updateCount=function(l,m){var k=&quot;&quot;;if(isNaN(m)){return}m=m&lt;1?&quot;0&quot;:m.toString();if(m.length&gt;3){while(m.length&gt;3){k=thousandsSeparator+m.substr(m.length-3)+k;m=m.substr(0,m.length-3)
 }m=m+k}l.html(m)};updatePending=function(k){a(&quot;span.pending-count&quot;).each(function(){var l=a(this);if(k&lt;0){k=0}l.closest(&quot;#awaiting-mod&quot;)[0==k?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;count-0&quot;);updateCount(l,k);dashboardTotals()})};i=function(k,n){var q,o,u=a(n.target).parent().is(&quot;span.untrash&quot;),m=a(n.target).parent().is(&quot;span.unspam&quot;),t,s,l,p=a(&quot;#&quot;+n.element).is(&quot;.unapproved&quot;);function v(r){if(a(n.target).parent().is(&quot;span.&quot;+r)){return 1}else{if(a(&quot;#&quot;+n.element).is(&quot;.&quot;+r)){return -1}}return 0}t=v(&quot;spam&quot;);s=v(&quot;trash&quot;);if(u){s=-1}if(m){t=-1}l=getCount(a(&quot;span.pending-count&quot;).eq(0));if(a(n.target).parent().is(&quot;span.unapprove&quot;)||((u||m)&amp;&amp;p)){l=l+1}else{if(p){l=l-1}}updatePending(l);a(&quot;span.spam-count&quot;).each(function(){var r=a(this),w=getCount(r)+t;updateCount(r,w)});a(&quot;span.trash-count&quot;).each(function(){
 var r=a(this),w=getCount(r)+s;updateCount(r,w)});if(a(&quot;#dashboard_right_now&quot;).length){o=s?-1*s:0;dashboardTotals(o)}else{q=c.val()?parseInt(c.val(),10):0;q=q-t-s;if(q&lt;0){q=0}if((&quot;object&quot;==typeof k)&amp;&amp;j&lt;n.parsed.responses[0].supplemental.time){total_items_i18n=n.parsed.responses[0].supplemental.total_items_i18n||&quot;&quot;;if(total_items_i18n){a(&quot;.displaying-num&quot;).text(total_items_i18n);a(&quot;.total-pages&quot;).text(n.parsed.responses[0].supplemental.total_pages_i18n);a(&quot;.tablenav-pages&quot;).find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,n.parsed.responses[0].supplemental.total_pages==a(&quot;.current-page&quot;).val())}d(q,n.parsed.responses[0].supplemental.time,true)}else{d(q,k,false)}}if(!theExtraList||theExtraList.size()==0||theExtraList.children().size()==0||u||m){return}theList.get(0).wpList.add(theExtraList.children(&quot;:eq(0)&quot;).remove().clone());b()};b=function(n){var l=a.query.ge
 t(),k=a(&quot;.total-pages&quot;).text(),m=a('input[name=&quot;_per_page&quot;]',&quot;#comments-form&quot;).val();if(!l.paged){l.paged=1}if(l.paged&gt;k){return}if(n){theExtraList.empty();l.number=Math.min(8,m)}else{l.number=1;l.offset=Math.min(8,m)-1}l.no_placeholder=true;l.paged++;if(true===l.comment_type){l.comment_type=&quot;&quot;}l=a.extend(l,{action:&quot;fetch-list&quot;,list_args:list_args,_ajax_fetch_list_nonce:a(&quot;#_ajax_fetch_list_nonce&quot;).val()});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:l,success:function(o){theExtraList.get(0).wpList.add(o.rows)}})};theExtraList=a(&quot;#the-extra-comment-list&quot;).wpList({alt:&quot;&quot;,delColor:&quot;none&quot;,addColor:&quot;none&quot;});theList=a(&quot;#the-comment-list&quot;).wpList({alt:&quot;&quot;,delBefore:h,dimAfter:f,delAfter:i,addColor:&quot;none&quot;}).bind(&quot;wpListDelEnd&quot;,function(l,k){var m=k.element.replace(/[^0-9]+/g,&quot;&quot;);if(k.target.className.indexOf(&quot
 ;:trash=1&quot;)!=-1||k.target.className.indexOf(&quot;:spam=1&quot;)!=-1){a(&quot;#undo-&quot;+m).fadeIn(300,function(){a(this).show()})}})};commentReply={cid:&quot;&quot;,act:&quot;&quot;,init:function(){var b=a(&quot;#replyrow&quot;);a(&quot;a.cancel&quot;,b).click(function(){return commentReply.revert()});a(&quot;a.save&quot;,b).click(function(){return commentReply.send()});a(&quot;input#author, input#author-email, input#author-url&quot;,b).keypress(function(c){if(c.which==13){commentReply.send();c.preventDefault();return false}});a(&quot;#the-comment-list .column-comment &gt; p&quot;).dblclick(function(){commentReply.toggle(a(this).parent())});a(&quot;#doaction, #doaction2, #post-query-submit&quot;).click(function(c){if(a(&quot;#the-comment-list #replyrow&quot;).length&gt;0){commentReply.close()}});this.comments_listing=a('#comments-form &gt; input[name=&quot;comment_status&quot;]').val()||&quot;&quot;},addEvents:function(b){b.each(function(){a(this).find(&quot;.column-
 comment &gt; p&quot;).dblclick(function(){commentReply.toggle(a(this).parent())})})},toggle:function(b){if(a(b).css(&quot;display&quot;)!=&quot;none&quot;){a(b).find(&quot;a.vim-q&quot;).click()}},revert:function(){if(a(&quot;#the-comment-list #replyrow&quot;).length&lt;1){return false}a(&quot;#replyrow&quot;).fadeOut(&quot;fast&quot;,function(){commentReply.close()});return false},close:function(){var b;if(this.cid){b=a(&quot;#comment-&quot;+this.cid);if(this.act==&quot;edit-comment&quot;){b.fadeIn(300,function(){b.show()}).css(&quot;backgroundColor&quot;,&quot;&quot;)}a(&quot;#replyrow&quot;).hide();a(&quot;#com-reply&quot;).append(a(&quot;#replyrow&quot;));a(&quot;#replycontent&quot;).val(&quot;&quot;);a(&quot;input&quot;,&quot;#edithead&quot;).val(&quot;&quot;);a(&quot;.error&quot;,&quot;#replysubmit&quot;).html(&quot;&quot;).hide();a(&quot;.waiting&quot;,&quot;#replysubmit&quot;).hide();if(a.browser.msie){a(&quot;#replycontainer, #replycontent&quot;).css(&quot;height&qu
 ot;,&quot;120px&quot;)}else{a(&quot;#replycontainer&quot;).resizable(&quot;destroy&quot;).css(&quot;height&quot;,&quot;120px&quot;)}this.cid=&quot;&quot;}},open:function(b,d,k){var m=this,e,f,i,g,j=a(&quot;#comment-&quot;+b),l;m.close();m.cid=b;e=a(&quot;#replyrow&quot;);f=a(&quot;#inline-&quot;+b);i=m.act=(k==&quot;edit&quot;)?&quot;edit-comment&quot;:&quot;replyto-comment&quot;;a(&quot;#action&quot;,e).val(i);a(&quot;#comment_post_ID&quot;,e).val(d);a(&quot;#comment_ID&quot;,e).val(b);if(k==&quot;edit&quot;){a(&quot;#author&quot;,e).val(a(&quot;div.author&quot;,f).text());a(&quot;#author-email&quot;,e).val(a(&quot;div.author-email&quot;,f).text());a(&quot;#author-url&quot;,e).val(a(&quot;div.author-url&quot;,f).text());a(&quot;#status&quot;,e).val(a(&quot;div.comment_status&quot;,f).text());a(&quot;#replycontent&quot;,e).val(a(&quot;textarea.comment&quot;,f).val());a(&quot;#edithead, #savebtn&quot;,e).show();a(&quot;#replyhead, #replybtn&quot;,e).hide();g=j.height();if(g&g
 t;220){if(a.browser.msie){a(&quot;#replycontainer, #replycontent&quot;,e).height(g-105)}else{a(&quot;#replycontainer&quot;,e).height(g-105)}}j.after(e).fadeOut(&quot;fast&quot;,function(){a(&quot;#replyrow&quot;).fadeIn(300,function(){a(this).show()})})}else{l=a(&quot;#replybtn&quot;,e);a(&quot;#edithead, #savebtn&quot;,e).hide();a(&quot;#replyhead, #replybtn&quot;,e).show();j.after(e);if(j.hasClass(&quot;unapproved&quot;)){l.text(adminCommentsL10n.replyApprove)}else{l.text(adminCommentsL10n.reply)}a(&quot;#replyrow&quot;).fadeIn(300,function(){a(this).show()})}setTimeout(function(){var o,h,p,c,n;o=a(&quot;#replyrow&quot;).offset().top;h=o+a(&quot;#replyrow&quot;).height();p=window.pageYOffset||document.documentElement.scrollTop;c=document.documentElement.clientHeight||self.innerHeight||0;n=p+c;if(n-20&lt;h){window.scroll(0,h-c+35)}else{if(o-20&lt;p){window.scroll(0,o-35)}}a(&quot;#replycontent&quot;).focus().keyup(function(q){if(q.which==27){commentReply.revert()}})},600);r
 eturn false},send:function(){var b={};a(&quot;#replysubmit .error&quot;).hide();a(&quot;#replysubmit .waiting&quot;).show();a(&quot;#replyrow input&quot;).not(&quot;:button&quot;).each(function(){b[a(this).attr(&quot;name&quot;)]=a(this).val()});b.content=a(&quot;#replycontent&quot;).val();b.id=b.comment_post_ID;b.comments_listing=this.comments_listing;b.p=a('[name=&quot;p&quot;]').val();if(a(&quot;#comment-&quot;+a(&quot;#comment_ID&quot;).val()).hasClass(&quot;unapproved&quot;)){b.approve_parent=1}a.ajax({type:&quot;POST&quot;,url:ajaxurl,data:b,success:function(c){commentReply.show(c)},error:function(c){commentReply.error(c)}});return false},show:function(d){var f=this,g,i,h,e,b;f.revert();if(typeof(d)==&quot;string&quot;){f.error({responseText:d});return false}g=wpAjax.parseAjaxResponse(d);if(g.errors){f.error({responseText:wpAjax.broken});return false}g=g.responses[0];i=g.data;h=&quot;#comment-&quot;+g.id;if(&quot;edit-comment&quot;==f.act){a(h).remove()}if(g.supplement
 al.parent_approved){b=a(&quot;#comment-&quot;+g.supplemental.parent_approved);updatePending(getCount(a(&quot;span.pending-count&quot;).eq(0))-1);if(this.comments_listing==&quot;moderated&quot;){b.animate({backgroundColor:&quot;#CCEEBB&quot;},400,function(){b.fadeOut()});return}}a(i).hide();a(&quot;#replyrow&quot;).after(i);h=a(h);f.addEvents(h);e=h.css(&quot;background-color&quot;);h.animate({backgroundColor:&quot;#CCEEBB&quot;},300).animate({backgroundColor:e},300,function(){if(b&amp;&amp;b.length){b.animate({backgroundColor:&quot;#CCEEBB&quot;},300).animate({backgroundColor:e},300).removeClass(&quot;unapproved&quot;).addClass(&quot;approved&quot;).find(&quot;div.comment_status&quot;).html(&quot;1&quot;)}})},error:function(b){var c=b.statusText;a(&quot;#replysubmit .waiting&quot;).hide();if(b.responseText){c=b.responseText.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;)}if(c){a(&quot;#replysubmit .error&quot;).html(c).show()}}};a(document).ready(function(){var e,b,c,d;setCo
 mmentsList();commentReply.init();a(document).delegate(&quot;span.delete a.delete&quot;,&quot;click&quot;,function(){return false});if(typeof QTags!=&quot;undefined&quot;){ed_reply=new QTags(&quot;ed_reply&quot;,&quot;replycontent&quot;,&quot;replycontainer&quot;,&quot;more,fullscreen&quot;)}if(typeof a.table_hotkeys!=&quot;undefined&quot;){e=function(f){return function(){var h,g;h=&quot;next&quot;==f?&quot;first&quot;:&quot;last&quot;;g=a(&quot;.tablenav-pages .&quot;+f+&quot;-page:not(.disabled)&quot;);if(g.length){window.location=g[0].href.replace(/\&amp;hotkeys_highlight_(first|last)=1/g,&quot;&quot;)+&quot;&amp;hotkeys_highlight_&quot;+h+&quot;=1&quot;}}};b=function(g,f){window.location=a(&quot;span.edit a&quot;,f).attr(&quot;href&quot;)};c=function(){toggleWithKeyboard=true;a(&quot;input:checkbox&quot;,&quot;#cb&quot;).click().attr(&quot;checked&quot;,&quot;&quot;);toggleWithKeyboard=false};d=function(f){return function(){var g=a('select[name=&quot;action&quot;]');a('op
 tion[value=&quot;'+f+'&quot;]',g).attr(&quot;selected&quot;,&quot;selected&quot;);a(&quot;#doaction&quot;).click()}};a.table_hotkeys(a(&quot;table.widefat&quot;),[&quot;a&quot;,&quot;u&quot;,&quot;s&quot;,&quot;d&quot;,&quot;r&quot;,&quot;q&quot;,&quot;z&quot;,[&quot;e&quot;,b],[&quot;shift+x&quot;,c],[&quot;shift+a&quot;,d(&quot;approve&quot;)],[&quot;shift+s&quot;,d(&quot;spam&quot;)],[&quot;shift+d&quot;,d(&quot;delete&quot;)],[&quot;shift+t&quot;,d(&quot;trash&quot;)],[&quot;shift+z&quot;,d(&quot;untrash&quot;)],[&quot;shift+u&quot;,d(&quot;unapprove&quot;)]],{highlight_first:adminCommentsL10n.hotkeys_highlight_first,highlight_last:adminCommentsL10n.hotkeys_highlight_last,prev_page_link_cb:e(&quot;prev&quot;),next_page_link_cb:e(&quot;next&quot;)})}})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var theList,theExtraList,toggleWithKeyboard=false,getCount,updateCount,updatePending,dashboardTotals;(function(a){setCommentsList=function(){var c,e,g,j=0,f,h,d,i,b;c=a('input[name=&quot;_total&quot;]',&quot;#comments-form&quot;);e=a('input[name=&quot;_per_page&quot;]',&quot;#comments-form&quot;);g=a('input[name=&quot;_page&quot;]',&quot;#comments-form&quot;);f=function(n,l){var p=a(&quot;#&quot;+l.element),k,o,m;k=a(&quot;#replyrow&quot;);o=a(&quot;#comment_ID&quot;,k).val();m=a(&quot;#replybtn&quot;,k);if(p.is(&quot;.unapproved&quot;)){if(l.data.id==o){m.text(adminCommentsL10n.replyApprove)}p.find(&quot;div.comment_status&quot;).html(&quot;0&quot;)}else{if(l.data.id==o){m.text(adminCommentsL10n.reply)}p.find(&quot;div.comment_status&quot;).html(&quot;1&quot;)}a(&quot;span.pending-count&quot;).each(function(){var q=a(this),s,r;s=q.html().replace(/[^0-9]+/g,&quot;&quot;);s=parseInt(s,10);if(isNaN(s)){return}r=a(&quot;#&quot;+l.element).is(&quot;.&quot;+l.dimClass
 )?1:-1;s=s+r;if(s&lt;0){s=0}q.closest(&quot;#awaiting-mod&quot;)[0==s?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;count-0&quot;);updateCount(q,s);dashboardTotals()})};h=function(o,s){var u=a(o.target).attr(&quot;class&quot;),k,l,m,r,t,q,p=false;o.data._total=c.val()||0;o.data._per_page=e.val()||0;o.data._page=g.val()||0;o.data._url=document.location.href;o.data.comment_status=a('input[name=&quot;comment_status&quot;]',&quot;#comments-form&quot;).val();if(u.indexOf(&quot;:trash=1&quot;)!=-1){p=&quot;trash&quot;}else{if(u.indexOf(&quot;:spam=1&quot;)!=-1){p=&quot;spam&quot;}}if(p){k=u.replace(/.*?comment-([0-9]+).*/,&quot;$1&quot;);l=a(&quot;#comment-&quot;+k);note=a(&quot;#&quot;+p+&quot;-undo-holder&quot;).html();l.find(&quot;.check-column :checkbox&quot;).prop(&quot;checked&quot;,false);if(l.siblings(&quot;#replyrow&quot;).length&amp;&amp;commentReply.cid==k){commentReply.close()}if(l.is(&quot;tr&quot;)){m=l.children(&quot;:visible&quot;).length;q=a(&quot;.author st
 rong&quot;,l).text();r=a('&lt;tr id=&quot;undo-'+k+'&quot; class=&quot;undo un'+p+'&quot; style=&quot;display:none;&quot;&gt;&lt;td colspan=&quot;'+m+'&quot;&gt;'+note+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)}else{q=a(&quot;.comment-author&quot;,l).text();r=a('&lt;div id=&quot;undo-'+k+'&quot; style=&quot;display:none;&quot; class=&quot;undo un'+p+'&quot;&gt;'+note+&quot;&lt;/div&gt;&quot;)}l.before(r);a(&quot;strong&quot;,&quot;#undo-&quot;+k).text(q+&quot; &quot;);t=a(&quot;.undo a&quot;,&quot;#undo-&quot;+k);t.attr(&quot;href&quot;,&quot;comment.php?action=un&quot;+p+&quot;comment&amp;c=&quot;+k+&quot;&amp;_wpnonce=&quot;+o.data._ajax_nonce);t.attr(&quot;class&quot;,&quot;delete:the-comment-list:comment-&quot;+k+&quot;::un&quot;+p+&quot;=1 vim-z vim-destructive&quot;);a(&quot;.avatar&quot;,l).clone().prependTo(&quot;#undo-&quot;+k+&quot; .&quot;+p+&quot;-undo-inside&quot;);t.click(function(){s.wpList.del(this);a(&quot;#undo-&quot;+k).css({backgroundColor:&quot;#ceb&quot;}).fad
 eOut(350,function(){a(this).remove();a(&quot;#comment-&quot;+k).css(&quot;backgroundColor&quot;,&quot;&quot;).fadeIn(300,function(){a(this).show()})});return false})}return o};d=function(k,l,m){if(l&lt;j){return}if(m){j=l}c.val(k.toString());a(&quot;span.total-type-count&quot;).each(function(){updateCount(a(this),k)})};dashboardTotals=function(q){var p=a(&quot;#dashboard_right_now&quot;),l,o,m,k;q=q||0;if(isNaN(q)||!p.length){return}l=a(&quot;span.total-count&quot;,p);o=a(&quot;span.approved-count&quot;,p);m=getCount(l);m=m+q;k=m-getCount(a(&quot;span.pending-count&quot;,p))-getCount(a(&quot;span.spam-count&quot;,p));updateCount(l,m);updateCount(o,k)};getCount=function(k){var l=parseInt(k.html().replace(/[^0-9]+/g,&quot;&quot;),10);if(isNaN(l)){return 0}return l};updateCount=function(l,m){var k=&quot;&quot;;if(isNaN(m)){return}m=m&lt;1?&quot;0&quot;:m.toString();if(m.length&gt;3){while(m.length&gt;3){k=thousandsSeparator+m.substr(m.length-3)+k;m=m.substr(0,m.length-3)}m=m+k}
 l.html(m)};updatePending=function(k){a(&quot;span.pending-count&quot;).each(function(){var l=a(this);if(k&lt;0){k=0}l.closest(&quot;#awaiting-mod&quot;)[0==k?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;count-0&quot;);updateCount(l,k);dashboardTotals()})};i=function(k,n){var q,o,u=a(n.target).parent().is(&quot;span.untrash&quot;),m=a(n.target).parent().is(&quot;span.unspam&quot;),t,s,l,p=a(&quot;#&quot;+n.element).is(&quot;.unapproved&quot;);function v(r){if(a(n.target).parent().is(&quot;span.&quot;+r)){return 1}else{if(a(&quot;#&quot;+n.element).is(&quot;.&quot;+r)){return -1}}return 0}t=v(&quot;spam&quot;);s=v(&quot;trash&quot;);if(u){s=-1}if(m){t=-1}l=getCount(a(&quot;span.pending-count&quot;).eq(0));if(a(n.target).parent().is(&quot;span.unapprove&quot;)||((u||m)&amp;&amp;p)){l=l+1}else{if(p){l=l-1}}updatePending(l);a(&quot;span.spam-count&quot;).each(function(){var r=a(this),w=getCount(r)+t;updateCount(r,w)});a(&quot;span.trash-count&quot;).each(function(){var r=a
 (this),w=getCount(r)+s;updateCount(r,w)});if(a(&quot;#dashboard_right_now&quot;).length){o=s?-1*s:0;dashboardTotals(o)}else{q=c.val()?parseInt(c.val(),10):0;q=q-t-s;if(q&lt;0){q=0}if((&quot;object&quot;==typeof k)&amp;&amp;j&lt;n.parsed.responses[0].supplemental.time){total_items_i18n=n.parsed.responses[0].supplemental.total_items_i18n||&quot;&quot;;if(total_items_i18n){a(&quot;.displaying-num&quot;).text(total_items_i18n);a(&quot;.total-pages&quot;).text(n.parsed.responses[0].supplemental.total_pages_i18n);a(&quot;.tablenav-pages&quot;).find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,n.parsed.responses[0].supplemental.total_pages==a(&quot;.current-page&quot;).val())}d(q,n.parsed.responses[0].supplemental.time,true)}else{d(q,k,false)}}if(!theExtraList||theExtraList.size()==0||theExtraList.children().size()==0||u||m){return}theList.get(0).wpList.add(theExtraList.children(&quot;:eq(0)&quot;).remove().clone());b()};b=function(n){var l=a.query.get(),k=a
 (&quot;.total-pages&quot;).text(),m=a('input[name=&quot;_per_page&quot;]',&quot;#comments-form&quot;).val();if(!l.paged){l.paged=1}if(l.paged&gt;k){return}if(n){theExtraList.empty();l.number=Math.min(8,m)}else{l.number=1;l.offset=Math.min(8,m)-1}l.no_placeholder=true;l.paged++;if(true===l.comment_type){l.comment_type=&quot;&quot;}l=a.extend(l,{action:&quot;fetch-list&quot;,list_args:list_args,_ajax_fetch_list_nonce:a(&quot;#_ajax_fetch_list_nonce&quot;).val()});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:l,success:function(o){theExtraList.get(0).wpList.add(o.rows)}})};theExtraList=a(&quot;#the-extra-comment-list&quot;).wpList({alt:&quot;&quot;,delColor:&quot;none&quot;,addColor:&quot;none&quot;});theList=a(&quot;#the-comment-list&quot;).wpList({alt:&quot;&quot;,delBefore:h,dimAfter:f,delAfter:i,addColor:&quot;none&quot;}).bind(&quot;wpListDelEnd&quot;,function(l,k){var m=k.element.replace(/[^0-9]+/g,&quot;&quot;);if(k.target.className.indexOf(&quot;:trash
 =1&quot;)!=-1||k.target.className.indexOf(&quot;:spam=1&quot;)!=-1){a(&quot;#undo-&quot;+m).fadeIn(300,function(){a(this).show()})}})};commentReply={cid:&quot;&quot;,act:&quot;&quot;,init:function(){var b=a(&quot;#replyrow&quot;);a(&quot;a.cancel&quot;,b).click(function(){return commentReply.revert()});a(&quot;a.save&quot;,b).click(function(){return commentReply.send()});a(&quot;input#author, input#author-email, input#author-url&quot;,b).keypress(function(c){if(c.which==13){commentReply.send();c.preventDefault();return false}});a(&quot;#the-comment-list .column-comment &gt; p&quot;).dblclick(function(){commentReply.toggle(a(this).parent())});a(&quot;#doaction, #doaction2, #post-query-submit&quot;).click(function(c){if(a(&quot;#the-comment-list #replyrow&quot;).length&gt;0){commentReply.close()}});this.comments_listing=a('#comments-form &gt; input[name=&quot;comment_status&quot;]').val()||&quot;&quot;},addEvents:function(b){b.each(function(){a(this).find(&quot;.column-comment
  &gt; p&quot;).dblclick(function(){commentReply.toggle(a(this).parent())})})},toggle:function(b){if(a(b).css(&quot;display&quot;)!=&quot;none&quot;){a(b).find(&quot;a.vim-q&quot;).click()}},revert:function(){if(a(&quot;#the-comment-list #replyrow&quot;).length&lt;1){return false}a(&quot;#replyrow&quot;).fadeOut(&quot;fast&quot;,function(){commentReply.close()});return false},close:function(){var b;if(this.cid){b=a(&quot;#comment-&quot;+this.cid);if(this.act==&quot;edit-comment&quot;){b.fadeIn(300,function(){b.show()}).css(&quot;backgroundColor&quot;,&quot;&quot;)}a(&quot;#replyrow&quot;).hide();a(&quot;#com-reply&quot;).append(a(&quot;#replyrow&quot;));a(&quot;#replycontent&quot;).val(&quot;&quot;);a(&quot;input&quot;,&quot;#edithead&quot;).val(&quot;&quot;);a(&quot;.error&quot;,&quot;#replysubmit&quot;).html(&quot;&quot;).hide();a(&quot;.waiting&quot;,&quot;#replysubmit&quot;).hide();if(a.browser.msie){a(&quot;#replycontainer, #replycontent&quot;).css(&quot;height&quot;,&qu
 ot;120px&quot;)}else{a(&quot;#replycontainer&quot;).resizable(&quot;destroy&quot;).css(&quot;height&quot;,&quot;120px&quot;)}this.cid=&quot;&quot;}},open:function(b,d,k){var m=this,e,f,i,g,j=a(&quot;#comment-&quot;+b),l;m.close();m.cid=b;e=a(&quot;#replyrow&quot;);f=a(&quot;#inline-&quot;+b);i=m.act=(k==&quot;edit&quot;)?&quot;edit-comment&quot;:&quot;replyto-comment&quot;;a(&quot;#action&quot;,e).val(i);a(&quot;#comment_post_ID&quot;,e).val(d);a(&quot;#comment_ID&quot;,e).val(b);if(k==&quot;edit&quot;){a(&quot;#author&quot;,e).val(a(&quot;div.author&quot;,f).text());a(&quot;#author-email&quot;,e).val(a(&quot;div.author-email&quot;,f).text());a(&quot;#author-url&quot;,e).val(a(&quot;div.author-url&quot;,f).text());a(&quot;#status&quot;,e).val(a(&quot;div.comment_status&quot;,f).text());a(&quot;#replycontent&quot;,e).val(a(&quot;textarea.comment&quot;,f).val());a(&quot;#edithead, #savebtn&quot;,e).show();a(&quot;#replyhead, #replybtn&quot;,e).hide();g=j.height();if(g&gt;220){
 if(a.browser.msie){a(&quot;#replycontainer, #replycontent&quot;,e).height(g-105)}else{a(&quot;#replycontainer&quot;,e).height(g-105)}}j.after(e).fadeOut(&quot;fast&quot;,function(){a(&quot;#replyrow&quot;).fadeIn(300,function(){a(this).show()})})}else{l=a(&quot;#replybtn&quot;,e);a(&quot;#edithead, #savebtn&quot;,e).hide();a(&quot;#replyhead, #replybtn&quot;,e).show();j.after(e);if(j.hasClass(&quot;unapproved&quot;)){l.text(adminCommentsL10n.replyApprove)}else{l.text(adminCommentsL10n.reply)}a(&quot;#replyrow&quot;).fadeIn(300,function(){a(this).show()})}setTimeout(function(){var o,h,p,c,n;o=a(&quot;#replyrow&quot;).offset().top;h=o+a(&quot;#replyrow&quot;).height();p=window.pageYOffset||document.documentElement.scrollTop;c=document.documentElement.clientHeight||self.innerHeight||0;n=p+c;if(n-20&lt;h){window.scroll(0,h-c+35)}else{if(o-20&lt;p){window.scroll(0,o-35)}}a(&quot;#replycontent&quot;).focus().keyup(function(q){if(q.which==27){commentReply.revert()}})},600);return f
 alse},send:function(){var b={};a(&quot;#replysubmit .error&quot;).hide();a(&quot;#replysubmit .waiting&quot;).show();a(&quot;#replyrow input&quot;).not(&quot;:button&quot;).each(function(){b[a(this).attr(&quot;name&quot;)]=a(this).val()});b.content=a(&quot;#replycontent&quot;).val();b.id=b.comment_post_ID;b.comments_listing=this.comments_listing;b.p=a('[name=&quot;p&quot;]').val();if(a(&quot;#comment-&quot;+a(&quot;#comment_ID&quot;).val()).hasClass(&quot;unapproved&quot;)){b.approve_parent=1}a.ajax({type:&quot;POST&quot;,url:ajaxurl,data:b,success:function(c){commentReply.show(c)},error:function(c){commentReply.error(c)}});return false},show:function(d){var f=this,g,i,h,e,b;f.revert();if(typeof(d)==&quot;string&quot;){f.error({responseText:d});return false}g=wpAjax.parseAjaxResponse(d);if(g.errors){f.error({responseText:wpAjax.broken});return false}g=g.responses[0];i=g.data;h=&quot;#comment-&quot;+g.id;if(&quot;edit-comment&quot;==f.act){a(h).remove()}if(g.supplemental.pare
 nt_approved){b=a(&quot;#comment-&quot;+g.supplemental.parent_approved);updatePending(getCount(a(&quot;span.pending-count&quot;).eq(0))-1);if(this.comments_listing==&quot;moderated&quot;){b.animate({backgroundColor:&quot;#CCEEBB&quot;},400,function(){b.fadeOut()});return}}a(i).hide();a(&quot;#replyrow&quot;).after(i);h=a(h);f.addEvents(h);e=h.css(&quot;background-color&quot;);h.animate({backgroundColor:&quot;#CCEEBB&quot;},300).animate({backgroundColor:e},300,function(){if(b&amp;&amp;b.length){b.animate({backgroundColor:&quot;#CCEEBB&quot;},300).animate({backgroundColor:e},300).removeClass(&quot;unapproved&quot;).addClass(&quot;approved&quot;).find(&quot;div.comment_status&quot;).html(&quot;1&quot;)}})},error:function(b){var c=b.statusText;a(&quot;#replysubmit .waiting&quot;).hide();if(b.responseText){c=b.responseText.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;)}if(c){a(&quot;#replysubmit .error&quot;).html(c).show()}}};a(document).ready(function(){var e,b,c,d;setCommentsL
 ist();commentReply.init();a(document).delegate(&quot;span.delete a.delete&quot;,&quot;click&quot;,function(){return false});if(typeof QTags!=&quot;undefined&quot;){ed_reply=new QTags(&quot;ed_reply&quot;,&quot;replycontent&quot;,&quot;replycontainer&quot;,&quot;more,fullscreen&quot;)}if(typeof a.table_hotkeys!=&quot;undefined&quot;){e=function(f){return function(){var h,g;h=&quot;next&quot;==f?&quot;first&quot;:&quot;last&quot;;g=a(&quot;.tablenav-pages .&quot;+f+&quot;-page:not(.disabled)&quot;);if(g.length){window.location=g[0].href.replace(/\&amp;hotkeys_highlight_(first|last)=1/g,&quot;&quot;)+&quot;&amp;hotkeys_highlight_&quot;+h+&quot;=1&quot;}}};b=function(g,f){window.location=a(&quot;span.edit a&quot;,f).attr(&quot;href&quot;)};c=function(){toggleWithKeyboard=true;a(&quot;input:checkbox&quot;,&quot;#cb&quot;).click().prop(&quot;checked&quot;,false);toggleWithKeyboard=false};d=function(f){return function(){var g=a('select[name=&quot;action&quot;]');a('option[value=&qu
 ot;'+f+'&quot;]',g).prop(&quot;selected&quot;,true);a(&quot;#doaction&quot;).click()}};a.table_hotkeys(a(&quot;table.widefat&quot;),[&quot;a&quot;,&quot;u&quot;,&quot;s&quot;,&quot;d&quot;,&quot;r&quot;,&quot;q&quot;,&quot;z&quot;,[&quot;e&quot;,b],[&quot;shift+x&quot;,c],[&quot;shift+a&quot;,d(&quot;approve&quot;)],[&quot;shift+s&quot;,d(&quot;spam&quot;)],[&quot;shift+d&quot;,d(&quot;delete&quot;)],[&quot;shift+t&quot;,d(&quot;trash&quot;)],[&quot;shift+z&quot;,d(&quot;untrash&quot;)],[&quot;shift+u&quot;,d(&quot;unapprove&quot;)]],{highlight_first:adminCommentsL10n.hotkeys_highlight_first,highlight_last:adminCommentsL10n.hotkeys_highlight_last,prev_page_link_cb:e(&quot;prev&quot;),next_page_link_cb:e(&quot;next&quot;)})}})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsimageeditdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/image-edit.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/image-edit.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/image-edit.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx">                         $('input', el).removeAttr('disabled');
</span><span class="cx">                 } else {
</span><span class="cx">                         el.addClass('disabled');
</span><del>-                        $('input', el).attr('disabled', 'disabled');
</del><ins>+                        $('input', el).prop('disabled', true);
</ins><span class="cx">                 }
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="lines">@@ -178,7 +178,7 @@
</span><span class="cx">                         if ( $('#imgedit-history-' + postid).val() &amp;&amp; $('#imgedit-undone-' + postid).val() == 0 )
</span><span class="cx">                                 $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).removeAttr('disabled');
</span><span class="cx">                         else
</span><del>-                                $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).attr('disabled', 'disabled');
</del><ins>+                                $('input.imgedit-submit-btn', '#imgedit-panel-' + postid).prop('disabled', true);
</ins><span class="cx"> 
</span><span class="cx">                         t.toggleEditor(postid, 0);
</span><span class="cx">                 }).attr('src', ajaxurl + '?' + $.param(data));
</span><span class="lines">@@ -271,7 +271,7 @@
</span><span class="cx">                 var data, elem = $('#image-editor-' + postid), head = $('#media-head-' + postid),
</span><span class="cx">                         btn = $('#imgedit-open-btn-' + postid), spin = btn.siblings('img');
</span><span class="cx"> 
</span><del>-                btn.attr('disabled', 'disabled');
</del><ins>+                btn.prop('disabled', true);
</ins><span class="cx">                 spin.css('visibility', 'visible');
</span><span class="cx"> 
</span><span class="cx">                 data = {
</span></span></pre></div>
<a id="trunkwpadminjsimageeditjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/image-edit.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/image-edit.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/image-edit.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var imageEdit;(function(a){imageEdit={iasapi:{},hold:{},postid:&quot;&quot;,intval:function(b){return b|0},setDisabled:function(c,b){if(b){c.removeClass(&quot;disabled&quot;);a(&quot;input&quot;,c).removeAttr(&quot;disabled&quot;)}else{c.addClass(&quot;disabled&quot;);a(&quot;input&quot;,c).attr(&quot;disabled&quot;,&quot;disabled&quot;)}},init:function(g,e){var d=this,c=a(&quot;#image-editor-&quot;+d.postid),b=d.intval(a(&quot;#imgedit-x-&quot;+g).val()),f=d.intval(a(&quot;#imgedit-y-&quot;+g).val());if(d.postid!=g&amp;&amp;c.length){d.close(d.postid)}d.hold.w=d.hold.ow=b;d.hold.h=d.hold.oh=f;d.hold.xy_ratio=b/f;d.hold.sizer=parseFloat(a(&quot;#imgedit-sizer-&quot;+g).val());d.postid=g;a(&quot;#imgedit-response-&quot;+g).empty();a('input[type=&quot;text&quot;]',&quot;#imgedit-panel-&quot;+g).keypress(function(i){var h=i.keyCode;if(36&lt;h&amp;&amp;h&lt;41){a(this).blur()}if(13==h){i.preventDefault();i.stopPropagation();return false}})},toggleEditor:function(d,b)
 {var c=a(&quot;#imgedit-wait-&quot;+d);if(b){c.height(a(&quot;#imgedit-panel-&quot;+d).height()).fadeIn(&quot;fast&quot;)}else{c.fadeOut(&quot;fast&quot;)}},toggleHelp:function(b){a(b).siblings(&quot;.imgedit-help&quot;).slideToggle(&quot;fast&quot;);return false},getTarget:function(b){return a('input[name=&quot;imgedit-target-'+b+'&quot;]:checked',&quot;#imgedit-save-target-&quot;+b).val()||&quot;full&quot;},scaleChanged:function(i,b){var d=a(&quot;#imgedit-scale-width-&quot;+i),f=a(&quot;#imgedit-scale-height-&quot;+i),g=a(&quot;#imgedit-scale-warn-&quot;+i),c=&quot;&quot;,e=&quot;&quot;;if(b){e=(d.val()!=&quot;&quot;)?this.intval(d.val()/this.hold.xy_ratio):&quot;&quot;;f.val(e)}else{c=(f.val()!=&quot;&quot;)?this.intval(f.val()*this.hold.xy_ratio):&quot;&quot;;d.val(c)}if((e&amp;&amp;e&gt;this.hold.oh)||(c&amp;&amp;c&gt;this.hold.ow)){g.css(&quot;visibility&quot;,&quot;visible&quot;)}else{g.css(&quot;visibility&quot;,&quot;hidden&quot;)}},getSelRatio:function(f){var b=th
 is.hold.w,e=this.hold.h,d=this.intval(a(&quot;#imgedit-crop-width-&quot;+f).val()),c=this.intval(a(&quot;#imgedit-crop-height-&quot;+f).val());if(d&amp;&amp;c){return d+&quot;:&quot;+c}if(b&amp;&amp;e){return b+&quot;:&quot;+e}return&quot;1:1&quot;},filterHistory:function(j,f){var d=a(&quot;#imgedit-history-&quot;+j).val(),b,h,e,c,g=[];if(d!=&quot;&quot;){d=JSON.parse(d);b=this.intval(a(&quot;#imgedit-undone-&quot;+j).val());if(b&gt;0){while(b&gt;0){d.pop();b--}}if(f){if(!d.length){this.hold.w=this.hold.ow;this.hold.h=this.hold.oh;return&quot;&quot;}e=d[d.length-1];e=e.c||e.r||e.f||false;if(e){this.hold.w=e.fw;this.hold.h=e.fh}}for(h in d){c=d[h];if(c.hasOwnProperty(&quot;c&quot;)){g[h]={c:{x:c.c.x,y:c.c.y,w:c.c.w,h:c.c.h}}}else{if(c.hasOwnProperty(&quot;r&quot;)){g[h]={r:c.r.r}}else{if(c.hasOwnProperty(&quot;f&quot;)){g[h]={f:c.f.f}}}}}return JSON.stringify(g)}return&quot;&quot;},refreshEditor:function(g,d,f){var c=this,e,b;c.toggleEditor(g,1);e={action:&quot;imgedit-previe
 w&quot;,_ajax_nonce:d,postid:g,history:c.filterHistory(g,1),rand:c.intval(Math.random()*1000000)};b=a('&lt;img id=&quot;image-preview-'+g+'&quot; /&gt;');b.load(function(){var i,h,k=a(&quot;#imgedit-crop-&quot;+g),j=imageEdit;k.empty().append(b);i=Math.max(j.hold.w,j.hold.h);h=Math.max(a(b).width(),a(b).height());j.hold.sizer=i&gt;h?h/i:1;j.initCrop(g,b,k);j.setCropSelection(g,0);if((typeof f!=&quot;unknown&quot;)&amp;&amp;f!=null){f()}if(a(&quot;#imgedit-history-&quot;+g).val()&amp;&amp;a(&quot;#imgedit-undone-&quot;+g).val()==0){a(&quot;input.imgedit-submit-btn&quot;,&quot;#imgedit-panel-&quot;+g).removeAttr(&quot;disabled&quot;)}else{a(&quot;input.imgedit-submit-btn&quot;,&quot;#imgedit-panel-&quot;+g).attr(&quot;disabled&quot;,&quot;disabled&quot;)}j.toggleEditor(g,0)}).attr(&quot;src&quot;,ajaxurl+&quot;?&quot;+a.param(e))},action:function(b,g,c){var j=this,e,i,f,d,k;if(j.notsaved(b)){return false}e={action:&quot;image-editor&quot;,_ajax_nonce:g,postid:b};if(&quot;scale
 &quot;==c){i=a(&quot;#imgedit-scale-width-&quot;+b),f=a(&quot;#imgedit-scale-height-&quot;+b),d=j.intval(i.val()),k=j.intval(f.val());if(d&lt;1){i.focus();return false}else{if(k&lt;1){f.focus();return false}}if(d==j.hold.ow||k==j.hold.oh){return false}e[&quot;do&quot;]=&quot;scale&quot;;e.fwidth=d;e.fheight=k}else{if(&quot;restore&quot;==c){e[&quot;do&quot;]=&quot;restore&quot;}else{return false}}j.toggleEditor(b,1);a.post(ajaxurl,e,function(h){a(&quot;#image-editor-&quot;+b).empty().append(h);j.toggleEditor(b,0)})},save:function(f,b){var c,e=this.getTarget(f),d=this.filterHistory(f,0);if(&quot;&quot;==d){return false}this.toggleEditor(f,1);c={action:&quot;image-editor&quot;,_ajax_nonce:b,postid:f,history:d,target:e,&quot;do&quot;:&quot;save&quot;};a.post(ajaxurl,c,function(h){var g=JSON.parse(h);if(g.error){a(&quot;#imgedit-response-&quot;+f).html('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+g.error+&quot;&lt;/p&gt;&lt;div&gt;&quot;);imageEdit.close(f);return}if(g.fw&amp;
 &amp;g.fh){a(&quot;#media-dims-&quot;+f).html(g.fw+&quot; &amp;times; &quot;+g.fh)}if(g.thumbnail){a(&quot;.thumbnail&quot;,&quot;#thumbnail-head-&quot;+f).attr(&quot;src&quot;,&quot;&quot;+g.thumbnail)}if(g.msg){a(&quot;#imgedit-response-&quot;+f).html('&lt;div class=&quot;updated&quot;&gt;&lt;p&gt;'+g.msg+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)}imageEdit.close(f)})},open:function(h,d){var f,e=a(&quot;#image-editor-&quot;+h),c=a(&quot;#media-head-&quot;+h),b=a(&quot;#imgedit-open-btn-&quot;+h),g=b.siblings(&quot;img&quot;);b.attr(&quot;disabled&quot;,&quot;disabled&quot;);g.css(&quot;visibility&quot;,&quot;visible&quot;);f={action:&quot;image-editor&quot;,_ajax_nonce:d,postid:h,&quot;do&quot;:&quot;open&quot;};e.load(ajaxurl,f,function(){e.fadeIn(&quot;fast&quot;);c.fadeOut(&quot;fast&quot;,function(){b.removeAttr(&quot;disabled&quot;);g.css(&quot;visibility&quot;,&quot;hidden&quot;)})})},imgLoaded:function(d){var b=a(&quot;#image-preview-&quot;+d),c=a(&quot;#imgedit-crop-&quot
 ;+d);this.initCrop(d,b,c);this.setCropSelection(d,0);this.toggleEditor(d,0)},initCrop:function(g,e,c){var b=this,d=a(&quot;#imgedit-sel-width-&quot;+g),f=a(&quot;#imgedit-sel-height-&quot;+g);b.iasapi=a(e).imgAreaSelect({parent:c,instance:true,handles:true,keys:true,minWidth:3,minHeight:3,onInit:function(h,i){c.children().mousedown(function(m){var k=false,l,j;if(m.shiftKey){l=b.iasapi.getSelection();j=b.getSelRatio(g);k=(l&amp;&amp;l.width&amp;&amp;l.height)?l.width+&quot;:&quot;+l.height:j}b.iasapi.setOptions({aspectRatio:k})})},onSelectStart:function(h,i){imageEdit.setDisabled(a(&quot;#imgedit-crop-sel-&quot;+g),1)},onSelectEnd:function(h,i){imageEdit.setCropSelection(g,i)},onSelectChange:function(h,j){var i=imageEdit.hold.sizer;d.val(imageEdit.round(j.width/i));f.val(imageEdit.round(j.height/i))}})},setCropSelection:function(g,f){var e,b=a(&quot;#imgedit-minthumb-&quot;+g).val()||&quot;128:128&quot;,d=this.hold.sizer;b=b.split(&quot;:&quot;);f=f||0;if(!f||(f.width&lt;3&am
 p;&amp;f.height&lt;3)){this.setDisabled(a(&quot;.imgedit-crop&quot;,&quot;#imgedit-panel-&quot;+g),0);this.setDisabled(a(&quot;#imgedit-crop-sel-&quot;+g),0);a(&quot;#imgedit-sel-width-&quot;+g).val(&quot;&quot;);a(&quot;#imgedit-sel-height-&quot;+g).val(&quot;&quot;);a(&quot;#imgedit-selection-&quot;+g).val(&quot;&quot;);return false}if(f.width&lt;(b[0]*d)&amp;&amp;f.height&lt;(b[1]*d)){this.setDisabled(a(&quot;.imgedit-crop&quot;,&quot;#imgedit-panel-&quot;+g),0);a(&quot;#imgedit-selection-&quot;+g).val(&quot;&quot;);return false}e={x:f.x1,y:f.y1,w:f.width,h:f.height};this.setDisabled(a(&quot;.imgedit-crop&quot;,&quot;#imgedit-panel-&quot;+g),1);a(&quot;#imgedit-selection-&quot;+g).val(JSON.stringify(e))},close:function(c,b){b=b||false;if(b&amp;&amp;this.notsaved(c)){return false}this.iasapi={};this.hold={};a(&quot;#image-editor-&quot;+c).fadeOut(&quot;fast&quot;,function(){a(&quot;#media-head-&quot;+c).fadeIn(&quot;fast&quot;);a(this).empty()})},notsaved:function(e){var c
 =a(&quot;#imgedit-history-&quot;+e).val(),d=(c!=&quot;&quot;)?JSON.parse(c):new Array(),b=this.intval(a(&quot;#imgedit-undone-&quot;+e).val());if(b&lt;d.length){if(confirm(a(&quot;#imgedit-leaving-&quot;+e).html())){return false}return true}return false},addStep:function(i,h,d){var c=this,e=a(&quot;#imgedit-history-&quot;+h),g=(e.val()!=&quot;&quot;)?JSON.parse(e.val()):new Array(),f=a(&quot;#imgedit-undone-&quot;+h),b=c.intval(f.val());while(b&gt;0){g.pop();b--}f.val(0);g.push(i);e.val(JSON.stringify(g));c.refreshEditor(h,d,function(){c.setDisabled(a(&quot;#image-undo-&quot;+h),true);c.setDisabled(a(&quot;#image-redo-&quot;+h),false)})},rotate:function(d,e,c,b){if(a(b).hasClass(&quot;disabled&quot;)){return false}this.addStep({r:{r:d,fw:this.hold.h,fh:this.hold.w}},e,c)},flip:function(d,e,c,b){if(a(b).hasClass(&quot;disabled&quot;)){return false}this.addStep({f:{f:d,fw:this.hold.w,fh:this.hold.h}},e,c)},crop:function(g,e,c){var f=a(&quot;#imgedit-selection-&quot;+g).val(),b
 =this.intval(a(&quot;#imgedit-sel-width-&quot;+g).val()),d=this.intval(a(&quot;#imgedit-sel-height-&quot;+g).val());if(a(c).hasClass(&quot;disabled&quot;)||f==&quot;&quot;){return false}f=JSON.parse(f);if(f.w&gt;0&amp;&amp;f.h&gt;0&amp;&amp;b&gt;0&amp;&amp;d&gt;0){f.fw=b;f.fh=d;this.addStep({c:f},g,e)}},undo:function(g,e){var d=this,c=a(&quot;#image-undo-&quot;+g),f=a(&quot;#imgedit-undone-&quot;+g),b=d.intval(f.val())+1;if(c.hasClass(&quot;disabled&quot;)){return}f.val(b);d.refreshEditor(g,e,function(){var h=a(&quot;#imgedit-history-&quot;+g),i=(h.val()!=&quot;&quot;)?JSON.parse(h.val()):new Array();d.setDisabled(a(&quot;#image-redo-&quot;+g),true);d.setDisabled(c,b&lt;i.length)})},redo:function(g,e){var d=this,c=a(&quot;#image-redo-&quot;+g),f=a(&quot;#imgedit-undone-&quot;+g),b=d.intval(f.val())-1;if(c.hasClass(&quot;disabled&quot;)){return}f.val(b);d.refreshEditor(g,e,function(){d.setDisabled(a(&quot;#image-undo-&quot;+g),true);d.setDisabled(c,b&gt;0)})},setNumSelection:
 function(c){var g,k=a(&quot;#imgedit-sel-width-&quot;+c),j=a(&quot;#imgedit-sel-height-&quot;+c),o=this.intval(k.val()),m=this.intval(j.val()),i=a(&quot;#image-preview-&quot;+c),p=i.height(),h=i.width(),b=this.hold.sizer,f,n,e,l,d=this.iasapi;if(o&lt;1){k.val(&quot;&quot;);return false}if(m&lt;1){j.val(&quot;&quot;);return false}if(o&amp;&amp;m&amp;&amp;(g=d.getSelection())){e=g.x1+Math.round(o*b);l=g.y1+Math.round(m*b);f=g.x1;n=g.y1;if(e&gt;h){f=0;e=h;k.val(Math.round(e/b))}if(l&gt;p){n=0;l=p;j.val(Math.round(l/b))}d.setSelection(f,n,e,l);d.update();this.setCropSelection(c,d.getSelection())}},round:function(b){var c;b=Math.round(b);if(this.hold.sizer&gt;0.6){return b}c=b.toString().slice(-1);if(&quot;1&quot;==c){return b-1}else{if(&quot;9&quot;==c){return b+1}}return b},setRatioSelection:function(j,i,d){var f,e,b=this.intval(a(&quot;#imgedit-crop-width-&quot;+j).val()),g=this.intval(a(&quot;#imgedit-crop-height-&quot;+j).val()),c=a(&quot;#image-preview-&quot;+j).height();if
 (!this.intval(a(d).val())){a(d).val(&quot;&quot;);return}if(b&amp;&amp;g){this.iasapi.setOptions({aspectRatio:b+&quot;:&quot;+g});if(f=this.iasapi.getSelection(true)){e=Math.ceil(f.y1+((f.x2-f.x1)/(b/g)));if(e&gt;c){e=c;if(i){a(&quot;#imgedit-crop-height-&quot;+j).val(&quot;&quot;)}else{a(&quot;#imgedit-crop-width-&quot;+j).val(&quot;&quot;)}}this.iasapi.setSelection(f.x1,f.y1,f.x2,e);this.iasapi.update()}}}}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var imageEdit;(function(a){imageEdit={iasapi:{},hold:{},postid:&quot;&quot;,intval:function(b){return b|0},setDisabled:function(c,b){if(b){c.removeClass(&quot;disabled&quot;);a(&quot;input&quot;,c).removeAttr(&quot;disabled&quot;)}else{c.addClass(&quot;disabled&quot;);a(&quot;input&quot;,c).prop(&quot;disabled&quot;,true)}},init:function(g,e){var d=this,c=a(&quot;#image-editor-&quot;+d.postid),b=d.intval(a(&quot;#imgedit-x-&quot;+g).val()),f=d.intval(a(&quot;#imgedit-y-&quot;+g).val());if(d.postid!=g&amp;&amp;c.length){d.close(d.postid)}d.hold.w=d.hold.ow=b;d.hold.h=d.hold.oh=f;d.hold.xy_ratio=b/f;d.hold.sizer=parseFloat(a(&quot;#imgedit-sizer-&quot;+g).val());d.postid=g;a(&quot;#imgedit-response-&quot;+g).empty();a('input[type=&quot;text&quot;]',&quot;#imgedit-panel-&quot;+g).keypress(function(i){var h=i.keyCode;if(36&lt;h&amp;&amp;h&lt;41){a(this).blur()}if(13==h){i.preventDefault();i.stopPropagation();return false}})},toggleEditor:function(d,b){var c=a(&quot;#
 imgedit-wait-&quot;+d);if(b){c.height(a(&quot;#imgedit-panel-&quot;+d).height()).fadeIn(&quot;fast&quot;)}else{c.fadeOut(&quot;fast&quot;)}},toggleHelp:function(b){a(b).siblings(&quot;.imgedit-help&quot;).slideToggle(&quot;fast&quot;);return false},getTarget:function(b){return a('input[name=&quot;imgedit-target-'+b+'&quot;]:checked',&quot;#imgedit-save-target-&quot;+b).val()||&quot;full&quot;},scaleChanged:function(i,b){var d=a(&quot;#imgedit-scale-width-&quot;+i),f=a(&quot;#imgedit-scale-height-&quot;+i),g=a(&quot;#imgedit-scale-warn-&quot;+i),c=&quot;&quot;,e=&quot;&quot;;if(b){e=(d.val()!=&quot;&quot;)?this.intval(d.val()/this.hold.xy_ratio):&quot;&quot;;f.val(e)}else{c=(f.val()!=&quot;&quot;)?this.intval(f.val()*this.hold.xy_ratio):&quot;&quot;;d.val(c)}if((e&amp;&amp;e&gt;this.hold.oh)||(c&amp;&amp;c&gt;this.hold.ow)){g.css(&quot;visibility&quot;,&quot;visible&quot;)}else{g.css(&quot;visibility&quot;,&quot;hidden&quot;)}},getSelRatio:function(f){var b=this.hold.w,e=this
 .hold.h,d=this.intval(a(&quot;#imgedit-crop-width-&quot;+f).val()),c=this.intval(a(&quot;#imgedit-crop-height-&quot;+f).val());if(d&amp;&amp;c){return d+&quot;:&quot;+c}if(b&amp;&amp;e){return b+&quot;:&quot;+e}return&quot;1:1&quot;},filterHistory:function(j,f){var d=a(&quot;#imgedit-history-&quot;+j).val(),b,h,e,c,g=[];if(d!=&quot;&quot;){d=JSON.parse(d);b=this.intval(a(&quot;#imgedit-undone-&quot;+j).val());if(b&gt;0){while(b&gt;0){d.pop();b--}}if(f){if(!d.length){this.hold.w=this.hold.ow;this.hold.h=this.hold.oh;return&quot;&quot;}e=d[d.length-1];e=e.c||e.r||e.f||false;if(e){this.hold.w=e.fw;this.hold.h=e.fh}}for(h in d){c=d[h];if(c.hasOwnProperty(&quot;c&quot;)){g[h]={c:{x:c.c.x,y:c.c.y,w:c.c.w,h:c.c.h}}}else{if(c.hasOwnProperty(&quot;r&quot;)){g[h]={r:c.r.r}}else{if(c.hasOwnProperty(&quot;f&quot;)){g[h]={f:c.f.f}}}}}return JSON.stringify(g)}return&quot;&quot;},refreshEditor:function(g,d,f){var c=this,e,b;c.toggleEditor(g,1);e={action:&quot;imgedit-preview&quot;,_ajax_no
 nce:d,postid:g,history:c.filterHistory(g,1),rand:c.intval(Math.random()*1000000)};b=a('&lt;img id=&quot;image-preview-'+g+'&quot; /&gt;');b.load(function(){var i,h,k=a(&quot;#imgedit-crop-&quot;+g),j=imageEdit;k.empty().append(b);i=Math.max(j.hold.w,j.hold.h);h=Math.max(a(b).width(),a(b).height());j.hold.sizer=i&gt;h?h/i:1;j.initCrop(g,b,k);j.setCropSelection(g,0);if((typeof f!=&quot;unknown&quot;)&amp;&amp;f!=null){f()}if(a(&quot;#imgedit-history-&quot;+g).val()&amp;&amp;a(&quot;#imgedit-undone-&quot;+g).val()==0){a(&quot;input.imgedit-submit-btn&quot;,&quot;#imgedit-panel-&quot;+g).removeAttr(&quot;disabled&quot;)}else{a(&quot;input.imgedit-submit-btn&quot;,&quot;#imgedit-panel-&quot;+g).prop(&quot;disabled&quot;,true)}j.toggleEditor(g,0)}).attr(&quot;src&quot;,ajaxurl+&quot;?&quot;+a.param(e))},action:function(b,g,c){var j=this,e,i,f,d,k;if(j.notsaved(b)){return false}e={action:&quot;image-editor&quot;,_ajax_nonce:g,postid:b};if(&quot;scale&quot;==c){i=a(&quot;#imgedit-sc
 ale-width-&quot;+b),f=a(&quot;#imgedit-scale-height-&quot;+b),d=j.intval(i.val()),k=j.intval(f.val());if(d&lt;1){i.focus();return false}else{if(k&lt;1){f.focus();return false}}if(d==j.hold.ow||k==j.hold.oh){return false}e[&quot;do&quot;]=&quot;scale&quot;;e.fwidth=d;e.fheight=k}else{if(&quot;restore&quot;==c){e[&quot;do&quot;]=&quot;restore&quot;}else{return false}}j.toggleEditor(b,1);a.post(ajaxurl,e,function(h){a(&quot;#image-editor-&quot;+b).empty().append(h);j.toggleEditor(b,0)})},save:function(f,b){var c,e=this.getTarget(f),d=this.filterHistory(f,0);if(&quot;&quot;==d){return false}this.toggleEditor(f,1);c={action:&quot;image-editor&quot;,_ajax_nonce:b,postid:f,history:d,target:e,&quot;do&quot;:&quot;save&quot;};a.post(ajaxurl,c,function(h){var g=JSON.parse(h);if(g.error){a(&quot;#imgedit-response-&quot;+f).html('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+g.error+&quot;&lt;/p&gt;&lt;div&gt;&quot;);imageEdit.close(f);return}if(g.fw&amp;&amp;g.fh){a(&quot;#media-dims-&
 quot;+f).html(g.fw+&quot; &amp;times; &quot;+g.fh)}if(g.thumbnail){a(&quot;.thumbnail&quot;,&quot;#thumbnail-head-&quot;+f).attr(&quot;src&quot;,&quot;&quot;+g.thumbnail)}if(g.msg){a(&quot;#imgedit-response-&quot;+f).html('&lt;div class=&quot;updated&quot;&gt;&lt;p&gt;'+g.msg+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)}imageEdit.close(f)})},open:function(h,d){var f,e=a(&quot;#image-editor-&quot;+h),c=a(&quot;#media-head-&quot;+h),b=a(&quot;#imgedit-open-btn-&quot;+h),g=b.siblings(&quot;img&quot;);b.prop(&quot;disabled&quot;,true);g.css(&quot;visibility&quot;,&quot;visible&quot;);f={action:&quot;image-editor&quot;,_ajax_nonce:d,postid:h,&quot;do&quot;:&quot;open&quot;};e.load(ajaxurl,f,function(){e.fadeIn(&quot;fast&quot;);c.fadeOut(&quot;fast&quot;,function(){b.removeAttr(&quot;disabled&quot;);g.css(&quot;visibility&quot;,&quot;hidden&quot;)})})},imgLoaded:function(d){var b=a(&quot;#image-preview-&quot;+d),c=a(&quot;#imgedit-crop-&quot;+d);this.initCrop(d,b,c);this.setCropSelection(
 d,0);this.toggleEditor(d,0)},initCrop:function(g,e,c){var b=this,d=a(&quot;#imgedit-sel-width-&quot;+g),f=a(&quot;#imgedit-sel-height-&quot;+g);b.iasapi=a(e).imgAreaSelect({parent:c,instance:true,handles:true,keys:true,minWidth:3,minHeight:3,onInit:function(h,i){c.children().mousedown(function(m){var k=false,l,j;if(m.shiftKey){l=b.iasapi.getSelection();j=b.getSelRatio(g);k=(l&amp;&amp;l.width&amp;&amp;l.height)?l.width+&quot;:&quot;+l.height:j}b.iasapi.setOptions({aspectRatio:k})})},onSelectStart:function(h,i){imageEdit.setDisabled(a(&quot;#imgedit-crop-sel-&quot;+g),1)},onSelectEnd:function(h,i){imageEdit.setCropSelection(g,i)},onSelectChange:function(h,j){var i=imageEdit.hold.sizer;d.val(imageEdit.round(j.width/i));f.val(imageEdit.round(j.height/i))}})},setCropSelection:function(g,f){var e,b=a(&quot;#imgedit-minthumb-&quot;+g).val()||&quot;128:128&quot;,d=this.hold.sizer;b=b.split(&quot;:&quot;);f=f||0;if(!f||(f.width&lt;3&amp;&amp;f.height&lt;3)){this.setDisabled(a(&quot;
 .imgedit-crop&quot;,&quot;#imgedit-panel-&quot;+g),0);this.setDisabled(a(&quot;#imgedit-crop-sel-&quot;+g),0);a(&quot;#imgedit-sel-width-&quot;+g).val(&quot;&quot;);a(&quot;#imgedit-sel-height-&quot;+g).val(&quot;&quot;);a(&quot;#imgedit-selection-&quot;+g).val(&quot;&quot;);return false}if(f.width&lt;(b[0]*d)&amp;&amp;f.height&lt;(b[1]*d)){this.setDisabled(a(&quot;.imgedit-crop&quot;,&quot;#imgedit-panel-&quot;+g),0);a(&quot;#imgedit-selection-&quot;+g).val(&quot;&quot;);return false}e={x:f.x1,y:f.y1,w:f.width,h:f.height};this.setDisabled(a(&quot;.imgedit-crop&quot;,&quot;#imgedit-panel-&quot;+g),1);a(&quot;#imgedit-selection-&quot;+g).val(JSON.stringify(e))},close:function(c,b){b=b||false;if(b&amp;&amp;this.notsaved(c)){return false}this.iasapi={};this.hold={};a(&quot;#image-editor-&quot;+c).fadeOut(&quot;fast&quot;,function(){a(&quot;#media-head-&quot;+c).fadeIn(&quot;fast&quot;);a(this).empty()})},notsaved:function(e){var c=a(&quot;#imgedit-history-&quot;+e).val(),d=(c!=
 &quot;&quot;)?JSON.parse(c):new Array(),b=this.intval(a(&quot;#imgedit-undone-&quot;+e).val());if(b&lt;d.length){if(confirm(a(&quot;#imgedit-leaving-&quot;+e).html())){return false}return true}return false},addStep:function(i,h,d){var c=this,e=a(&quot;#imgedit-history-&quot;+h),g=(e.val()!=&quot;&quot;)?JSON.parse(e.val()):new Array(),f=a(&quot;#imgedit-undone-&quot;+h),b=c.intval(f.val());while(b&gt;0){g.pop();b--}f.val(0);g.push(i);e.val(JSON.stringify(g));c.refreshEditor(h,d,function(){c.setDisabled(a(&quot;#image-undo-&quot;+h),true);c.setDisabled(a(&quot;#image-redo-&quot;+h),false)})},rotate:function(d,e,c,b){if(a(b).hasClass(&quot;disabled&quot;)){return false}this.addStep({r:{r:d,fw:this.hold.h,fh:this.hold.w}},e,c)},flip:function(d,e,c,b){if(a(b).hasClass(&quot;disabled&quot;)){return false}this.addStep({f:{f:d,fw:this.hold.w,fh:this.hold.h}},e,c)},crop:function(g,e,c){var f=a(&quot;#imgedit-selection-&quot;+g).val(),b=this.intval(a(&quot;#imgedit-sel-width-&quot;+g
 ).val()),d=this.intval(a(&quot;#imgedit-sel-height-&quot;+g).val());if(a(c).hasClass(&quot;disabled&quot;)||f==&quot;&quot;){return false}f=JSON.parse(f);if(f.w&gt;0&amp;&amp;f.h&gt;0&amp;&amp;b&gt;0&amp;&amp;d&gt;0){f.fw=b;f.fh=d;this.addStep({c:f},g,e)}},undo:function(g,e){var d=this,c=a(&quot;#image-undo-&quot;+g),f=a(&quot;#imgedit-undone-&quot;+g),b=d.intval(f.val())+1;if(c.hasClass(&quot;disabled&quot;)){return}f.val(b);d.refreshEditor(g,e,function(){var h=a(&quot;#imgedit-history-&quot;+g),i=(h.val()!=&quot;&quot;)?JSON.parse(h.val()):new Array();d.setDisabled(a(&quot;#image-redo-&quot;+g),true);d.setDisabled(c,b&lt;i.length)})},redo:function(g,e){var d=this,c=a(&quot;#image-redo-&quot;+g),f=a(&quot;#imgedit-undone-&quot;+g),b=d.intval(f.val())-1;if(c.hasClass(&quot;disabled&quot;)){return}f.val(b);d.refreshEditor(g,e,function(){d.setDisabled(a(&quot;#image-undo-&quot;+g),true);d.setDisabled(c,b&gt;0)})},setNumSelection:function(c){var g,k=a(&quot;#imgedit-sel-width-&
 quot;+c),j=a(&quot;#imgedit-sel-height-&quot;+c),o=this.intval(k.val()),m=this.intval(j.val()),i=a(&quot;#image-preview-&quot;+c),p=i.height(),h=i.width(),b=this.hold.sizer,f,n,e,l,d=this.iasapi;if(o&lt;1){k.val(&quot;&quot;);return false}if(m&lt;1){j.val(&quot;&quot;);return false}if(o&amp;&amp;m&amp;&amp;(g=d.getSelection())){e=g.x1+Math.round(o*b);l=g.y1+Math.round(m*b);f=g.x1;n=g.y1;if(e&gt;h){f=0;e=h;k.val(Math.round(e/b))}if(l&gt;p){n=0;l=p;j.val(Math.round(l/b))}d.setSelection(f,n,e,l);d.update();this.setCropSelection(c,d.getSelection())}},round:function(b){var c;b=Math.round(b);if(this.hold.sizer&gt;0.6){return b}c=b.toString().slice(-1);if(&quot;1&quot;==c){return b-1}else{if(&quot;9&quot;==c){return b+1}}return b},setRatioSelection:function(j,i,d){var f,e,b=this.intval(a(&quot;#imgedit-crop-width-&quot;+j).val()),g=this.intval(a(&quot;#imgedit-crop-height-&quot;+j).val()),c=a(&quot;#image-preview-&quot;+j).height();if(!this.intval(a(d).val())){a(d).val(&quot;&quot;
 );return}if(b&amp;&amp;g){this.iasapi.setOptions({aspectRatio:b+&quot;:&quot;+g});if(f=this.iasapi.getSelection(true)){e=Math.ceil(f.y1+((f.x2-f.x1)/(b/g)));if(e&gt;c){e=c;if(i){a(&quot;#imgedit-crop-height-&quot;+j).val(&quot;&quot;)}else{a(&quot;#imgedit-crop-width-&quot;+j).val(&quot;&quot;)}}this.iasapi.setSelection(f.x1,f.y1,f.x2,e);this.iasapi.update()}}}}})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/inline-edit-post.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -34,10 +34,10 @@
</span><span class="cx"> 
</span><span class="cx">                 $('#inline-edit .inline-edit-private input[value=&quot;private&quot;]').click( function(){
</span><span class="cx">                         var pw = $('input.inline-edit-password-input');
</span><del>-                        if ( $(this).attr('checked') ) {
-                                pw.val('').attr('disabled', 'disabled');
</del><ins>+                        if ( $(this).prop('checked') ) {
+                                pw.val('').prop('disabled', true);
</ins><span class="cx">                         } else {
</span><del>-                                pw.attr('disabled', '');
</del><ins>+                                pw.prop('disabled', false);
</ins><span class="cx">                         }
</span><span class="cx">                 });
</span><span class="cx"> 
</span><span class="lines">@@ -94,7 +94,7 @@
</span><span class="cx">                 $('#bulk-edit').addClass('inline-editor').show();
</span><span class="cx"> 
</span><span class="cx">                 $('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(i){
</span><del>-                        if ( $(this).attr('checked') ) {
</del><ins>+                        if ( $(this).prop('checked') ) {
</ins><span class="cx">                                 c = false;
</span><span class="cx">                                 var id = $(this).val(), theTitle;
</span><span class="cx">                                 theTitle = $('#inline_'+id+' .post_title').text() || inlineEditL10n.notitle;
</span><span class="lines">@@ -109,7 +109,7 @@
</span><span class="cx">                 $('#bulk-titles a').click(function(){
</span><span class="cx">                         var id = $(this).attr('id').substr(1);
</span><span class="cx"> 
</span><del>-                        $('table.widefat input[value=&quot;' + id + '&quot;]').attr('checked', '');
</del><ins>+                        $('table.widefat input[value=&quot;' + id + '&quot;]').prop('checked', false);
</ins><span class="cx">                         $('#ttle'+id).remove();
</span><span class="cx">                 });
</span><span class="cx"> 
</span><span class="lines">@@ -155,11 +155,11 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 if ( $('.comment_status', rowData).text() == 'open' )
</span><del>-                        $('input[name=&quot;comment_status&quot;]', editRow).attr(&quot;checked&quot;, &quot;checked&quot;);
</del><ins>+                        $('input[name=&quot;comment_status&quot;]', editRow).prop(&quot;checked&quot;, true);
</ins><span class="cx">                 if ( $('.ping_status', rowData).text() == 'open' )
</span><del>-                        $('input[name=&quot;ping_status&quot;]', editRow).attr(&quot;checked&quot;, &quot;checked&quot;);
</del><ins>+                        $('input[name=&quot;ping_status&quot;]', editRow).prop(&quot;checked&quot;, true);
</ins><span class="cx">                 if ( $('.sticky', rowData).text() == 'sticky' )
</span><del>-                        $('input[name=&quot;sticky&quot;]', editRow).attr(&quot;checked&quot;, &quot;checked&quot;);
</del><ins>+                        $('input[name=&quot;sticky&quot;]', editRow).prop(&quot;checked&quot;, true);
</ins><span class="cx"> 
</span><span class="cx">                 // hierarchical taxonomies
</span><span class="cx">                 $('.post_category', rowData).each(function(){
</span><span class="lines">@@ -188,8 +188,8 @@
</span><span class="cx">                         $('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]', editRow).remove();
</span><span class="cx"> 
</span><span class="cx">                 if ( 'private' == status ) {
</span><del>-                        $('input[name=&quot;keep_private&quot;]', editRow).attr(&quot;checked&quot;, &quot;checked&quot;);
-                        $('input.inline-edit-password-input').val('').attr('disabled', 'disabled');
</del><ins>+                        $('input[name=&quot;keep_private&quot;]', editRow).prop(&quot;checked&quot;, true);
+                        $('input.inline-edit-password-input').val('').prop('disabled', true);
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 // remove the current page and children from the parent dropdown
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/inline-edit-post.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(a){inlineEditPost={init:function(){var c=this,d=a(&quot;#inline-edit&quot;),b=a(&quot;#bulk-edit&quot;);c.type=a(&quot;table.widefat&quot;).hasClass(&quot;pages&quot;)?&quot;page&quot;:&quot;post&quot;;c.what=&quot;#post-&quot;;d.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});a(&quot;a.cancel&quot;,d).click(function(){return inlineEditPost.revert()});a(&quot;a.save&quot;,d).click(function(){return inlineEditPost.save(this)});a(&quot;td&quot;,d).keydown(function(f){if(f.which==13){return inlineEditPost.save(this)}});a(&quot;a.cancel&quot;,b).click(function(){return inlineEditPost.revert()});a('#inline-edit .inline-edit-private input[value=&quot;private&quot;]').click(function(){var e=a(&quot;input.inline-edit-password-input&quot;);if(a(this).attr(&quot;checked&quot;)){e.val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}else{e.attr(&quot;disabled&quo
 t;,&quot;&quot;)}});a(&quot;a.editinline&quot;).live(&quot;click&quot;,function(){inlineEditPost.edit(this);return false});a(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after(a(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend(a(&quot;#inline-edit label.inline-edit-tags&quot;).clone());a(&quot;span.catshow&quot;).click(function(){a(this).hide().next().show().parent().next().addClass(&quot;cat-hover&quot;)});a(&quot;span.cathide&quot;).click(function(){a(this).hide().prev().show().parent().next().removeClass(&quot;cat-hover&quot;)});a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',b).remove();a(&quot;#doaction, #doaction2&quot;).click(function(f){var g=a(this).attr(&quot;id&quot;).substr(2);if(a('select[name=&quot;'+g+'&quot;]').val()==&quot;edit&quot;){f.preventDefault();c.setBulk()}else{if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}}});a(&quot;#pos
 t-query-submit&quot;).click(function(f){if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},setBulk:function(){var e=&quot;&quot;,d=this.type,b,f=true;this.revert();a(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);a(&quot;table.widefat tbody&quot;).prepend(a(&quot;#bulk-edit&quot;));a(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();a('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(g){if(a(this).attr(&quot;checked&quot;)){f=false;var h=a(this).val(),c;c=a(&quot;#inline_&quot;+h+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;e+='&lt;div id=&quot;ttle'+h+'&quot;&gt;&lt;a id=&quot;_'+h+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+c+&quot;&lt;/div&gt;&quot;}});if(f){retu
 rn this.revert()}a(&quot;#bulk-titles&quot;).html(e);a(&quot;#bulk-titles a&quot;).click(function(){var c=a(this).attr(&quot;id&quot;).substr(1);a('table.widefat input[value=&quot;'+c+'&quot;]').attr(&quot;checked&quot;,&quot;&quot;);a(&quot;#ttle&quot;+c).remove()});if(&quot;post&quot;==d){b=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+b,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}},edit:function(b){var o=this,j,d,g,n,i,h,m,l,c=true,p,e;o.revert();if(typeof(b)==&quot;object&quot;){b=o.getId(b)}j=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(o.type==&quot;page&quot;){j.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}d=a(&quot;#inline-edit&quot;).clone(true);a(&q
 uot;td&quot;,d).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(o.what+b).hasClass(&quot;alternate&quot;)){a(d).addClass(&quot;alternate&quot;)}a(o.what+b).hide().after(d);g=a(&quot;#inline_&quot;+b);if(!a(':input[name=&quot;post_author&quot;] option[value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;]',d).val()){a(':input[name=&quot;post_author&quot;]',d).prepend('&lt;option value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;&gt;'+a(&quot;#&quot;+o.type+&quot;-&quot;+b+&quot; .author&quot;).text()+&quot;&lt;/option&gt;&quot;)}if(a(':input[name=&quot;post_author&quot;] option',d).length==1){a(&quot;label.inline-edit-author&quot;,d).hide()}for(var k=0;k&lt;j.length;k++){a(':input[name=&quot;'+j[k]+'&quot;]',d).val(a(&quot;.&quot;+j[k],g).text())}if(a(&quot;.comment_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;comment_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.ping_status&quot;
 ,g).text()==&quot;open&quot;){a('input[name=&quot;ping_status&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}if(a(&quot;.sticky&quot;,g).text()==&quot;sticky&quot;){a('input[name=&quot;sticky&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;)}a(&quot;.post_category&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;ul.&quot;+taxname+&quot;-checklist :checkbox&quot;,d).val(f.split(&quot;,&quot;))}});a(&quot;.tags_input&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;textarea.tax_input_&quot;+taxname,d).val(f);a(&quot;textarea.tax_input_&quot;+taxname,d).suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+taxname,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}});i=a(&quot;._status&quot;,g).text();if(&quot;future&quot;!=i){a('select[name=&quot;_status&quot;] opt
 ion[value=&quot;future&quot;]',d).remove()}if(&quot;private&quot;==i){a('input[name=&quot;keep_private&quot;]',d).attr(&quot;checked&quot;,&quot;checked&quot;);a(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}h=a('select[name=&quot;post_parent&quot;] option[value=&quot;'+b+'&quot;]',d);if(h.length&gt;0){m=h[0].className.split(&quot;-&quot;)[1];l=h;while(c){l=l.next(&quot;option&quot;);if(l.length==0){break}p=l[0].className.split(&quot;-&quot;)[1];if(p&lt;=m){c=false}else{l.remove();l=h}}h.remove()}a(d).attr(&quot;id&quot;,&quot;edit-&quot;+b).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,d).focus();return false},save:function(e){var d,b,c=a(&quot;.post_status_page&quot;).val()||&quot;&quot;;if(typeof(e)==&quot;object&quot;){e=this.getId(e)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();d={action:&quot;inline-save&quot;,post_type:typenow,post_ID:e,edit_date:&quot;true&quot;,pos
 t_status:c};b=a(&quot;#edit-&quot;+e+&quot; :input&quot;).serialize();d=b+&quot;&amp;&quot;+a.param(d);a.post(&quot;admin-ajax.php&quot;,d,function(f){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(f){if(-1!=f.indexOf(&quot;&lt;tr&quot;)){a(inlineEditPost.what+e).remove();a(&quot;#edit-&quot;+e).before(f).remove();a(inlineEditPost.what+e).hide().fadeIn()}else{f=f.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);a(&quot;#edit-&quot;+e+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+f+&quot;&lt;/span&gt;&quot;)}}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+inlineEditL10n.error+&quot;&lt;/span&gt;&quot;)}},&quot;html&quot;);return false},revert:function(){var b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;);if(b){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==b){a(&quot;table.widefat #bulk-edit&quot;).removeCl
 ass(&quot;inline-editor&quot;).hide();a(&quot;#bulk-titles&quot;).html(&quot;&quot;);a(&quot;#inlineedit&quot;).append(a(&quot;#bulk-edit&quot;))}else{a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditPost.init()})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){inlineEditPost={init:function(){var c=this,d=a(&quot;#inline-edit&quot;),b=a(&quot;#bulk-edit&quot;);c.type=a(&quot;table.widefat&quot;).hasClass(&quot;pages&quot;)?&quot;page&quot;:&quot;post&quot;;c.what=&quot;#post-&quot;;d.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});b.keyup(function(f){if(f.which==27){return inlineEditPost.revert()}});a(&quot;a.cancel&quot;,d).click(function(){return inlineEditPost.revert()});a(&quot;a.save&quot;,d).click(function(){return inlineEditPost.save(this)});a(&quot;td&quot;,d).keydown(function(f){if(f.which==13){return inlineEditPost.save(this)}});a(&quot;a.cancel&quot;,b).click(function(){return inlineEditPost.revert()});a('#inline-edit .inline-edit-private input[value=&quot;private&quot;]').click(function(){var e=a(&quot;input.inline-edit-password-input&quot;);if(a(this).prop(&quot;checked&quot;)){e.val(&quot;&quot;).prop(&quot;disabled&quot;,true)}else{e.prop(&quot;disabled&quot;,false)}});a(&
 quot;a.editinline&quot;).live(&quot;click&quot;,function(){inlineEditPost.edit(this);return false});a(&quot;#bulk-title-div&quot;).parents(&quot;fieldset&quot;).after(a(&quot;#inline-edit fieldset.inline-edit-categories&quot;).clone()).siblings(&quot;fieldset:last&quot;).prepend(a(&quot;#inline-edit label.inline-edit-tags&quot;).clone());a(&quot;span.catshow&quot;).click(function(){a(this).hide().next().show().parent().next().addClass(&quot;cat-hover&quot;)});a(&quot;span.cathide&quot;).click(function(){a(this).hide().prev().show().parent().next().removeClass(&quot;cat-hover&quot;)});a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',b).remove();a(&quot;#doaction, #doaction2&quot;).click(function(f){var g=a(this).attr(&quot;id&quot;).substr(2);if(a('select[name=&quot;'+g+'&quot;]').val()==&quot;edit&quot;){f.preventDefault();c.setBulk()}else{if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}}});a(&quot;#post-query-submit&quot;).c
 lick(function(f){if(a(&quot;form#posts-filter tr.inline-editor&quot;).length&gt;0){c.revert()}})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css(&quot;display&quot;)==&quot;none&quot;?b.revert():b.edit(c)},setBulk:function(){var e=&quot;&quot;,d=this.type,b,f=true;this.revert();a(&quot;#bulk-edit td&quot;).attr(&quot;colspan&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);a(&quot;table.widefat tbody&quot;).prepend(a(&quot;#bulk-edit&quot;));a(&quot;#bulk-edit&quot;).addClass(&quot;inline-editor&quot;).show();a('tbody th.check-column input[type=&quot;checkbox&quot;]').each(function(g){if(a(this).prop(&quot;checked&quot;)){f=false;var h=a(this).val(),c;c=a(&quot;#inline_&quot;+h+&quot; .post_title&quot;).text()||inlineEditL10n.notitle;e+='&lt;div id=&quot;ttle'+h+'&quot;&gt;&lt;a id=&quot;_'+h+'&quot; class=&quot;ntdelbutton&quot; title=&quot;'+inlineEditL10n.ntdeltitle+'&quot;&gt;X&lt;/a&gt;'+c+&quot;&lt;/div&gt;&quot;}});if(f){return this.revert()}a(&quo
 t;#bulk-titles&quot;).html(e);a(&quot;#bulk-titles a&quot;).click(function(){var c=a(this).attr(&quot;id&quot;).substr(1);a('table.widefat input[value=&quot;'+c+'&quot;]').prop(&quot;checked&quot;,false);a(&quot;#ttle&quot;+c).remove()});if(&quot;post&quot;==d){b=&quot;post_tag&quot;;a('tr.inline-editor textarea[name=&quot;tags_input&quot;]').suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+b,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}},edit:function(b){var o=this,j,d,g,n,i,h,m,l,c=true,p,e;o.revert();if(typeof(b)==&quot;object&quot;){b=o.getId(b)}j=[&quot;post_title&quot;,&quot;post_name&quot;,&quot;post_author&quot;,&quot;_status&quot;,&quot;jj&quot;,&quot;mm&quot;,&quot;aa&quot;,&quot;hh&quot;,&quot;mn&quot;,&quot;ss&quot;,&quot;post_password&quot;];if(o.type==&quot;page&quot;){j.push(&quot;post_parent&quot;,&quot;menu_order&quot;,&quot;page_template&quot;)}d=a(&quot;#inline-edit&quot;).clone(true);a(&quot;td&quot;,d).attr(&quot;col
 span&quot;,a(&quot;.widefat:first thead th:visible&quot;).length);if(a(o.what+b).hasClass(&quot;alternate&quot;)){a(d).addClass(&quot;alternate&quot;)}a(o.what+b).hide().after(d);g=a(&quot;#inline_&quot;+b);if(!a(':input[name=&quot;post_author&quot;] option[value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;]',d).val()){a(':input[name=&quot;post_author&quot;]',d).prepend('&lt;option value=&quot;'+a(&quot;.post_author&quot;,g).text()+'&quot;&gt;'+a(&quot;#&quot;+o.type+&quot;-&quot;+b+&quot; .author&quot;).text()+&quot;&lt;/option&gt;&quot;)}if(a(':input[name=&quot;post_author&quot;] option',d).length==1){a(&quot;label.inline-edit-author&quot;,d).hide()}for(var k=0;k&lt;j.length;k++){a(':input[name=&quot;'+j[k]+'&quot;]',d).val(a(&quot;.&quot;+j[k],g).text())}if(a(&quot;.comment_status&quot;,g).text()==&quot;open&quot;){a('input[name=&quot;comment_status&quot;]',d).prop(&quot;checked&quot;,true)}if(a(&quot;.ping_status&quot;,g).text()==&quot;open&quot;){a('input[name=&
 quot;ping_status&quot;]',d).prop(&quot;checked&quot;,true)}if(a(&quot;.sticky&quot;,g).text()==&quot;sticky&quot;){a('input[name=&quot;sticky&quot;]',d).prop(&quot;checked&quot;,true)}a(&quot;.post_category&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;ul.&quot;+taxname+&quot;-checklist :checkbox&quot;,d).val(f.split(&quot;,&quot;))}});a(&quot;.tags_input&quot;,g).each(function(){var f=a(this).text();if(f){taxname=a(this).attr(&quot;id&quot;).replace(&quot;_&quot;+b,&quot;&quot;);a(&quot;textarea.tax_input_&quot;+taxname,d).val(f);a(&quot;textarea.tax_input_&quot;+taxname,d).suggest(&quot;admin-ajax.php?action=ajax-tag-search&amp;tax=&quot;+taxname,{delay:500,minchars:2,multiple:true,multipleSep:&quot;, &quot;})}});i=a(&quot;._status&quot;,g).text();if(&quot;future&quot;!=i){a('select[name=&quot;_status&quot;] option[value=&quot;future&quot;]',d).remove()}if(&quot;private&quot;==i){a('in
 put[name=&quot;keep_private&quot;]',d).prop(&quot;checked&quot;,true);a(&quot;input.inline-edit-password-input&quot;).val(&quot;&quot;).prop(&quot;disabled&quot;,true)}h=a('select[name=&quot;post_parent&quot;] option[value=&quot;'+b+'&quot;]',d);if(h.length&gt;0){m=h[0].className.split(&quot;-&quot;)[1];l=h;while(c){l=l.next(&quot;option&quot;);if(l.length==0){break}p=l[0].className.split(&quot;-&quot;)[1];if(p&lt;=m){c=false}else{l.remove();l=h}}h.remove()}a(d).attr(&quot;id&quot;,&quot;edit-&quot;+b).addClass(&quot;inline-editor&quot;).show();a(&quot;.ptitle&quot;,d).focus();return false},save:function(e){var d,b,c=a(&quot;.post_status_page&quot;).val()||&quot;&quot;;if(typeof(e)==&quot;object&quot;){e=this.getId(e)}a(&quot;table.widefat .inline-edit-save .waiting&quot;).show();d={action:&quot;inline-save&quot;,post_type:typenow,post_ID:e,edit_date:&quot;true&quot;,post_status:c};b=a(&quot;#edit-&quot;+e+&quot; :input&quot;).serialize();d=b+&quot;&amp;&quot;+a.param(d);a.p
 ost(&quot;admin-ajax.php&quot;,d,function(f){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(f){if(-1!=f.indexOf(&quot;&lt;tr&quot;)){a(inlineEditPost.what+e).remove();a(&quot;#edit-&quot;+e).before(f).remove();a(inlineEditPost.what+e).hide().fadeIn()}else{f=f.replace(/&lt;.[^&lt;&gt;]*?&gt;/g,&quot;&quot;);a(&quot;#edit-&quot;+e+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+f+&quot;&lt;/span&gt;&quot;)}}else{a(&quot;#edit-&quot;+e+&quot; .inline-edit-save&quot;).append('&lt;span class=&quot;error&quot;&gt;'+inlineEditL10n.error+&quot;&lt;/span&gt;&quot;)}},&quot;html&quot;);return false},revert:function(){var b=a(&quot;table.widefat tr.inline-editor&quot;).attr(&quot;id&quot;);if(b){a(&quot;table.widefat .inline-edit-save .waiting&quot;).hide();if(&quot;bulk-edit&quot;==b){a(&quot;table.widefat #bulk-edit&quot;).removeClass(&quot;inline-editor&quot;).hide();a(&quot;#bulk-titles&quot;).html(&quot;&quot;);a(&quot;#inlineedit&q
 uot;).append(a(&quot;#bulk-edit&quot;))}else{a(&quot;#&quot;+b).remove();b=b.substr(b.lastIndexOf(&quot;-&quot;)+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest(&quot;tr&quot;).attr(&quot;id&quot;),b=d.split(&quot;-&quot;);return b[b.length-1]}};a(document).ready(function(){inlineEditPost.init()})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjslinkdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/link.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/link.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/link.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx">                         return;
</span><span class="cx">                 noSyncChecks = true;
</span><span class="cx">                 var th = $(this), c = th.is(':checked'), id = th.val().toString();
</span><del>-                $('#in-link-category-' + id + ', #in-popular-category-' + id).attr( 'checked', c );
</del><ins>+                $('#in-link-category-' + id + ', #in-popular-category-' + id).prop( 'checked', c );
</ins><span class="cx">                 noSyncChecks = false;
</span><span class="cx">         };
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjslinkjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/link.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/link.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/link.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(c){var b,a=false,d,e;c(&quot;#link_name&quot;).focus();postboxes.add_postbox_toggles(&quot;link&quot;);c(&quot;#category-tabs a&quot;).click(function(){var f=c(this).attr(&quot;href&quot;);c(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);c(&quot;.tabs-panel&quot;).hide();c(f).show();if(&quot;#categories-all&quot;==f){deleteUserSetting(&quot;cats&quot;)}else{setUserSetting(&quot;cats&quot;,&quot;pop&quot;)}return false});if(getUserSetting(&quot;cats&quot;)){c('#category-tabs a[href=&quot;#categories-pop&quot;]').click()}b=c(&quot;#newcat&quot;).one(&quot;focus&quot;,function(){c(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});c(&quot;#category-add-submit&quot;).click(function(){b.focus()});d=function(){if(a){return}a=true;var f=c(this),h=f.is(&quot;:checked&quot;),g=f.val().toString();c(&quot;#in-link-category-&quot;+g+&quot;, #in-popular-category-&quot;+g).attr(&qu
 ot;checked&quot;,h);a=false};e=function(g,f){c(f.what+&quot; response_data&quot;,g).each(function(){var h=c(c(this).text());h.find(&quot;label&quot;).each(function(){var j=c(this),l=j.find(&quot;input&quot;).val(),m=j.find(&quot;input&quot;)[0].id,i=c.trim(j.text()),k;c(&quot;#&quot;+m).change(d);k=c('&lt;option value=&quot;'+parseInt(l,10)+'&quot;&gt;&lt;/option&gt;').text(i)})})};c(&quot;#categorychecklist&quot;).wpList({alt:&quot;&quot;,what:&quot;link-category&quot;,response:&quot;category-ajax-response&quot;,addAfter:e});c('a[href=&quot;#categories-all&quot;]').click(function(){deleteUserSetting(&quot;cats&quot;)});c('a[href=&quot;#categories-pop&quot;]').click(function(){setUserSetting(&quot;cats&quot;,&quot;pop&quot;)});if(&quot;pop&quot;==getUserSetting(&quot;cats&quot;)){c('a[href=&quot;#categories-pop&quot;]').click()}c(&quot;#category-add-toggle&quot;).click(function(){c(this).parents(&quot;div:first&quot;).toggleClass(&quot;wp-hidden-children&quot;);c('#category-
 tabs a[href=&quot;#categories-all&quot;]').click();c(&quot;#newcategory&quot;).focus();return false});c(&quot;.categorychecklist :checkbox&quot;).change(d).filter(&quot;:checked&quot;).change()});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(c){var b,a=false,d,e;c(&quot;#link_name&quot;).focus();postboxes.add_postbox_toggles(&quot;link&quot;);c(&quot;#category-tabs a&quot;).click(function(){var f=c(this).attr(&quot;href&quot;);c(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);c(&quot;.tabs-panel&quot;).hide();c(f).show();if(&quot;#categories-all&quot;==f){deleteUserSetting(&quot;cats&quot;)}else{setUserSetting(&quot;cats&quot;,&quot;pop&quot;)}return false});if(getUserSetting(&quot;cats&quot;)){c('#category-tabs a[href=&quot;#categories-pop&quot;]').click()}b=c(&quot;#newcat&quot;).one(&quot;focus&quot;,function(){c(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});c(&quot;#category-add-submit&quot;).click(function(){b.focus()});d=function(){if(a){return}a=true;var f=c(this),h=f.is(&quot;:checked&quot;),g=f.val().toString();c(&quot;#in-link-category-&quot;+g+&quot;, #in-popular-category-&quot;+g).prop(&qu
 ot;checked&quot;,h);a=false};e=function(g,f){c(f.what+&quot; response_data&quot;,g).each(function(){var h=c(c(this).text());h.find(&quot;label&quot;).each(function(){var j=c(this),l=j.find(&quot;input&quot;).val(),m=j.find(&quot;input&quot;)[0].id,i=c.trim(j.text()),k;c(&quot;#&quot;+m).change(d);k=c('&lt;option value=&quot;'+parseInt(l,10)+'&quot;&gt;&lt;/option&gt;').text(i)})})};c(&quot;#categorychecklist&quot;).wpList({alt:&quot;&quot;,what:&quot;link-category&quot;,response:&quot;category-ajax-response&quot;,addAfter:e});c('a[href=&quot;#categories-all&quot;]').click(function(){deleteUserSetting(&quot;cats&quot;)});c('a[href=&quot;#categories-pop&quot;]').click(function(){setUserSetting(&quot;cats&quot;,&quot;pop&quot;)});if(&quot;pop&quot;==getUserSetting(&quot;cats&quot;)){c('a[href=&quot;#categories-pop&quot;]').click()}c(&quot;#category-add-toggle&quot;).click(function(){c(this).parents(&quot;div:first&quot;).toggleClass(&quot;wp-hidden-children&quot;);c('#category-
 tabs a[href=&quot;#categories-all&quot;]').click();c(&quot;#newcategory&quot;).focus();return false});c(&quot;.categorychecklist :checkbox&quot;).change(d).filter(&quot;:checked&quot;).change()});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjslisttabledevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/list-table.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/list-table.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/list-table.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -144,7 +144,7 @@
</span><span class="cx">                         tablenav.find('.first-page, .prev-page').toggleClass('disabled', 1 == $.query.GET('paged'));
</span><span class="cx">                         tablenav.find('.next-page, .last-page').toggleClass('disabled', response.total_pages == $.query.GET('paged'));
</span><span class="cx"> 
</span><del>-                        $('th.column-cb :input').attr('checked', false);
</del><ins>+                        $('th.column-cb :input').prop('checked', false);
</ins><span class="cx"> 
</span><span class="cx">                         if ( history.replaceState ) {
</span><span class="cx">                                 history.replaceState({}, '', location.pathname + $.query);
</span></span></pre></div>
<a id="trunkwpadminjslisttablejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/list-table.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/list-table.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/list-table.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(a){window.listTable={init:function(){this.loading=false;this.reset(&quot;.tablenav, .search-box, .wp-list-table&quot;);if(&quot;&quot;==a.query.GET(&quot;paged&quot;)){a.query.SET(&quot;paged&quot;,1)}this.set_total_pages();this.$tbody=a(&quot;#the-list, #the-comment-list&quot;)},reset:function(d){d=a(d);a(&quot;input&quot;,d).each(function(){this.value=this.defaultValue;this.checked=this.defaultChecked});a(&quot;select&quot;,d).each(function(){var e=a(&quot;option&quot;,this),f=false;e.each(function(){this.selected=this.defaultSelected;f=f||this.defaultSelected});if(!this.multiple&amp;&amp;!f){e[0].selected=true}});a(&quot;textarea&quot;,d).each(function(){this.value=this.defaultValue})},set_total_pages:function(e){var d=a(&quot;.last-page&quot;).attr(&quot;href&quot;);if(d){this.total_pages=e||a.query.load(d).get(&quot;paged&quot;)}},get_total_pages:function(){return this.total_pages},htmlencode:function(d){return a(&quot;&lt;div
 /&gt;&quot;).text(d).html()},update_rows:function(e,d,h){if(this.loading){return false}var g=false,f={};a.each(e,function(i,j){if(j!=a.query.GET(i)){a.query.SET(i,j);g=true}});if(!g){return false}this.start_loading();if(d){a.query.SET(&quot;paged&quot;,1)}a.each(a.query.get(),function(i,j){if(true===j){f[i]=&quot;&quot;}else{f[i]=j}});this._callback=h;this.fetch_list(f,a.proxy(this,&quot;handle_success&quot;),a.proxy(this,&quot;handle_error&quot;));return true},fetch_list:function(e,f,d){e=a.extend(e,{action:&quot;fetch-list&quot;,list_args:list_args,_ajax_fetch_list_nonce:a(&quot;#_ajax_fetch_list_nonce&quot;).val()});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:e,success:f,error:d})},handle_success:function(d){if(&quot;object&quot;!=typeof d){this.handle_error()}else{var e=a(&quot;.tablenav-pages&quot;);this.stop_loading();a(&quot;div.updated, div.error&quot;).not(&quot;.persistent, .inline&quot;).remove();this.$tbody.html(d.rows);a(&quot;.displaying-num
 &quot;).html(d.total_items_i18n);a(&quot;.total-pages&quot;).html(d.total_pages_i18n);this.set_total_pages(d.total_pages);if(d.total_pages&gt;1){e.removeClass(&quot;one-page&quot;)}a(&quot;.current-page&quot;).val(a.query.GET(&quot;paged&quot;));e.find(&quot;.first-page, .prev-page&quot;).toggleClass(&quot;disabled&quot;,1==a.query.GET(&quot;paged&quot;));e.find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,d.total_pages==a.query.GET(&quot;paged&quot;));a(&quot;th.column-cb :input&quot;).attr(&quot;checked&quot;,false);if(history.replaceState){history.replaceState({},&quot;&quot;,location.pathname+a.query)}if(this._callback){this._callback()}}},handle_error:function(){this.stop_loading();a(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+listTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)},start_loading:function(){this.loading=true;a(&quot;.error.ajax&quot;).remove();a(&quot;.list-ajax-loading&quot;).css(&quot;visi
 bility&quot;,&quot;visible&quot;)},stop_loading:function(){this.loading=false;a(&quot;.list-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};listTable.init();function b(e,d){if(e&lt;1){e=1}if(e&gt;listTable.get_total_pages()){e=listTable.get_total_pages()}a(listTable).trigger(&quot;beforeChangePage&quot;);listTable.update_rows({paged:e},false,function(){if(d.parents(&quot;.tablenav.bottom&quot;).length){scrollTo(0,0)}a(listTable).trigger(&quot;changePage&quot;)})}a(&quot;.tablenav-pages a&quot;).click(function(){var e=a(this),d=a.query.GET(&quot;paged&quot;);switch(e.attr(&quot;class&quot;)){case&quot;first-page&quot;:d=1;break;case&quot;prev-page&quot;:d-=1;break;case&quot;next-page&quot;:d+=1;break;case&quot;last-page&quot;:d=listTable.get_total_pages();break}b(d,e);return false});a(&quot;.current-page&quot;).keypress(function(f){if(13!=f.keyCode){return}var d=a(this);b(parseInt(d.val())||1,d);return false});a(&quot;th.sortable a, th.sorted a&quot;).cli
 ck(function(){function i(k){return a.query.load(k.find(&quot;a&quot;).attr(&quot;href&quot;)).get(&quot;order&quot;)}var f=a(this),h=f.parent(&quot;th&quot;),g=h.index(),j=a.query.load(f.attr(&quot;href&quot;)).get(&quot;orderby&quot;),e;h=h.closest(&quot;table&quot;).find(&quot;thead th:eq(&quot;+g+&quot;), tfoot th:eq(&quot;+g+&quot;)&quot;);if(j==a.query.get(&quot;orderby&quot;)){e=(&quot;asc&quot;==a.query.get(&quot;order&quot;))?&quot;desc&quot;:&quot;asc&quot;}else{e=i(h);var d=a(&quot;th.sorted&quot;);if(d.length){d.removeClass(&quot;sorted&quot;).addClass(&quot;sortable&quot;);d.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(&quot;asc&quot;==i(d)?&quot;desc&quot;:&quot;asc&quot;)}h.removeClass(&quot;sortable&quot;).addClass(&quot;sorted&quot;)}h.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(e);listTable.update_rows({orderby:j,order:e},true);return false});function c(d){if(&quot;keypress&quot;==d.type&amp;&amp;13!=d.keyCode){
 return}d.preventDefault();d.stopImmediatePropagation();var e=a(this).parent(&quot;.search-box&quot;).find(&quot;:input&quot;).serializeObject();listTable.update_rows(e,true,function(){if(a(&quot;h2.nav-tab-wrapper&quot;).length){return}if(&quot;site-users-network&quot;==pagenow||&quot;site-themes-network&quot;==pagenow){a(&quot;h4.search-text&quot;).remove();if(e.s){a(&quot;ul.subsubsub&quot;).after(a('&lt;h4 class=&quot;clear search-text&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}else{a(&quot;h2 .subtitle&quot;).remove();if(e.s){a(&quot;h2&quot;).append(a('&lt;span class=&quot;subtitle&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}})}a(&quot;.search-box :submit&quot;).click(c);a(&quot;.search-box :text&quot;).keypress(c);a(&quot;#post-query-submit&quot;).click(function(){var d={};a(this).parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){var e=a(this);d[e.a
 ttr(&quot;name&quot;)]=e.val()});listTable.update_rows(d,true);return false});a(&quot;.view-switch a&quot;).click(function(){var d=a(this);listTable.update_rows({mode:a.query.load(d.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){a(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);d.addClass(&quot;current&quot;)});return false})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(a){window.listTable={init:function(){this.loading=false;this.reset(&quot;.tablenav, .search-box, .wp-list-table&quot;);if(&quot;&quot;==a.query.GET(&quot;paged&quot;)){a.query.SET(&quot;paged&quot;,1)}this.set_total_pages();this.$tbody=a(&quot;#the-list, #the-comment-list&quot;)},reset:function(d){d=a(d);a(&quot;input&quot;,d).each(function(){this.value=this.defaultValue;this.checked=this.defaultChecked});a(&quot;select&quot;,d).each(function(){var e=a(&quot;option&quot;,this),f=false;e.each(function(){this.selected=this.defaultSelected;f=f||this.defaultSelected});if(!this.multiple&amp;&amp;!f){e[0].selected=true}});a(&quot;textarea&quot;,d).each(function(){this.value=this.defaultValue})},set_total_pages:function(e){var d=a(&quot;.last-page&quot;).attr(&quot;href&quot;);if(d){this.total_pages=e||a.query.load(d).get(&quot;paged&quot;)}},get_total_pages:function(){return this.total_pages},htmlencode:function(d){return a(&quot;&lt;div
 /&gt;&quot;).text(d).html()},update_rows:function(e,d,h){if(this.loading){return false}var g=false,f={};a.each(e,function(i,j){if(j!=a.query.GET(i)){a.query.SET(i,j);g=true}});if(!g){return false}this.start_loading();if(d){a.query.SET(&quot;paged&quot;,1)}a.each(a.query.get(),function(i,j){if(true===j){f[i]=&quot;&quot;}else{f[i]=j}});this._callback=h;this.fetch_list(f,a.proxy(this,&quot;handle_success&quot;),a.proxy(this,&quot;handle_error&quot;));return true},fetch_list:function(e,f,d){e=a.extend(e,{action:&quot;fetch-list&quot;,list_args:list_args,_ajax_fetch_list_nonce:a(&quot;#_ajax_fetch_list_nonce&quot;).val()});a.ajax({url:ajaxurl,global:false,dataType:&quot;json&quot;,data:e,success:f,error:d})},handle_success:function(d){if(&quot;object&quot;!=typeof d){this.handle_error()}else{var e=a(&quot;.tablenav-pages&quot;);this.stop_loading();a(&quot;div.updated, div.error&quot;).not(&quot;.persistent, .inline&quot;).remove();this.$tbody.html(d.rows);a(&quot;.displaying-num
 &quot;).html(d.total_items_i18n);a(&quot;.total-pages&quot;).html(d.total_pages_i18n);this.set_total_pages(d.total_pages);if(d.total_pages&gt;1){e.removeClass(&quot;one-page&quot;)}a(&quot;.current-page&quot;).val(a.query.GET(&quot;paged&quot;));e.find(&quot;.first-page, .prev-page&quot;).toggleClass(&quot;disabled&quot;,1==a.query.GET(&quot;paged&quot;));e.find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,d.total_pages==a.query.GET(&quot;paged&quot;));a(&quot;th.column-cb :input&quot;).prop(&quot;checked&quot;,false);if(history.replaceState){history.replaceState({},&quot;&quot;,location.pathname+a.query)}if(this._callback){this._callback()}}},handle_error:function(){this.stop_loading();a(&quot;h2&quot;).after('&lt;div class=&quot;error ajax below-h2&quot;&gt;&lt;p&gt;'+listTableL10n.error+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)},start_loading:function(){this.loading=true;a(&quot;.error.ajax&quot;).remove();a(&quot;.list-ajax-loading&quot;).css(&quot;visi
 bility&quot;,&quot;visible&quot;)},stop_loading:function(){this.loading=false;a(&quot;.list-ajax-loading&quot;).css(&quot;visibility&quot;,&quot;hidden&quot;)}};listTable.init();function b(e,d){if(e&lt;1){e=1}if(e&gt;listTable.get_total_pages()){e=listTable.get_total_pages()}a(listTable).trigger(&quot;beforeChangePage&quot;);listTable.update_rows({paged:e},false,function(){if(d.parents(&quot;.tablenav.bottom&quot;).length){scrollTo(0,0)}a(listTable).trigger(&quot;changePage&quot;)})}a(&quot;.tablenav-pages a&quot;).click(function(){var e=a(this),d=a.query.GET(&quot;paged&quot;);switch(e.attr(&quot;class&quot;)){case&quot;first-page&quot;:d=1;break;case&quot;prev-page&quot;:d-=1;break;case&quot;next-page&quot;:d+=1;break;case&quot;last-page&quot;:d=listTable.get_total_pages();break}b(d,e);return false});a(&quot;.current-page&quot;).keypress(function(f){if(13!=f.keyCode){return}var d=a(this);b(parseInt(d.val())||1,d);return false});a(&quot;th.sortable a, th.sorted a&quot;).cli
 ck(function(){function i(k){return a.query.load(k.find(&quot;a&quot;).attr(&quot;href&quot;)).get(&quot;order&quot;)}var f=a(this),h=f.parent(&quot;th&quot;),g=h.index(),j=a.query.load(f.attr(&quot;href&quot;)).get(&quot;orderby&quot;),e;h=h.closest(&quot;table&quot;).find(&quot;thead th:eq(&quot;+g+&quot;), tfoot th:eq(&quot;+g+&quot;)&quot;);if(j==a.query.get(&quot;orderby&quot;)){e=(&quot;asc&quot;==a.query.get(&quot;order&quot;))?&quot;desc&quot;:&quot;asc&quot;}else{e=i(h);var d=a(&quot;th.sorted&quot;);if(d.length){d.removeClass(&quot;sorted&quot;).addClass(&quot;sortable&quot;);d.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(&quot;asc&quot;==i(d)?&quot;desc&quot;:&quot;asc&quot;)}h.removeClass(&quot;sortable&quot;).addClass(&quot;sorted&quot;)}h.removeClass(&quot;desc&quot;).removeClass(&quot;asc&quot;).addClass(e);listTable.update_rows({orderby:j,order:e},true);return false});function c(d){if(&quot;keypress&quot;==d.type&amp;&amp;13!=d.keyCode){
 return}d.preventDefault();d.stopImmediatePropagation();var e=a(this).parent(&quot;.search-box&quot;).find(&quot;:input&quot;).serializeObject();listTable.update_rows(e,true,function(){if(a(&quot;h2.nav-tab-wrapper&quot;).length){return}if(&quot;site-users-network&quot;==pagenow||&quot;site-themes-network&quot;==pagenow){a(&quot;h4.search-text&quot;).remove();if(e.s){a(&quot;ul.subsubsub&quot;).after(a('&lt;h4 class=&quot;clear search-text&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}else{a(&quot;h2 .subtitle&quot;).remove();if(e.s){a(&quot;h2&quot;).append(a('&lt;span class=&quot;subtitle&quot;&gt;').html(listTableL10n.search.replace(&quot;%s&quot;,this.htmlencode(e.s))))}}})}a(&quot;.search-box :submit&quot;).click(c);a(&quot;.search-box :text&quot;).keypress(c);a(&quot;#post-query-submit&quot;).click(function(){var d={};a(this).parents(&quot;.actions&quot;).find('select[name!=&quot;action&quot;]').each(function(){var e=a(this);d[e.a
 ttr(&quot;name&quot;)]=e.val()});listTable.update_rows(d,true);return false});a(&quot;.view-switch a&quot;).click(function(){var d=a(this);listTable.update_rows({mode:a.query.load(d.attr(&quot;href&quot;)).get(&quot;mode&quot;)},false,function(){a(&quot;.view-switch .current&quot;).removeClass(&quot;current&quot;);d.addClass(&quot;current&quot;)});return false})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/nav-menu.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -598,7 +598,7 @@
</span><span class="cx">                                 };
</span><span class="cx">                         } else {
</span><span class="cx">                                 // Make the post boxes read-only, as they can't be used yet
</span><del>-                                $('#menu-settings-column').find('input,select').attr('disabled', 'disabled').end().find('a').attr('href', '#').unbind('click');
</del><ins>+                                $('#menu-settings-column').find('input,select').prop('disabled', true).end().find('a').attr('href', '#').unbind('click');
</ins><span class="cx">                         }
</span><span class="cx">                 },
</span><span class="cx"> 
</span><span class="lines">@@ -640,7 +640,7 @@
</span><span class="cx">                                                 if( items.length === items.filter(':checked').length )
</span><span class="cx">                                                         items.removeAttr('checked');
</span><span class="cx">                                                 else
</span><del>-                                                        items.attr('checked', 'checked');
</del><ins>+                                                        items.prop('checked', true);
</ins><span class="cx">                                                 return false;
</span><span class="cx">                                         }
</span><span class="cx">                                 } else if ( target.hasClass('submit-add-to-menu') ) {
</span></span></pre></div>
<a id="trunkwpadminjsnavmenujs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/nav-menu.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var wpNavMenu;(function(b){var a=wpNavMenu={options:{menuItemDepthPerLevel:30,globalMaxDepth:11},menuList:undefined,targetList:undefined,menusChanged:false,isRTL:!!(&quot;undefined&quot;!=typeof isRtl&amp;&amp;isRtl),negateIfRTL:(&quot;undefined&quot;!=typeof isRtl&amp;&amp;isRtl)?-1:1,init:function(){a.menuList=b(&quot;#menu-to-edit&quot;);a.targetList=a.menuList;this.jQueryExtensions();this.attachMenuEditListeners();this.setupInputWithDefaultTitle();this.attachQuickSearchListeners();this.attachThemeLocationsListeners();this.attachTabsPanelListeners();this.attachUnsavedChangesListener();if(a.menuList.length){this.initSortables()}this.initToggles();this.initTabManager()},jQueryExtensions:function(){b.fn.extend({menuItemDepth:function(){var c=a.isRTL?this.eq(0).css(&quot;margin-right&quot;):this.eq(0).css(&quot;margin-left&quot;);return a.pxToDepth(c&amp;&amp;-1!=c.indexOf(&quot;px&quot;)?c.slice(0,-2):0)},updateDepthClass:function(d,c){return this.each(function()
 {var e=b(this);c=c||e.menuItemDepth();b(this).removeClass(&quot;menu-item-depth-&quot;+c).addClass(&quot;menu-item-depth-&quot;+d)})},shiftDepthClass:function(c){return this.each(function(){var d=b(this),e=d.menuItemDepth();b(this).removeClass(&quot;menu-item-depth-&quot;+e).addClass(&quot;menu-item-depth-&quot;+(e+c))})},childMenuItems:function(){var c=b();this.each(function(){var d=b(this),f=d.menuItemDepth(),e=d.next();while(e.length&amp;&amp;e.menuItemDepth()&gt;f){c=c.add(e);e=e.next()}});return c},updateParentMenuItemDBId:function(){return this.each(function(){var e=b(this),c=e.find(&quot;.menu-item-data-parent-id&quot;),f=e.menuItemDepth(),d=e.prev();if(f==0){c.val(0)}else{while(!d[0]||!d[0].className||-1==d[0].className.indexOf(&quot;menu-item&quot;)||(d.menuItemDepth()!=f-1)){d=d.prev()}c.val(d.find(&quot;.menu-item-data-db-id&quot;).val())}})},hideAdvancedMenuItemFields:function(){return this.each(function(){var c=b(this);b(&quot;.hide-column-tog&quot;).not(&quot;:
 checked&quot;).each(function(){c.find(&quot;.field-&quot;+b(this).val()).addClass(&quot;hidden-field&quot;)})})},addSelectedToMenu:function(c){if(0==b(&quot;#menu-to-edit&quot;).length){return false}return this.each(function(){var e=b(this),d={},g=e.find(&quot;.tabs-panel-active .categorychecklist li input:checked&quot;),f=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;);c=c||a.addMenuItemToBottom;if(!g.length){return false}e.find(&quot;img.waiting&quot;).show();b(g).each(function(){var i=b(this),h=f.exec(i.attr(&quot;name&quot;)),j=&quot;undefined&quot;==typeof h[1]?0:parseInt(h[1],10);if(this.className&amp;&amp;-1!=this.className.indexOf(&quot;add-to-top&quot;)){c=a.addMenuItemToTop}d[j]=i.closest(&quot;li&quot;).getItemData(&quot;add-menu-item&quot;,j)});a.addItemToMenu(d,c,function(){g.removeAttr(&quot;checked&quot;);e.find(&quot;img.waiting&quot;).hide()})})},getItemData:function(f,g){f=f||&quot;menu-item&quot;;var d={},e,c=[&quot;menu-item-db-id&quot;,&quot;menu-item-obje
 ct-id&quot;,&quot;menu-item-object&quot;,&quot;menu-item-parent-id&quot;,&quot;menu-item-position&quot;,&quot;menu-item-type&quot;,&quot;menu-item-title&quot;,&quot;menu-item-url&quot;,&quot;menu-item-description&quot;,&quot;menu-item-attr-title&quot;,&quot;menu-item-target&quot;,&quot;menu-item-classes&quot;,&quot;menu-item-xfn&quot;];if(!g&amp;&amp;f==&quot;menu-item&quot;){g=this.find(&quot;.menu-item-data-db-id&quot;).val()}if(!g){return d}this.find(&quot;input&quot;).each(function(){var h;e=c.length;while(e--){if(f==&quot;menu-item&quot;){h=c[e]+&quot;[&quot;+g+&quot;]&quot;}else{if(f==&quot;add-menu-item&quot;){h=&quot;menu-item[&quot;+g+&quot;][&quot;+c[e]+&quot;]&quot;}}if(this.name&amp;&amp;h==this.name){d[c[e]]=this.value}}});return d},setItemData:function(c,d,e){d=d||&quot;menu-item&quot;;if(!e&amp;&amp;d==&quot;menu-item&quot;){e=b(&quot;.menu-item-data-db-id&quot;,this).val()}if(!e){return this}this.find(&quot;input&quot;).each(function(){var f=b(this),g;b.each(
 c,function(h,i){if(d==&quot;menu-item&quot;){g=h+&quot;[&quot;+e+&quot;]&quot;}else{if(d==&quot;add-menu-item&quot;){g=&quot;menu-item[&quot;+e+&quot;][&quot;+h+&quot;]&quot;}}if(g==f.attr(&quot;name&quot;)){f.val(i)}})});return this}})},initToggles:function(){postboxes.add_postbox_toggles(&quot;nav-menus&quot;);columns.useCheckboxesForHidden();columns.checked=function(c){b(&quot;.field-&quot;+c).removeClass(&quot;hidden-field&quot;)};columns.unchecked=function(c){b(&quot;.field-&quot;+c).addClass(&quot;hidden-field&quot;)};a.menuList.hideAdvancedMenuItemFields()},initSortables:function(){var p=0,e,t,d,l,o,f,c,i,s,m=a.menuList.offset().left,h=b(&quot;body&quot;),q,n=r();m+=a.isRTL?a.menuList.width():0;a.menuList.sortable({handle:&quot;.menu-item-handle&quot;,placeholder:&quot;sortable-placeholder&quot;,start:function(A,z){var u,x,w,v,y;if(a.isRTL){z.item[0].style.right=&quot;auto&quot;}s=z.item.children(&quot;.menu-item-transport&quot;);e=z.item.menuItemDepth();j(z,e);w=(z.i
 tem.next()[0]==z.placeholder[0])?z.item.next():z.item;v=w.childMenuItems();s.append(v);u=s.outerHeight();u+=(u&gt;0)?(z.placeholder.css(&quot;margin-top&quot;).slice(0,-2)*1):0;u+=z.helper.outerHeight();i=u;u-=2;z.placeholder.height(u);q=e;v.each(function(){var B=b(this).menuItemDepth();q=(B&gt;q)?B:q});x=z.helper.find(&quot;.menu-item-handle&quot;).outerWidth();x+=a.depthToPx(q-e);x-=2;z.placeholder.width(x);y=z.placeholder.next();y.css(&quot;margin-top&quot;,i+&quot;px&quot;);z.placeholder.detach();b(this).sortable(&quot;refresh&quot;);z.item.after(z.placeholder);y.css(&quot;margin-top&quot;,0);k(z)},stop:function(x,w){var v,u=p-e;v=s.children().insertAfter(w.item);if(u!=0){w.item.updateDepthClass(p);v.shiftDepthClass(u);g(u)}a.registerChange();w.item.updateParentMenuItemDBId();w.item[0].style.top=0;if(a.isRTL){w.item[0].style.left=&quot;auto&quot;;w.item[0].style.right=0}a.refreshMenuTabs(true)},change:function(v,u){if(!u.placeholder.parent().hasClass(&quot;menu&quot;)){(
 l.length)?l.after(u.placeholder):a.menuList.prepend(u.placeholder)}k(u)},sort:function(w,v){var y=v.helper.offset(),u=a.isRTL?y.left+v.helper.width():y.left,x=a.negateIfRTL*a.pxToDepth(u-m);if(x&gt;d||y.top&lt;f){x=d}else{if(x&lt;t){x=t}}if(x!=p){j(v,x)}if(c&amp;&amp;y.top+i&gt;c){o.after(v.placeholder);k(v);b(this).sortable(&quot;refreshPositions&quot;)}}});function k(u){var v;l=u.placeholder.prev();o=u.placeholder.next();if(l[0]==u.item[0]){l=l.prev()}if(o[0]==u.item[0]){o=o.next()}f=(l.length)?l.offset().top+l.height():0;c=(o.length)?o.offset().top+o.height()/3:0;t=(o.length)?o.menuItemDepth():0;if(l.length){d=((v=l.menuItemDepth()+1)&gt;a.options.globalMaxDepth)?a.options.globalMaxDepth:v}else{d=0}}function j(u,v){u.placeholder.updateDepthClass(v,p);p=v}function r(){if(!h[0].className){return 0}var u=h[0].className.match(/menu-max-depth-(\d+)/);return u&amp;&amp;u[1]?parseInt(u[1]):0}function g(u){var v,w=n;if(u===0){return}else{if(u&gt;0){v=q+u;if(v&gt;n){w=v}}else{if(u
 &lt;0&amp;&amp;q==n){while(!b(&quot;.menu-item-depth-&quot;+w,a.menuList).length&amp;&amp;w&gt;0){w--}}}}h.removeClass(&quot;menu-max-depth-&quot;+n).addClass(&quot;menu-max-depth-&quot;+w);n=w}},attachMenuEditListeners:function(){var c=this;b(&quot;#update-nav-menu&quot;).bind(&quot;click&quot;,function(d){if(d.target&amp;&amp;d.target.className){if(-1!=d.target.className.indexOf(&quot;item-edit&quot;)){return c.eventOnClickEditLink(d.target)}else{if(-1!=d.target.className.indexOf(&quot;menu-save&quot;)){return c.eventOnClickMenuSave(d.target)}else{if(-1!=d.target.className.indexOf(&quot;menu-delete&quot;)){return c.eventOnClickMenuDelete(d.target)}else{if(-1!=d.target.className.indexOf(&quot;item-delete&quot;)){return c.eventOnClickMenuItemDelete(d.target)}else{if(-1!=d.target.className.indexOf(&quot;item-cancel&quot;)){return c.eventOnClickCancelLink(d.target)}}}}}}})},setupInputWithDefaultTitle:function(){var c=&quot;input-with-default-title&quot;;b(&quot;.&quot;+c).each
 (function(){var f=b(this),e=f.attr(&quot;title&quot;),d=f.val();f.data(c,e);if(&quot;&quot;==d){f.val(e)}else{if(e==d){return}else{f.removeClass(c)}}}).focus(function(){var d=b(this);if(d.val()==d.data(c)){d.val(&quot;&quot;).removeClass(c)}}).blur(function(){var d=b(this);if(&quot;&quot;==d.val()){d.addClass(c).val(d.data(c))}})},attachThemeLocationsListeners:function(){var d=b(&quot;#nav-menu-theme-locations&quot;),c={};c.action=&quot;menu-locations-save&quot;;c[&quot;menu-settings-column-nonce&quot;]=b(&quot;#menu-settings-column-nonce&quot;).val();d.find('input[type=&quot;submit&quot;]').click(function(){d.find(&quot;select&quot;).each(function(){c[this.name]=b(this).val()});d.find(&quot;.waiting&quot;).show();b.post(ajaxurl,c,function(e){d.find(&quot;.waiting&quot;).hide()});return false})},attachQuickSearchListeners:function(){var c;b(&quot;.quick-search&quot;).keypress(function(f){var d=b(this);if(13==f.which){a.updateQuickSearchResults(d);return false}if(c){clearTime
 out(c)}c=setTimeout(function(){a.updateQuickSearchResults(d)},400)}).attr(&quot;autocomplete&quot;,&quot;off&quot;)},updateQuickSearchResults:function(d){var c,g,e=2,f=d.val();if(f.length&lt;e){return}c=d.parents(&quot;.tabs-panel&quot;);g={action:&quot;menu-quick-search&quot;,&quot;response-format&quot;:&quot;markup&quot;,menu:b(&quot;#menu&quot;).val(),&quot;menu-settings-column-nonce&quot;:b(&quot;#menu-settings-column-nonce&quot;).val(),q:f,type:d.attr(&quot;name&quot;)};b(&quot;img.waiting&quot;,c).show();b.post(ajaxurl,g,function(h){a.processQuickSearchQueryResponse(h,g,c)})},addCustomLink:function(c){var e=b(&quot;#custom-menu-item-url&quot;).val(),d=b(&quot;#custom-menu-item-name&quot;).val();c=c||a.addMenuItemToBottom;if(&quot;&quot;==e||&quot;http://&quot;==e){return false}b(&quot;.customlinkdiv img.waiting&quot;).show();this.addLinkToMenu(e,d,c,function(){b(&quot;.customlinkdiv img.waiting&quot;).hide();b(&quot;#custom-menu-item-name&quot;).val(&quot;&quot;).blur(
 );b(&quot;#custom-menu-item-url&quot;).val(&quot;http://&quot;)})},addLinkToMenu:function(e,d,c,f){c=c||a.addMenuItemToBottom;f=f||function(){};a.addItemToMenu({&quot;-1&quot;:{&quot;menu-item-type&quot;:&quot;custom&quot;,&quot;menu-item-url&quot;:e,&quot;menu-item-title&quot;:d}},c,f)},addItemToMenu:function(e,c,g){var f=b(&quot;#menu&quot;).val(),d=b(&quot;#menu-settings-column-nonce&quot;).val();c=c||function(){};g=g||function(){};params={action:&quot;add-menu-item&quot;,menu:f,&quot;menu-settings-column-nonce&quot;:d,&quot;menu-item&quot;:e};b.post(ajaxurl,params,function(h){var i=b(&quot;#menu-instructions&quot;);c(h,params);if(!i.hasClass(&quot;menu-instructions-inactive&quot;)&amp;&amp;i.siblings().length){i.addClass(&quot;menu-instructions-inactive&quot;)}g()})},addMenuItemToBottom:function(c,d){b(c).hideAdvancedMenuItemFields().appendTo(a.targetList)},addMenuItemToTop:function(c,d){b(c).hideAdvancedMenuItemFields().prependTo(a.targetList)},attachUnsavedChangesListe
 ner:function(){b(&quot;#menu-management input, #menu-management select, #menu-management, #menu-management textarea&quot;).change(function(){a.registerChange()});if(0!=b(&quot;#menu-to-edit&quot;).length){window.onbeforeunload=function(){if(a.menusChanged){return navMenuL10n.saveAlert}}}else{b(&quot;#menu-settings-column&quot;).find(&quot;input,select&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;).end().find(&quot;a&quot;).attr(&quot;href&quot;,&quot;#&quot;).unbind(&quot;click&quot;)}},registerChange:function(){a.menusChanged=true},attachTabsPanelListeners:function(){b(&quot;#menu-settings-column&quot;).bind(&quot;click&quot;,function(h){var f,d,i,c,g=b(h.target);if(g.hasClass(&quot;nav-tab-link&quot;)){d=/#(.*)$/.exec(h.target.href);if(d&amp;&amp;d[1]){d=d[1]}else{return false}i=g.parents(&quot;.inside&quot;).first();b(&quot;input&quot;,i).removeAttr(&quot;checked&quot;);b(&quot;.tabs-panel-active&quot;,i).removeClass(&quot;tabs-panel-active&quot;).addClass(&quot;t
 abs-panel-inactive&quot;);b(&quot;#&quot;+d,i).removeClass(&quot;tabs-panel-inactive&quot;).addClass(&quot;tabs-panel-active&quot;);b(&quot;.tabs&quot;,i).removeClass(&quot;tabs&quot;);g.parent().addClass(&quot;tabs&quot;);b(&quot;.quick-search&quot;,i).focus();return false}else{if(g.hasClass(&quot;select-all&quot;)){f=/#(.*)$/.exec(h.target.href);if(f&amp;&amp;f[1]){c=b(&quot;#&quot;+f[1]+&quot; .tabs-panel-active .menu-item-title input&quot;);if(c.length===c.filter(&quot;:checked&quot;).length){c.removeAttr(&quot;checked&quot;)}else{c.attr(&quot;checked&quot;,&quot;checked&quot;)}return false}}else{if(g.hasClass(&quot;submit-add-to-menu&quot;)){a.registerChange();if(h.target.id&amp;&amp;&quot;submit-customlinkdiv&quot;==h.target.id){a.addCustomLink(a.addMenuItemToBottom)}else{if(h.target.id&amp;&amp;-1!=h.target.id.indexOf(&quot;submit-&quot;)){b(&quot;#&quot;+h.target.id.replace(/submit-/,&quot;&quot;)).addSelectedToMenu(a.addMenuItemToBottom)}}return false}else{if(g.hasC
 lass(&quot;page-numbers&quot;)){b.post(ajaxurl,h.target.href.replace(/.*\?/,&quot;&quot;).replace(/action=([^&amp;]*)/,&quot;&quot;)+&quot;&amp;action=menu-get-metabox&quot;,function(m){if(-1==m.indexOf(&quot;replace-id&quot;)){return}var l=b.parseJSON(m),e=document.getElementById(l[&quot;replace-id&quot;]),k=document.createElement(&quot;div&quot;),j=document.createElement(&quot;div&quot;);if(!l.markup||!e){return}j.innerHTML=l.markup?l.markup:&quot;&quot;;e.parentNode.insertBefore(k,e);k.parentNode.removeChild(e);k.parentNode.insertBefore(j,k);k.parentNode.removeChild(k)});return false}}}}})},initTabManager:function(){var h=b(&quot;.nav-tabs-wrapper&quot;),j=h.children(&quot;.nav-tabs&quot;),g=j.children(&quot;.nav-tab-active&quot;),m=j.children(&quot;.nav-tab&quot;),e=0,o,f,l,d,k,i={},c=a.isRTL?&quot;margin-right&quot;:&quot;margin-left&quot;,p=a.isRTL?&quot;margin-left&quot;:&quot;margin-right&quot;,n=2;a.refreshMenuTabs=function(q){var t=h.width(),s=0,r={};f=h.offset().l
 eft;o=f+t;if(!q){g.makeTabVisible()}if(m.last().isTabVisible()){s=h.width()-e;s=s&gt;0?0:s;r[c]=s+&quot;px&quot;;j.animate(r,100,&quot;linear&quot;)}if(t&gt;e){l.add(d).hide()}else{l.add(d).show()}};b.fn.extend({makeTabVisible:function(){var u=this.eq(0),v,s,r={},q=0;if(!u.length){return this}v=u.offset().left;s=v+u.outerWidth();if(s&gt;o){q=o-s}else{if(v&lt;f){q=f-v}}if(!q){return this}r[c]=&quot;+=&quot;+a.negateIfRTL*q+&quot;px&quot;;j.animate(r,Math.abs(q)*n,&quot;linear&quot;);return this},isTabVisible:function(){var r=this.eq(0),s=r.offset().left,q=s+r.outerWidth();return(q&lt;=o&amp;&amp;s&gt;=f)?true:false}});m.each(function(){e+=b(this).outerWidth(true)});i.padding=0;i[p]=(-1*e)+&quot;px&quot;;j.css(i);l=b('&lt;div class=&quot;nav-tabs-arrow nav-tabs-arrow-left&quot;&gt;&lt;a&gt;&amp;laquo;&lt;/a&gt;&lt;/div&gt;');d=b('&lt;div class=&quot;nav-tabs-arrow nav-tabs-arrow-right&quot;&gt;&lt;a&gt;&amp;raquo;&lt;/a&gt;&lt;/div&gt;');h.wrap('&lt;div class=&quot;nav-tabs-na
 v&quot;/&gt;').parent().prepend(l).append(d);a.refreshMenuTabs();b(window).resize(function(){if(k){clearTimeout(k)}k=setTimeout(a.refreshMenuTabs,200)});b.each([{arrow:l,next:&quot;next&quot;,last:&quot;first&quot;,operator:&quot;+=&quot;},{arrow:d,next:&quot;prev&quot;,last:&quot;last&quot;,operator:&quot;-=&quot;}],function(){var q=this;this.arrow.mousedown(function(){var t=Math.abs(parseInt(j.css(c))),r=t,s={};if(&quot;-=&quot;==q.operator){r=Math.abs(e-h.width())-t}if(!r){return}s[c]=q.operator+r+&quot;px&quot;;j.animate(s,r*n,&quot;linear&quot;)}).mouseup(function(){var s,r;j.stop(true);s=m[q.last]();while((r=s[q.next]())&amp;&amp;r.length&amp;&amp;!r.isTabVisible()){s=r}s.makeTabVisible()})})},eventOnClickEditLink:function(d){var c,e,f=/#(.*)$/.exec(d.href);if(f&amp;&amp;f[1]){c=b(&quot;#&quot;+f[1]);e=c.parent();if(0!=e.length){if(e.hasClass(&quot;menu-item-edit-inactive&quot;)){if(!c.data(&quot;menu-item-data&quot;)){c.data(&quot;menu-item-data&quot;,c.getItemData())
 }c.slideDown(&quot;fast&quot;);e.removeClass(&quot;menu-item-edit-inactive&quot;).addClass(&quot;menu-item-edit-active&quot;)}else{c.slideUp(&quot;fast&quot;);e.removeClass(&quot;menu-item-edit-active&quot;).addClass(&quot;menu-item-edit-inactive&quot;)}return false}}},eventOnClickCancelLink:function(d){var c=b(d).closest(&quot;.menu-item-settings&quot;);c.setItemData(c.data(&quot;menu-item-data&quot;));return false},eventOnClickMenuSave:function(e){var f=&quot;&quot;,c=b(&quot;#menu-name&quot;),d=c.val();if(!d||d==c.attr(&quot;title&quot;)||!d.replace(/\s+/,&quot;&quot;)){c.parent().addClass(&quot;form-invalid&quot;);return false}b(&quot;#nav-menu-theme-locations select&quot;).each(function(){f+='&lt;input type=&quot;hidden&quot; name=&quot;'+this.name+'&quot; value=&quot;'+b(this).val()+'&quot; /&gt;'});b(&quot;#update-nav-menu&quot;).append(f);a.menuList.find(&quot;.menu-item-data-position&quot;).val(function(g){return g+1});window.onbeforeunload=null;return true},eventOn
 ClickMenuDelete:function(c){if(confirm(navMenuL10n.warnDeleteMenu)){window.onbeforeunload=null;return true}return false},eventOnClickMenuItemDelete:function(c){var d=parseInt(c.id.replace(&quot;delete-&quot;,&quot;&quot;),10);a.removeMenuItem(b(&quot;#menu-item-&quot;+d));a.registerChange();return false},processQuickSearchQueryResponse:function(g,k,c){var e,i,f={},d=document.getElementById(&quot;nav-menu-meta&quot;),j=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;,&quot;g&quot;),h=b(&quot;&lt;div&gt;&quot;).html(g).find(&quot;li&quot;),l;if(!h.length){b(&quot;.categorychecklist&quot;,c).html(&quot;&lt;li&gt;&lt;p&gt;&quot;+navMenuL10n.noResultsFound+&quot;&lt;/p&gt;&lt;/li&gt;&quot;);b(&quot;img.waiting&quot;,c).hide();return}h.each(function(){l=b(this);e=j.exec(l.html());if(e&amp;&amp;e[1]){i=e[1];while(d.elements[&quot;menu-item[&quot;+i+&quot;][menu-item-type]&quot;]||f[i]){i--}f[i]=true;if(i!=e[1]){l.html(l.html().replace(new RegExp(&quot;menu-item\\[&quot;+e[1]+&quot;\\]&
 quot;,&quot;g&quot;),&quot;menu-item[&quot;+i+&quot;]&quot;))}}});b(&quot;.categorychecklist&quot;,c).html(h);b(&quot;img.waiting&quot;,c).hide()},removeMenuItem:function(d){var c=d.childMenuItems();d.addClass(&quot;deleting&quot;).animate({opacity:0,height:0},350,function(){var e=b(&quot;#menu-instructions&quot;);d.remove();c.shiftDepthClass(-1).updateParentMenuItemDBId();if(!e.siblings().length){e.removeClass(&quot;menu-instructions-inactive&quot;)}})},depthToPx:function(c){return c*a.options.menuItemDepthPerLevel},pxToDepth:function(c){return Math.floor(c/a.options.menuItemDepthPerLevel)}};b(document).ready(function(){wpNavMenu.init()})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var wpNavMenu;(function(b){var a=wpNavMenu={options:{menuItemDepthPerLevel:30,globalMaxDepth:11},menuList:undefined,targetList:undefined,menusChanged:false,isRTL:!!(&quot;undefined&quot;!=typeof isRtl&amp;&amp;isRtl),negateIfRTL:(&quot;undefined&quot;!=typeof isRtl&amp;&amp;isRtl)?-1:1,init:function(){a.menuList=b(&quot;#menu-to-edit&quot;);a.targetList=a.menuList;this.jQueryExtensions();this.attachMenuEditListeners();this.setupInputWithDefaultTitle();this.attachQuickSearchListeners();this.attachThemeLocationsListeners();this.attachTabsPanelListeners();this.attachUnsavedChangesListener();if(a.menuList.length){this.initSortables()}this.initToggles();this.initTabManager()},jQueryExtensions:function(){b.fn.extend({menuItemDepth:function(){var c=a.isRTL?this.eq(0).css(&quot;margin-right&quot;):this.eq(0).css(&quot;margin-left&quot;);return a.pxToDepth(c&amp;&amp;-1!=c.indexOf(&quot;px&quot;)?c.slice(0,-2):0)},updateDepthClass:function(d,c){return this.each(function()
 {var e=b(this);c=c||e.menuItemDepth();b(this).removeClass(&quot;menu-item-depth-&quot;+c).addClass(&quot;menu-item-depth-&quot;+d)})},shiftDepthClass:function(c){return this.each(function(){var d=b(this),e=d.menuItemDepth();b(this).removeClass(&quot;menu-item-depth-&quot;+e).addClass(&quot;menu-item-depth-&quot;+(e+c))})},childMenuItems:function(){var c=b();this.each(function(){var d=b(this),f=d.menuItemDepth(),e=d.next();while(e.length&amp;&amp;e.menuItemDepth()&gt;f){c=c.add(e);e=e.next()}});return c},updateParentMenuItemDBId:function(){return this.each(function(){var e=b(this),c=e.find(&quot;.menu-item-data-parent-id&quot;),f=e.menuItemDepth(),d=e.prev();if(f==0){c.val(0)}else{while(!d[0]||!d[0].className||-1==d[0].className.indexOf(&quot;menu-item&quot;)||(d.menuItemDepth()!=f-1)){d=d.prev()}c.val(d.find(&quot;.menu-item-data-db-id&quot;).val())}})},hideAdvancedMenuItemFields:function(){return this.each(function(){var c=b(this);b(&quot;.hide-column-tog&quot;).not(&quot;:
 checked&quot;).each(function(){c.find(&quot;.field-&quot;+b(this).val()).addClass(&quot;hidden-field&quot;)})})},addSelectedToMenu:function(c){if(0==b(&quot;#menu-to-edit&quot;).length){return false}return this.each(function(){var e=b(this),d={},g=e.find(&quot;.tabs-panel-active .categorychecklist li input:checked&quot;),f=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;);c=c||a.addMenuItemToBottom;if(!g.length){return false}e.find(&quot;img.waiting&quot;).show();b(g).each(function(){var i=b(this),h=f.exec(i.attr(&quot;name&quot;)),j=&quot;undefined&quot;==typeof h[1]?0:parseInt(h[1],10);if(this.className&amp;&amp;-1!=this.className.indexOf(&quot;add-to-top&quot;)){c=a.addMenuItemToTop}d[j]=i.closest(&quot;li&quot;).getItemData(&quot;add-menu-item&quot;,j)});a.addItemToMenu(d,c,function(){g.removeAttr(&quot;checked&quot;);e.find(&quot;img.waiting&quot;).hide()})})},getItemData:function(f,g){f=f||&quot;menu-item&quot;;var d={},e,c=[&quot;menu-item-db-id&quot;,&quot;menu-item-obje
 ct-id&quot;,&quot;menu-item-object&quot;,&quot;menu-item-parent-id&quot;,&quot;menu-item-position&quot;,&quot;menu-item-type&quot;,&quot;menu-item-title&quot;,&quot;menu-item-url&quot;,&quot;menu-item-description&quot;,&quot;menu-item-attr-title&quot;,&quot;menu-item-target&quot;,&quot;menu-item-classes&quot;,&quot;menu-item-xfn&quot;];if(!g&amp;&amp;f==&quot;menu-item&quot;){g=this.find(&quot;.menu-item-data-db-id&quot;).val()}if(!g){return d}this.find(&quot;input&quot;).each(function(){var h;e=c.length;while(e--){if(f==&quot;menu-item&quot;){h=c[e]+&quot;[&quot;+g+&quot;]&quot;}else{if(f==&quot;add-menu-item&quot;){h=&quot;menu-item[&quot;+g+&quot;][&quot;+c[e]+&quot;]&quot;}}if(this.name&amp;&amp;h==this.name){d[c[e]]=this.value}}});return d},setItemData:function(c,d,e){d=d||&quot;menu-item&quot;;if(!e&amp;&amp;d==&quot;menu-item&quot;){e=b(&quot;.menu-item-data-db-id&quot;,this).val()}if(!e){return this}this.find(&quot;input&quot;).each(function(){var f=b(this),g;b.each(
 c,function(h,i){if(d==&quot;menu-item&quot;){g=h+&quot;[&quot;+e+&quot;]&quot;}else{if(d==&quot;add-menu-item&quot;){g=&quot;menu-item[&quot;+e+&quot;][&quot;+h+&quot;]&quot;}}if(g==f.attr(&quot;name&quot;)){f.val(i)}})});return this}})},initToggles:function(){postboxes.add_postbox_toggles(&quot;nav-menus&quot;);columns.useCheckboxesForHidden();columns.checked=function(c){b(&quot;.field-&quot;+c).removeClass(&quot;hidden-field&quot;)};columns.unchecked=function(c){b(&quot;.field-&quot;+c).addClass(&quot;hidden-field&quot;)};a.menuList.hideAdvancedMenuItemFields()},initSortables:function(){var p=0,e,t,d,l,o,f,c,i,s,m=a.menuList.offset().left,h=b(&quot;body&quot;),q,n=r();m+=a.isRTL?a.menuList.width():0;a.menuList.sortable({handle:&quot;.menu-item-handle&quot;,placeholder:&quot;sortable-placeholder&quot;,start:function(A,z){var u,x,w,v,y;if(a.isRTL){z.item[0].style.right=&quot;auto&quot;}s=z.item.children(&quot;.menu-item-transport&quot;);e=z.item.menuItemDepth();j(z,e);w=(z.i
 tem.next()[0]==z.placeholder[0])?z.item.next():z.item;v=w.childMenuItems();s.append(v);u=s.outerHeight();u+=(u&gt;0)?(z.placeholder.css(&quot;margin-top&quot;).slice(0,-2)*1):0;u+=z.helper.outerHeight();i=u;u-=2;z.placeholder.height(u);q=e;v.each(function(){var B=b(this).menuItemDepth();q=(B&gt;q)?B:q});x=z.helper.find(&quot;.menu-item-handle&quot;).outerWidth();x+=a.depthToPx(q-e);x-=2;z.placeholder.width(x);y=z.placeholder.next();y.css(&quot;margin-top&quot;,i+&quot;px&quot;);z.placeholder.detach();b(this).sortable(&quot;refresh&quot;);z.item.after(z.placeholder);y.css(&quot;margin-top&quot;,0);k(z)},stop:function(x,w){var v,u=p-e;v=s.children().insertAfter(w.item);if(u!=0){w.item.updateDepthClass(p);v.shiftDepthClass(u);g(u)}a.registerChange();w.item.updateParentMenuItemDBId();w.item[0].style.top=0;if(a.isRTL){w.item[0].style.left=&quot;auto&quot;;w.item[0].style.right=0}a.refreshMenuTabs(true)},change:function(v,u){if(!u.placeholder.parent().hasClass(&quot;menu&quot;)){(
 l.length)?l.after(u.placeholder):a.menuList.prepend(u.placeholder)}k(u)},sort:function(w,v){var y=v.helper.offset(),u=a.isRTL?y.left+v.helper.width():y.left,x=a.negateIfRTL*a.pxToDepth(u-m);if(x&gt;d||y.top&lt;f){x=d}else{if(x&lt;t){x=t}}if(x!=p){j(v,x)}if(c&amp;&amp;y.top+i&gt;c){o.after(v.placeholder);k(v);b(this).sortable(&quot;refreshPositions&quot;)}}});function k(u){var v;l=u.placeholder.prev();o=u.placeholder.next();if(l[0]==u.item[0]){l=l.prev()}if(o[0]==u.item[0]){o=o.next()}f=(l.length)?l.offset().top+l.height():0;c=(o.length)?o.offset().top+o.height()/3:0;t=(o.length)?o.menuItemDepth():0;if(l.length){d=((v=l.menuItemDepth()+1)&gt;a.options.globalMaxDepth)?a.options.globalMaxDepth:v}else{d=0}}function j(u,v){u.placeholder.updateDepthClass(v,p);p=v}function r(){if(!h[0].className){return 0}var u=h[0].className.match(/menu-max-depth-(\d+)/);return u&amp;&amp;u[1]?parseInt(u[1]):0}function g(u){var v,w=n;if(u===0){return}else{if(u&gt;0){v=q+u;if(v&gt;n){w=v}}else{if(u
 &lt;0&amp;&amp;q==n){while(!b(&quot;.menu-item-depth-&quot;+w,a.menuList).length&amp;&amp;w&gt;0){w--}}}}h.removeClass(&quot;menu-max-depth-&quot;+n).addClass(&quot;menu-max-depth-&quot;+w);n=w}},attachMenuEditListeners:function(){var c=this;b(&quot;#update-nav-menu&quot;).bind(&quot;click&quot;,function(d){if(d.target&amp;&amp;d.target.className){if(-1!=d.target.className.indexOf(&quot;item-edit&quot;)){return c.eventOnClickEditLink(d.target)}else{if(-1!=d.target.className.indexOf(&quot;menu-save&quot;)){return c.eventOnClickMenuSave(d.target)}else{if(-1!=d.target.className.indexOf(&quot;menu-delete&quot;)){return c.eventOnClickMenuDelete(d.target)}else{if(-1!=d.target.className.indexOf(&quot;item-delete&quot;)){return c.eventOnClickMenuItemDelete(d.target)}else{if(-1!=d.target.className.indexOf(&quot;item-cancel&quot;)){return c.eventOnClickCancelLink(d.target)}}}}}}})},setupInputWithDefaultTitle:function(){var c=&quot;input-with-default-title&quot;;b(&quot;.&quot;+c).each
 (function(){var f=b(this),e=f.attr(&quot;title&quot;),d=f.val();f.data(c,e);if(&quot;&quot;==d){f.val(e)}else{if(e==d){return}else{f.removeClass(c)}}}).focus(function(){var d=b(this);if(d.val()==d.data(c)){d.val(&quot;&quot;).removeClass(c)}}).blur(function(){var d=b(this);if(&quot;&quot;==d.val()){d.addClass(c).val(d.data(c))}})},attachThemeLocationsListeners:function(){var d=b(&quot;#nav-menu-theme-locations&quot;),c={};c.action=&quot;menu-locations-save&quot;;c[&quot;menu-settings-column-nonce&quot;]=b(&quot;#menu-settings-column-nonce&quot;).val();d.find('input[type=&quot;submit&quot;]').click(function(){d.find(&quot;select&quot;).each(function(){c[this.name]=b(this).val()});d.find(&quot;.waiting&quot;).show();b.post(ajaxurl,c,function(e){d.find(&quot;.waiting&quot;).hide()});return false})},attachQuickSearchListeners:function(){var c;b(&quot;.quick-search&quot;).keypress(function(f){var d=b(this);if(13==f.which){a.updateQuickSearchResults(d);return false}if(c){clearTime
 out(c)}c=setTimeout(function(){a.updateQuickSearchResults(d)},400)}).attr(&quot;autocomplete&quot;,&quot;off&quot;)},updateQuickSearchResults:function(d){var c,g,e=2,f=d.val();if(f.length&lt;e){return}c=d.parents(&quot;.tabs-panel&quot;);g={action:&quot;menu-quick-search&quot;,&quot;response-format&quot;:&quot;markup&quot;,menu:b(&quot;#menu&quot;).val(),&quot;menu-settings-column-nonce&quot;:b(&quot;#menu-settings-column-nonce&quot;).val(),q:f,type:d.attr(&quot;name&quot;)};b(&quot;img.waiting&quot;,c).show();b.post(ajaxurl,g,function(h){a.processQuickSearchQueryResponse(h,g,c)})},addCustomLink:function(c){var e=b(&quot;#custom-menu-item-url&quot;).val(),d=b(&quot;#custom-menu-item-name&quot;).val();c=c||a.addMenuItemToBottom;if(&quot;&quot;==e||&quot;http://&quot;==e){return false}b(&quot;.customlinkdiv img.waiting&quot;).show();this.addLinkToMenu(e,d,c,function(){b(&quot;.customlinkdiv img.waiting&quot;).hide();b(&quot;#custom-menu-item-name&quot;).val(&quot;&quot;).blur(
 );b(&quot;#custom-menu-item-url&quot;).val(&quot;http://&quot;)})},addLinkToMenu:function(e,d,c,f){c=c||a.addMenuItemToBottom;f=f||function(){};a.addItemToMenu({&quot;-1&quot;:{&quot;menu-item-type&quot;:&quot;custom&quot;,&quot;menu-item-url&quot;:e,&quot;menu-item-title&quot;:d}},c,f)},addItemToMenu:function(e,c,g){var f=b(&quot;#menu&quot;).val(),d=b(&quot;#menu-settings-column-nonce&quot;).val();c=c||function(){};g=g||function(){};params={action:&quot;add-menu-item&quot;,menu:f,&quot;menu-settings-column-nonce&quot;:d,&quot;menu-item&quot;:e};b.post(ajaxurl,params,function(h){var i=b(&quot;#menu-instructions&quot;);c(h,params);if(!i.hasClass(&quot;menu-instructions-inactive&quot;)&amp;&amp;i.siblings().length){i.addClass(&quot;menu-instructions-inactive&quot;)}g()})},addMenuItemToBottom:function(c,d){b(c).hideAdvancedMenuItemFields().appendTo(a.targetList)},addMenuItemToTop:function(c,d){b(c).hideAdvancedMenuItemFields().prependTo(a.targetList)},attachUnsavedChangesListe
 ner:function(){b(&quot;#menu-management input, #menu-management select, #menu-management, #menu-management textarea&quot;).change(function(){a.registerChange()});if(0!=b(&quot;#menu-to-edit&quot;).length){window.onbeforeunload=function(){if(a.menusChanged){return navMenuL10n.saveAlert}}}else{b(&quot;#menu-settings-column&quot;).find(&quot;input,select&quot;).prop(&quot;disabled&quot;,true).end().find(&quot;a&quot;).attr(&quot;href&quot;,&quot;#&quot;).unbind(&quot;click&quot;)}},registerChange:function(){a.menusChanged=true},attachTabsPanelListeners:function(){b(&quot;#menu-settings-column&quot;).bind(&quot;click&quot;,function(h){var f,d,i,c,g=b(h.target);if(g.hasClass(&quot;nav-tab-link&quot;)){d=/#(.*)$/.exec(h.target.href);if(d&amp;&amp;d[1]){d=d[1]}else{return false}i=g.parents(&quot;.inside&quot;).first();b(&quot;input&quot;,i).removeAttr(&quot;checked&quot;);b(&quot;.tabs-panel-active&quot;,i).removeClass(&quot;tabs-panel-active&quot;).addClass(&quot;tabs-panel-inacti
 ve&quot;);b(&quot;#&quot;+d,i).removeClass(&quot;tabs-panel-inactive&quot;).addClass(&quot;tabs-panel-active&quot;);b(&quot;.tabs&quot;,i).removeClass(&quot;tabs&quot;);g.parent().addClass(&quot;tabs&quot;);b(&quot;.quick-search&quot;,i).focus();return false}else{if(g.hasClass(&quot;select-all&quot;)){f=/#(.*)$/.exec(h.target.href);if(f&amp;&amp;f[1]){c=b(&quot;#&quot;+f[1]+&quot; .tabs-panel-active .menu-item-title input&quot;);if(c.length===c.filter(&quot;:checked&quot;).length){c.removeAttr(&quot;checked&quot;)}else{c.prop(&quot;checked&quot;,true)}return false}}else{if(g.hasClass(&quot;submit-add-to-menu&quot;)){a.registerChange();if(h.target.id&amp;&amp;&quot;submit-customlinkdiv&quot;==h.target.id){a.addCustomLink(a.addMenuItemToBottom)}else{if(h.target.id&amp;&amp;-1!=h.target.id.indexOf(&quot;submit-&quot;)){b(&quot;#&quot;+h.target.id.replace(/submit-/,&quot;&quot;)).addSelectedToMenu(a.addMenuItemToBottom)}}return false}else{if(g.hasClass(&quot;page-numbers&quot;))
 {b.post(ajaxurl,h.target.href.replace(/.*\?/,&quot;&quot;).replace(/action=([^&amp;]*)/,&quot;&quot;)+&quot;&amp;action=menu-get-metabox&quot;,function(m){if(-1==m.indexOf(&quot;replace-id&quot;)){return}var l=b.parseJSON(m),e=document.getElementById(l[&quot;replace-id&quot;]),k=document.createElement(&quot;div&quot;),j=document.createElement(&quot;div&quot;);if(!l.markup||!e){return}j.innerHTML=l.markup?l.markup:&quot;&quot;;e.parentNode.insertBefore(k,e);k.parentNode.removeChild(e);k.parentNode.insertBefore(j,k);k.parentNode.removeChild(k)});return false}}}}})},initTabManager:function(){var h=b(&quot;.nav-tabs-wrapper&quot;),j=h.children(&quot;.nav-tabs&quot;),g=j.children(&quot;.nav-tab-active&quot;),m=j.children(&quot;.nav-tab&quot;),e=0,o,f,l,d,k,i={},c=a.isRTL?&quot;margin-right&quot;:&quot;margin-left&quot;,p=a.isRTL?&quot;margin-left&quot;:&quot;margin-right&quot;,n=2;a.refreshMenuTabs=function(q){var t=h.width(),s=0,r={};f=h.offset().left;o=f+t;if(!q){g.makeTabVisib
 le()}if(m.last().isTabVisible()){s=h.width()-e;s=s&gt;0?0:s;r[c]=s+&quot;px&quot;;j.animate(r,100,&quot;linear&quot;)}if(t&gt;e){l.add(d).hide()}else{l.add(d).show()}};b.fn.extend({makeTabVisible:function(){var u=this.eq(0),v,s,r={},q=0;if(!u.length){return this}v=u.offset().left;s=v+u.outerWidth();if(s&gt;o){q=o-s}else{if(v&lt;f){q=f-v}}if(!q){return this}r[c]=&quot;+=&quot;+a.negateIfRTL*q+&quot;px&quot;;j.animate(r,Math.abs(q)*n,&quot;linear&quot;);return this},isTabVisible:function(){var r=this.eq(0),s=r.offset().left,q=s+r.outerWidth();return(q&lt;=o&amp;&amp;s&gt;=f)?true:false}});m.each(function(){e+=b(this).outerWidth(true)});i.padding=0;i[p]=(-1*e)+&quot;px&quot;;j.css(i);l=b('&lt;div class=&quot;nav-tabs-arrow nav-tabs-arrow-left&quot;&gt;&lt;a&gt;&amp;laquo;&lt;/a&gt;&lt;/div&gt;');d=b('&lt;div class=&quot;nav-tabs-arrow nav-tabs-arrow-right&quot;&gt;&lt;a&gt;&amp;raquo;&lt;/a&gt;&lt;/div&gt;');h.wrap('&lt;div class=&quot;nav-tabs-nav&quot;/&gt;').parent().prepend
 (l).append(d);a.refreshMenuTabs();b(window).resize(function(){if(k){clearTimeout(k)}k=setTimeout(a.refreshMenuTabs,200)});b.each([{arrow:l,next:&quot;next&quot;,last:&quot;first&quot;,operator:&quot;+=&quot;},{arrow:d,next:&quot;prev&quot;,last:&quot;last&quot;,operator:&quot;-=&quot;}],function(){var q=this;this.arrow.mousedown(function(){var t=Math.abs(parseInt(j.css(c))),r=t,s={};if(&quot;-=&quot;==q.operator){r=Math.abs(e-h.width())-t}if(!r){return}s[c]=q.operator+r+&quot;px&quot;;j.animate(s,r*n,&quot;linear&quot;)}).mouseup(function(){var s,r;j.stop(true);s=m[q.last]();while((r=s[q.next]())&amp;&amp;r.length&amp;&amp;!r.isTabVisible()){s=r}s.makeTabVisible()})})},eventOnClickEditLink:function(d){var c,e,f=/#(.*)$/.exec(d.href);if(f&amp;&amp;f[1]){c=b(&quot;#&quot;+f[1]);e=c.parent();if(0!=e.length){if(e.hasClass(&quot;menu-item-edit-inactive&quot;)){if(!c.data(&quot;menu-item-data&quot;)){c.data(&quot;menu-item-data&quot;,c.getItemData())}c.slideDown(&quot;fast&quot;);
 e.removeClass(&quot;menu-item-edit-inactive&quot;).addClass(&quot;menu-item-edit-active&quot;)}else{c.slideUp(&quot;fast&quot;);e.removeClass(&quot;menu-item-edit-active&quot;).addClass(&quot;menu-item-edit-inactive&quot;)}return false}}},eventOnClickCancelLink:function(d){var c=b(d).closest(&quot;.menu-item-settings&quot;);c.setItemData(c.data(&quot;menu-item-data&quot;));return false},eventOnClickMenuSave:function(e){var f=&quot;&quot;,c=b(&quot;#menu-name&quot;),d=c.val();if(!d||d==c.attr(&quot;title&quot;)||!d.replace(/\s+/,&quot;&quot;)){c.parent().addClass(&quot;form-invalid&quot;);return false}b(&quot;#nav-menu-theme-locations select&quot;).each(function(){f+='&lt;input type=&quot;hidden&quot; name=&quot;'+this.name+'&quot; value=&quot;'+b(this).val()+'&quot; /&gt;'});b(&quot;#update-nav-menu&quot;).append(f);a.menuList.find(&quot;.menu-item-data-position&quot;).val(function(g){return g+1});window.onbeforeunload=null;return true},eventOnClickMenuDelete:function(c){if(
 confirm(navMenuL10n.warnDeleteMenu)){window.onbeforeunload=null;return true}return false},eventOnClickMenuItemDelete:function(c){var d=parseInt(c.id.replace(&quot;delete-&quot;,&quot;&quot;),10);a.removeMenuItem(b(&quot;#menu-item-&quot;+d));a.registerChange();return false},processQuickSearchQueryResponse:function(g,k,c){var e,i,f={},d=document.getElementById(&quot;nav-menu-meta&quot;),j=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;,&quot;g&quot;),h=b(&quot;&lt;div&gt;&quot;).html(g).find(&quot;li&quot;),l;if(!h.length){b(&quot;.categorychecklist&quot;,c).html(&quot;&lt;li&gt;&lt;p&gt;&quot;+navMenuL10n.noResultsFound+&quot;&lt;/p&gt;&lt;/li&gt;&quot;);b(&quot;img.waiting&quot;,c).hide();return}h.each(function(){l=b(this);e=j.exec(l.html());if(e&amp;&amp;e[1]){i=e[1];while(d.elements[&quot;menu-item[&quot;+i+&quot;][menu-item-type]&quot;]||f[i]){i--}f[i]=true;if(i!=e[1]){l.html(l.html().replace(new RegExp(&quot;menu-item\\[&quot;+e[1]+&quot;\\]&quot;,&quot;g&quot;),&quot;menu
 -item[&quot;+i+&quot;]&quot;))}}});b(&quot;.categorychecklist&quot;,c).html(h);b(&quot;img.waiting&quot;,c).hide()},removeMenuItem:function(d){var c=d.childMenuItems();d.addClass(&quot;deleting&quot;).animate({opacity:0,height:0},350,function(){var e=b(&quot;#menu-instructions&quot;);d.remove();c.shiftDepthClass(-1).updateParentMenuItemDBId();if(!e.siblings().length){e.removeClass(&quot;menu-instructions-inactive&quot;)}})},depthToPx:function(c){return c*a.options.menuItemDepthPerLevel},pxToDepth:function(c){return Math.floor(c/a.options.menuItemDepthPerLevel)}};b(document).ready(function(){wpNavMenu.init()})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjspostdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/post.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx">                 if ( !thetags.length )
</span><span class="cx">                         return;
</span><span class="cx"> 
</span><del>-                disabled = thetags.attr('disabled');
</del><ins>+                disabled = thetags.prop('disabled');
</ins><span class="cx"> 
</span><span class="cx">                 current_tags = thetags.val().split(',');
</span><span class="cx">                 tagchecklist.empty();
</span><span class="lines">@@ -294,7 +294,7 @@
</span><span class="cx">                                 return;
</span><span class="cx">                         noSyncChecks = true;
</span><span class="cx">                         var th = jQuery(this), c = th.is(':checked'), id = th.val().toString();
</span><del>-                        $('#in-' + taxonomy + '-' + id + ', #in-' + taxonomy + '-category-' + id).attr( 'checked', c );
</del><ins>+                        $('#in-' + taxonomy + '-' + id + ', #in-' + taxonomy + '-category-' + id).prop( 'checked', c );
</ins><span class="cx">                         noSyncChecks = false;
</span><span class="cx">                 };
</span><span class="cx"> 
</span><span class="lines">@@ -331,7 +331,7 @@
</span><span class="cx">                 $('#' + taxonomy + 'checklist li.popular-category :checkbox, #' + taxonomy + 'checklist-pop :checkbox').live( 'click', function(){
</span><span class="cx">                         var t = $(this), c = t.is(':checked'), id = t.val();
</span><span class="cx">                         if ( id &amp;&amp; t.parents('#taxonomy-'+taxonomy).length )
</span><del>-                                $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).attr( 'checked', c );
</del><ins>+                                $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
</ins><span class="cx">                 });
</span><span class="cx"> 
</span><span class="cx">         }); // end cats
</span><span class="lines">@@ -355,7 +355,7 @@
</span><span class="cx">                 function updateVisibility() {
</span><span class="cx">                         var pvSelect = $('#post-visibility-select');
</span><span class="cx">                         if ( $('input:radio:checked', pvSelect).val() != 'public' ) {
</span><del>-                                $('#sticky').attr('checked', false);
</del><ins>+                                $('#sticky').prop('checked', false);
</ins><span class="cx">                                 $('#sticky-span').hide();
</span><span class="cx">                         } else {
</span><span class="cx">                                 $('#sticky-span').show();
</span><span class="lines">@@ -413,7 +413,7 @@
</span><span class="cx">                                 } else {
</span><span class="cx">                                         optPublish.html( postL10n.privatelyPublished );
</span><span class="cx">                                 }
</span><del>-                                $('option[value=&quot;publish&quot;]', postStatus).attr('selected', true);
</del><ins>+                                $('option[value=&quot;publish&quot;]', postStatus).prop('selected', true);
</ins><span class="cx">                                 $('.edit-post-status', '#misc-publishing-actions').hide();
</span><span class="cx">                         } else {
</span><span class="cx">                                 if ( $('#original_post_status').val() == 'future' || $('#original_post_status').val() == 'draft' ) {
</span><span class="lines">@@ -452,9 +452,9 @@
</span><span class="cx"> 
</span><span class="cx">                 $('.cancel-post-visibility', '#post-visibility-select').click(function () {
</span><span class="cx">                         $('#post-visibility-select').slideUp('fast');
</span><del>-                        $('#visibility-radio-' + $('#hidden-post-visibility').val()).attr('checked', true);
</del><ins>+                        $('#visibility-radio-' + $('#hidden-post-visibility').val()).prop('checked', true);
</ins><span class="cx">                         $('#post_password').val($('#hidden_post_password').val());
</span><del>-                        $('#sticky').attr('checked', $('#hidden-post-sticky').attr('checked'));
</del><ins>+                        $('#sticky').prop('checked', $('#hidden-post-sticky').prop('checked'));
</ins><span class="cx">                         $('#post-visibility-display').html(visibility);
</span><span class="cx">                         $('.edit-visibility', '#visibility').show();
</span><span class="cx">                         updateText();
</span><span class="lines">@@ -469,10 +469,10 @@
</span><span class="cx">                         updateText();
</span><span class="cx"> 
</span><span class="cx">                         if ( $('input:radio:checked', pvSelect).val() != 'public' ) {
</span><del>-                                $('#sticky').attr('checked', false);
</del><ins>+                                $('#sticky').prop('checked', false);
</ins><span class="cx">                         } // WEAPON LOCKED
</span><span class="cx"> 
</span><del>-                        if ( true == $('#sticky').attr('checked') ) {
</del><ins>+                        if ( true == $('#sticky').prop('checked') ) {
</ins><span class="cx">                                 sticky = 'Sticky';
</span><span class="cx">                         } else {
</span><span class="cx">                                 sticky = '';
</span><span class="lines">@@ -556,7 +556,7 @@
</span><span class="cx">                                 }, function(data) {
</span><span class="cx">                                         $('#edit-slug-box').html(data);
</span><span class="cx">                                         b.html(revert_b);
</span><del>-                                        real_slug.attr('value', new_slug);
</del><ins>+                                        real_slug.val(new_slug);
</ins><span class="cx">                                         makeSlugeditClickable();
</span><span class="cx">                                         $('#view-post-btn').show();
</span><span class="cx">                                 });
</span><span class="lines">@@ -567,7 +567,7 @@
</span><span class="cx">                                 $('#view-post-btn').show();
</span><span class="cx">                                 e.html(revert_e);
</span><span class="cx">                                 b.html(revert_b);
</span><del>-                                real_slug.attr('value', revert_slug);
</del><ins>+                                real_slug.val(revert_slug);
</ins><span class="cx">                                 return false;
</span><span class="cx">                         });
</span><span class="cx"> 
</span><span class="lines">@@ -588,7 +588,7 @@
</span><span class="cx">                                         b.children('.cancel').click();
</span><span class="cx">                                         return false;
</span><span class="cx">                                 }
</span><del>-                                real_slug.attr('value', this.value);
</del><ins>+                                real_slug.val(this.value);
</ins><span class="cx">                         }).focus();
</span><span class="cx">                 }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjspostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/post.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var tagBox,commentsBox,editPermalink,makeSlugeditClickable,WPSetThumbnailHTML,WPSetThumbnailID,WPRemoveThumbnail,wptitlehint;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 g=a(&quot;.the-tags&quot;,d),e=a(&quot;.tagchecklist&quot;,d),f=a(d).attr(&quot;id&quot;),b,c;if(!g.length){return}c=g.attr(&quot;disabled&quot;);b=g.val().split(&quot;,&quot;);e.empt
 y();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a(&quot;&lt;span /&gt;&quot;).text(k);if(!c){h=a('&lt;a id=&quot;'+f+&quot;-check-num-&quot;+i+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;');h.click(function(){tagBox.parseTags(this)});j.prepend(&quot;&amp;nbsp;&quot;).prepend(h)}e.append(j)})},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 fal
 se}}).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(),p:a(&quot;#post_ID&quot;).val(),start:b,number: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();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('input[value=&quot;_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(b){a.post(ajaxurl,{action:&quot;set-post-thumbnail&quot;,post_id:a(&quot;#post
 _ID&quot;).val(),thumbnail_id:-1,_ajax_nonce:b,cookie:encodeURIComponent(document.cookie)},function(c){if(c==&quot;0&quot;){alert(setPostThumbnailL10n.error)}else{WPSetThumbnailHTML(c)}})}})(jQuery);jQuery(document).ready(function(f){var b,a,g=&quot;&quot;,e=0,h=f(&quot;#content&quot;);postboxes.add_postbox_toggles(pagenow);if(f(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{f(&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}})}f(&quot;.categorydiv&quot;).each(function(){var n=f(this).attr(&quot;id&quot;),j=false,m,o,l,i,k;l=n.split(&quot;-&quot;);l.shift();i=l.join(&quot;-&quot;);k=i+&quot;_tab&quot;;if(i==&quot;category&quot;){k=&quot;cats&quot;}f(&quot;a&quot;,&quot;#&quot;+i+&quot;-tabs&quot;).click(function(){var p=f(this).attr(&quot;href&quot;);f(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).remov
 eClass(&quot;tabs&quot;);f(&quot;#&quot;+i+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();f(p).show();if(&quot;#&quot;+i+&quot;-all&quot;==p){deleteUserSetting(k)}else{setUserSetting(k,&quot;pop&quot;)}return false});if(getUserSetting(k)){f('a[href=&quot;#'+i+'-pop&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click()}f(&quot;#new&quot;+i).one(&quot;focus&quot;,function(){f(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});f(&quot;#&quot;+i+&quot;-add-submit&quot;).click(function(){f(&quot;#new&quot;+i).focus()});m=function(){if(j){return}j=true;var p=jQuery(this),r=p.is(&quot;:checked&quot;),q=p.val().toString();f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-&quot;+i+&quot;-category-&quot;+q).attr(&quot;checked&quot;,r);j=false};catAddBefore=function(p){if(!f(&quot;#new&quot;+i).val()){return false}p.data+=&quot;&amp;&quot;+f(&quot;:checked&quot;,&quot;#&quot;+i+&quot;checklist&quot;).serialize();return p};o=function(u,t){var q,p=f(&quot;#new&quo
 t;+i+&quot;_parent&quot;);if(&quot;undefined&quot;!=t.parsed.responses[0]&amp;&amp;(q=t.parsed.responses[0].supplemental.newcat_parent)){p.before(q);p.remove()}};f(&quot;#&quot;+i+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:i+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:o});f(&quot;#&quot;+i+&quot;-add-toggle&quot;).click(function(){f(&quot;#&quot;+i+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);f('a[href=&quot;#'+i+'-all&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click();f(&quot;#new&quot;+i).focus();return false});f(&quot;#&quot;+i+&quot;checklist li.popular-category :checkbox, #&quot;+i+&quot;checklist-pop :checkbox&quot;).live(&quot;click&quot;,function(){var p=f(this),r=p.is(&quot;:checked&quot;),q=p.val();if(q&amp;&amp;p.parents(&quot;#taxonomy-&quot;+i).length){f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-popular-&quot;+i+&quot;-&quot;+q).attr(&quot;checked&quot;,r)}})});if(f(&quot;#postcustom&quot;).length){f(&quot;#th
 e-list&quot;).wpList({addAfter:function(i,j){f(&quot;table#list-table&quot;).show()},addBefore:function(i){i.data+=&quot;&amp;post_id=&quot;+f(&quot;#post_ID&quot;).val();return i}})}if(f(&quot;#submitdiv&quot;).length){b=f(&quot;#timestamp&quot;).html();a=f(&quot;#post-visibility-display&quot;).html();function d(){var i=f(&quot;#post-visibility-select&quot;);if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).attr(&quot;checked&quot;,false);f(&quot;#sticky-span&quot;).hide()}else{f(&quot;#sticky-span&quot;).show()}if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;password&quot;){f(&quot;#password-span&quot;).hide()}else{f(&quot;#password-span&quot;).show()}}function c(){var p,q,j,s,r=f(&quot;#post_status&quot;),k=f('option[value=&quot;publish&quot;]',r),i=f(&quot;#aa&quot;).val(),n=f(&quot;#mm&quot;).val(),o=f(&quot;#jj&quot;).val(),m=f(&quot;#hh&quot;).val(),l=f(&quot;#mn&quot;).val();p=new Date(i,n-1,o,m,l);q=new Date(f(&quot;#hidd
 en_aa&quot;).val(),f(&quot;#hidden_mm&quot;).val()-1,f(&quot;#hidden_jj&quot;).val(),f(&quot;#hidden_hh&quot;).val(),f(&quot;#hidden_mn&quot;).val());j=new Date(f(&quot;#cur_aa&quot;).val(),f(&quot;#cur_mm&quot;).val()-1,f(&quot;#cur_jj&quot;).val(),f(&quot;#cur_hh&quot;).val(),f(&quot;#cur_mn&quot;).val());if(p.getFullYear()!=i||(1+p.getMonth())!=n||p.getDate()!=o||p.getMinutes()!=l){f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(p&gt;j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){s=postL10n.publishOnFuture;f(&quot;#publish&quot;).val(postL10n.schedule)}else{if(p&lt;=j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){s=postL10n.publishOn;f(&quot;#publish&quot;).val(postL10n.publish)}else{s=postL10n.publishOnPast;f(&quot;#publish&quot;).val(postL10n.update)}}if(q.t
 oUTCString()==p.toUTCString()){f(&quot;#timestamp&quot;).html(b)}else{f(&quot;#timestamp&quot;).html(s+&quot; &lt;b&gt;&quot;+f('option[value=&quot;'+f(&quot;#mm&quot;).val()+'&quot;]',&quot;#mm&quot;).text()+&quot; &quot;+o+&quot;, &quot;+i+&quot; @ &quot;+m+&quot;:&quot;+l+&quot;&lt;/b&gt; &quot;)}if(f(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){f(&quot;#publish&quot;).val(postL10n.update);if(k.length==0){r.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{k.html(postL10n.privatelyPublished)}f('option[value=&quot;publish&quot;]',r).attr(&quot;selected&quot;,true);f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(f(&quot;#original_post_status&quot;).val()==&quot;future&quot;||f(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(k.length){k.remove();r.val(f(&quot;#hidden_post_status&quot;).val())}}else{k.html(postL
 10n.published)}if(r.is(&quot;:hidden&quot;)){f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}f(&quot;#post-status-display&quot;).html(f(&quot;option:selected&quot;,r).text());if(f(&quot;option:selected&quot;,r).val()==&quot;private&quot;||f(&quot;option:selected&quot;,r).val()==&quot;publish&quot;){f(&quot;#save-post&quot;).hide()}else{f(&quot;#save-post&quot;).show();if(f(&quot;option:selected&quot;,r).val()==&quot;pending&quot;){f(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{f(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(f(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){d();f(&quot;#post-visibility-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){f(&quot;#post-visibility-select&quot;).slideUp(&quot;fast
 &quot;);f(&quot;#visibility-radio-&quot;+f(&quot;#hidden-post-visibility&quot;).val()).attr(&quot;checked&quot;,true);f(&quot;#post_password&quot;).val(f(&quot;#hidden_post_password&quot;).val());f(&quot;#sticky&quot;).attr(&quot;checked&quot;,f(&quot;#hidden-post-sticky&quot;).attr(&quot;checked&quot;));f(&quot;#post-visibility-display&quot;).html(a);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});f(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var i=f(&quot;#post-visibility-select&quot;);i.slideUp(&quot;fast&quot;);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).attr(&quot;checked&quot;,false)}if(true==f(&quot;#sticky&quot;).attr(&quot;checked&quot;)){g=&quot;Sticky&quot;}else{g=&quot;&quot;}f(&quot;#post-visibility-display&quot;).html(postL10n[f(&quot;input:radio:checked&quot;,i).val()+g]);
 return false});f(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){d()});f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(f(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){f(&quot;#timestampdiv&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&quot;fast&quot;);f(&quot;#mm&quot;).val(f(&quot;#hidden_mm&quot;).val());f(&quot;#jj&quot;).val(f(&quot;#hidden_jj&quot;).val());f(&quot;#aa&quot;).val(f(&quot;#hidden_aa&quot;).val());f(&quot;#hh&quot;).val(f(&quot;#hidden_hh&quot;).val());f(&quot;#mn&quot;).val(f(&quot;#hidden_mn&quot;).val());f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(c()){f(&quot;#timestampdiv&quot;).slideUp(&quot;fast&quot;);f(&quot;#timesta
 mpdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show()}return false});f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if(f(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){f(&quot;#post-status-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});f(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post_status&quot;).val(f(&quot;#hidden_post_status&quot;).val());f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(f(&quot;#edit-slug-box&quot;).length){editPermalink=function(j){var k,n=0,m=f(&quot;#editable-pos
 t-name&quot;),o=m.html(),r=f(&quot;#post_name&quot;),s=r.val(),p=f(&quot;#edit-slug-buttons&quot;),q=p.html(),l=f(&quot;#editable-post-name-full&quot;).html();f(&quot;#view-post-btn&quot;).hide();p.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;);p.children(&quot;.save&quot;).click(function(){var i=m.children(&quot;input&quot;).val();f.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:j,new_slug:i,new_title:f(&quot;#title&quot;).val(),samplepermalinknonce:f(&quot;#samplepermalinknonce&quot;).val()},function(t){f(&quot;#edit-slug-box&quot;).html(t);p.html(q);r.attr(&quot;value&quot;,i);makeSlugeditClickable();f(&quot;#view-post-btn&quot;).show()});return false});f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){f(&quot;#view-post-btn&quot;).show();m.html(o);p.html(q);r.attr(&quot;value&quot;,s);return false});for(
 k=0;k&lt;l.length;++k){if(&quot;%&quot;==l.charAt(k)){n++}}slug_value=(n&gt;l.length/4)?&quot;&quot;:l;m.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(t){var i=t.keyCode||0;if(13==i){p.children(&quot;.save&quot;).click();return false}if(27==i){p.children(&quot;.cancel&quot;).click();return false}r.attr(&quot;value&quot;,this.value)}).focus()};makeSlugeditClickable=function(){f(&quot;#editable-post-name&quot;).click(function(){f(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}if(typeof(wpWordCount)!=&quot;undefined&quot;){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()]);h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==e){return true}if(13==i||8==e||46==e){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}e=i;return true})}wptitlehint=function(k){k=k||&quot;title&quot;;var i=f(&quot;#&quo
 t;+k),j=f(&quot;#&quot;+k+&quot;-prompt-text&quot;);if(i.val()==&quot;&quot;){j.css(&quot;visibility&quot;,&quot;&quot;)}j.click(function(){f(this).css(&quot;visibility&quot;,&quot;hidden&quot;);i.focus()});i.blur(function(){if(this.value==&quot;&quot;){j.css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){j.css(&quot;visibility&quot;,&quot;hidden&quot;)}).keydown(function(l){j.css(&quot;visibility&quot;,&quot;hidden&quot;);f(this).unbind(l)})};wptitlehint()});
</del><span class="cx">\ No newline at end of file
</span><ins>+var tagBox,commentsBox,editPermalink,makeSlugeditClickable,WPSetThumbnailHTML,WPSetThumbnailID,WPRemoveThumbnail,wptitlehint;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 g=a(&quot;.the-tags&quot;,d),e=a(&quot;.tagchecklist&quot;,d),f=a(d).attr(&quot;id&quot;),b,c;if(!g.length){return}c=g.prop(&quot;disabled&quot;);b=g.val().split(&quot;,&quot;);e.empt
 y();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a(&quot;&lt;span /&gt;&quot;).text(k);if(!c){h=a('&lt;a id=&quot;'+f+&quot;-check-num-&quot;+i+'&quot; class=&quot;ntdelbutton&quot;&gt;X&lt;/a&gt;');h.click(function(){tagBox.parseTags(this)});j.prepend(&quot;&amp;nbsp;&quot;).prepend(h)}e.append(j)})},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 fal
 se}}).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(),p:a(&quot;#post_ID&quot;).val(),start:b,number: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();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('input[value=&quot;_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(b){a.post(ajaxurl,{action:&quot;set-post-thumbnail&quot;,post_id:a(&quot;#post
 _ID&quot;).val(),thumbnail_id:-1,_ajax_nonce:b,cookie:encodeURIComponent(document.cookie)},function(c){if(c==&quot;0&quot;){alert(setPostThumbnailL10n.error)}else{WPSetThumbnailHTML(c)}})}})(jQuery);jQuery(document).ready(function(f){var b,a,g=&quot;&quot;,e=0,h=f(&quot;#content&quot;);postboxes.add_postbox_toggles(pagenow);if(f(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{f(&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}})}f(&quot;.categorydiv&quot;).each(function(){var n=f(this).attr(&quot;id&quot;),j=false,m,o,l,i,k;l=n.split(&quot;-&quot;);l.shift();i=l.join(&quot;-&quot;);k=i+&quot;_tab&quot;;if(i==&quot;category&quot;){k=&quot;cats&quot;}f(&quot;a&quot;,&quot;#&quot;+i+&quot;-tabs&quot;).click(function(){var p=f(this).attr(&quot;href&quot;);f(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).remov
 eClass(&quot;tabs&quot;);f(&quot;#&quot;+i+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();f(p).show();if(&quot;#&quot;+i+&quot;-all&quot;==p){deleteUserSetting(k)}else{setUserSetting(k,&quot;pop&quot;)}return false});if(getUserSetting(k)){f('a[href=&quot;#'+i+'-pop&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click()}f(&quot;#new&quot;+i).one(&quot;focus&quot;,function(){f(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});f(&quot;#&quot;+i+&quot;-add-submit&quot;).click(function(){f(&quot;#new&quot;+i).focus()});m=function(){if(j){return}j=true;var p=jQuery(this),r=p.is(&quot;:checked&quot;),q=p.val().toString();f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-&quot;+i+&quot;-category-&quot;+q).prop(&quot;checked&quot;,r);j=false};catAddBefore=function(p){if(!f(&quot;#new&quot;+i).val()){return false}p.data+=&quot;&amp;&quot;+f(&quot;:checked&quot;,&quot;#&quot;+i+&quot;checklist&quot;).serialize();return p};o=function(u,t){var q,p=f(&quot;#new&quo
 t;+i+&quot;_parent&quot;);if(&quot;undefined&quot;!=t.parsed.responses[0]&amp;&amp;(q=t.parsed.responses[0].supplemental.newcat_parent)){p.before(q);p.remove()}};f(&quot;#&quot;+i+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:i+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:o});f(&quot;#&quot;+i+&quot;-add-toggle&quot;).click(function(){f(&quot;#&quot;+i+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);f('a[href=&quot;#'+i+'-all&quot;]',&quot;#&quot;+i+&quot;-tabs&quot;).click();f(&quot;#new&quot;+i).focus();return false});f(&quot;#&quot;+i+&quot;checklist li.popular-category :checkbox, #&quot;+i+&quot;checklist-pop :checkbox&quot;).live(&quot;click&quot;,function(){var p=f(this),r=p.is(&quot;:checked&quot;),q=p.val();if(q&amp;&amp;p.parents(&quot;#taxonomy-&quot;+i).length){f(&quot;#in-&quot;+i+&quot;-&quot;+q+&quot;, #in-popular-&quot;+i+&quot;-&quot;+q).prop(&quot;checked&quot;,r)}})});if(f(&quot;#postcustom&quot;).length){f(&quot;#th
 e-list&quot;).wpList({addAfter:function(i,j){f(&quot;table#list-table&quot;).show()},addBefore:function(i){i.data+=&quot;&amp;post_id=&quot;+f(&quot;#post_ID&quot;).val();return i}})}if(f(&quot;#submitdiv&quot;).length){b=f(&quot;#timestamp&quot;).html();a=f(&quot;#post-visibility-display&quot;).html();function d(){var i=f(&quot;#post-visibility-select&quot;);if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).prop(&quot;checked&quot;,false);f(&quot;#sticky-span&quot;).hide()}else{f(&quot;#sticky-span&quot;).show()}if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;password&quot;){f(&quot;#password-span&quot;).hide()}else{f(&quot;#password-span&quot;).show()}}function c(){var p,q,j,s,r=f(&quot;#post_status&quot;),k=f('option[value=&quot;publish&quot;]',r),i=f(&quot;#aa&quot;).val(),n=f(&quot;#mm&quot;).val(),o=f(&quot;#jj&quot;).val(),m=f(&quot;#hh&quot;).val(),l=f(&quot;#mn&quot;).val();p=new Date(i,n-1,o,m,l);q=new Date(f(&quot;#hidd
 en_aa&quot;).val(),f(&quot;#hidden_mm&quot;).val()-1,f(&quot;#hidden_jj&quot;).val(),f(&quot;#hidden_hh&quot;).val(),f(&quot;#hidden_mn&quot;).val());j=new Date(f(&quot;#cur_aa&quot;).val(),f(&quot;#cur_mm&quot;).val()-1,f(&quot;#cur_jj&quot;).val(),f(&quot;#cur_hh&quot;).val(),f(&quot;#cur_mn&quot;).val());if(p.getFullYear()!=i||(1+p.getMonth())!=n||p.getDate()!=o||p.getMinutes()!=l){f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{f(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(p&gt;j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){s=postL10n.publishOnFuture;f(&quot;#publish&quot;).val(postL10n.schedule)}else{if(p&lt;=j&amp;&amp;f(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){s=postL10n.publishOn;f(&quot;#publish&quot;).val(postL10n.publish)}else{s=postL10n.publishOnPast;f(&quot;#publish&quot;).val(postL10n.update)}}if(q.t
 oUTCString()==p.toUTCString()){f(&quot;#timestamp&quot;).html(b)}else{f(&quot;#timestamp&quot;).html(s+&quot; &lt;b&gt;&quot;+f('option[value=&quot;'+f(&quot;#mm&quot;).val()+'&quot;]',&quot;#mm&quot;).text()+&quot; &quot;+o+&quot;, &quot;+i+&quot; @ &quot;+m+&quot;:&quot;+l+&quot;&lt;/b&gt; &quot;)}if(f(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){f(&quot;#publish&quot;).val(postL10n.update);if(k.length==0){r.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{k.html(postL10n.privatelyPublished)}f('option[value=&quot;publish&quot;]',r).prop(&quot;selected&quot;,true);f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(f(&quot;#original_post_status&quot;).val()==&quot;future&quot;||f(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(k.length){k.remove();r.val(f(&quot;#hidden_post_status&quot;).val())}}else{k.html(postL
 10n.published)}if(r.is(&quot;:hidden&quot;)){f(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}f(&quot;#post-status-display&quot;).html(f(&quot;option:selected&quot;,r).text());if(f(&quot;option:selected&quot;,r).val()==&quot;private&quot;||f(&quot;option:selected&quot;,r).val()==&quot;publish&quot;){f(&quot;#save-post&quot;).hide()}else{f(&quot;#save-post&quot;).show();if(f(&quot;option:selected&quot;,r).val()==&quot;pending&quot;){f(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{f(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(f(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){d();f(&quot;#post-visibility-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){f(&quot;#post-visibility-select&quot;).slideUp(&quot;fast
 &quot;);f(&quot;#visibility-radio-&quot;+f(&quot;#hidden-post-visibility&quot;).val()).prop(&quot;checked&quot;,true);f(&quot;#post_password&quot;).val(f(&quot;#hidden_post_password&quot;).val());f(&quot;#sticky&quot;).prop(&quot;checked&quot;,f(&quot;#hidden-post-sticky&quot;).prop(&quot;checked&quot;));f(&quot;#post-visibility-display&quot;).html(a);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});f(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var i=f(&quot;#post-visibility-select&quot;);i.slideUp(&quot;fast&quot;);f(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(f(&quot;input:radio:checked&quot;,i).val()!=&quot;public&quot;){f(&quot;#sticky&quot;).prop(&quot;checked&quot;,false)}if(true==f(&quot;#sticky&quot;).prop(&quot;checked&quot;)){g=&quot;Sticky&quot;}else{g=&quot;&quot;}f(&quot;#post-visibility-display&quot;).html(postL10n[f(&quot;input:radio:checked&quot;,i).val()+g]);
 return false});f(&quot;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){d()});f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(f(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){f(&quot;#timestampdiv&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){f(&quot;#timestampdiv&quot;).slideUp(&quot;fast&quot;);f(&quot;#mm&quot;).val(f(&quot;#hidden_mm&quot;).val());f(&quot;#jj&quot;).val(f(&quot;#hidden_jj&quot;).val());f(&quot;#aa&quot;).val(f(&quot;#hidden_aa&quot;).val());f(&quot;#hh&quot;).val(f(&quot;#hidden_hh&quot;).val());f(&quot;#mn&quot;).val(f(&quot;#hidden_mn&quot;).val());f(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});f(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(c()){f(&quot;#timestampdiv&quot;).slideUp(&quot;fast&quot;);f(&quot;#timesta
 mpdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show()}return false});f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if(f(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){f(&quot;#post-status-select&quot;).slideDown(&quot;fast&quot;);f(this).hide()}return false});f(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});f(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){f(&quot;#post-status-select&quot;).slideUp(&quot;fast&quot;);f(&quot;#post_status&quot;).val(f(&quot;#hidden_post_status&quot;).val());f(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(f(&quot;#edit-slug-box&quot;).length){editPermalink=function(j){var k,n=0,m=f(&quot;#editable-pos
 t-name&quot;),o=m.html(),r=f(&quot;#post_name&quot;),s=r.val(),p=f(&quot;#edit-slug-buttons&quot;),q=p.html(),l=f(&quot;#editable-post-name-full&quot;).html();f(&quot;#view-post-btn&quot;).hide();p.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;);p.children(&quot;.save&quot;).click(function(){var i=m.children(&quot;input&quot;).val();f.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:j,new_slug:i,new_title:f(&quot;#title&quot;).val(),samplepermalinknonce:f(&quot;#samplepermalinknonce&quot;).val()},function(t){f(&quot;#edit-slug-box&quot;).html(t);p.html(q);r.val(i);makeSlugeditClickable();f(&quot;#view-post-btn&quot;).show()});return false});f(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){f(&quot;#view-post-btn&quot;).show();m.html(o);p.html(q);r.val(s);return false});for(k=0;k&lt;l.length;++k){if(&quot;%&quot
 ;==l.charAt(k)){n++}}slug_value=(n&gt;l.length/4)?&quot;&quot;:l;m.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(t){var i=t.keyCode||0;if(13==i){p.children(&quot;.save&quot;).click();return false}if(27==i){p.children(&quot;.cancel&quot;).click();return false}r.val(this.value)}).focus()};makeSlugeditClickable=function(){f(&quot;#editable-post-name&quot;).click(function(){f(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}if(typeof(wpWordCount)!=&quot;undefined&quot;){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()]);h.keyup(function(j){var i=j.keyCode||j.charCode;if(i==e){return true}if(13==i||8==e||46==e){f(document).triggerHandler(&quot;wpcountwords&quot;,[h.val()])}e=i;return true})}wptitlehint=function(k){k=k||&quot;title&quot;;var i=f(&quot;#&quot;+k),j=f(&quot;#&quot;+k+&quot;-prompt-text&quot;);if(i.
 val()==&quot;&quot;){j.css(&quot;visibility&quot;,&quot;&quot;)}j.click(function(){f(this).css(&quot;visibility&quot;,&quot;hidden&quot;);i.focus()});i.blur(function(){if(this.value==&quot;&quot;){j.css(&quot;visibility&quot;,&quot;&quot;)}}).focus(function(){j.css(&quot;visibility&quot;,&quot;hidden&quot;)}).keydown(function(l){j.css(&quot;visibility&quot;,&quot;hidden&quot;);f(this).unbind(l)})};wptitlehint()});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjspostboxdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/postbox.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/postbox.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/postbox.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -22,13 +22,13 @@
</span><span class="cx">                         } );
</span><span class="cx">                         $('.postbox a.dismiss').click( function(e) {
</span><span class="cx">                                 var hide_id = $(this).parents('.postbox').attr('id') + '-hide';
</span><del>-                                $( '#' + hide_id ).attr('checked', false).triggerHandler('click');
</del><ins>+                                $( '#' + hide_id ).prop('checked', false).triggerHandler('click');
</ins><span class="cx">                                 return false;
</span><span class="cx">                         } );
</span><span class="cx">                         $('.hide-postbox-tog').click( function() {
</span><span class="cx">                                 var box = $(this).val();
</span><span class="cx"> 
</span><del>-                                if ( $(this).attr('checked') ) {
</del><ins>+                                if ( $(this).prop('checked') ) {
</ins><span class="cx">                                         $('#' + box).show();
</span><span class="cx">                                         if ( $.isFunction( postboxes.pbshow ) )
</span><span class="cx">                                                 postboxes.pbshow( box );
</span></span></pre></div>
<a id="trunkwpadminjspostboxjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/postbox.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/postbox.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/postbox.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var postboxes;(function($){postboxes={add_postbox_toggles:function(page,args){this.init(page,args);$(&quot;.postbox h3, .postbox .handlediv&quot;).click(function(){var p=$(this).parent(&quot;.postbox&quot;),id=p.attr(&quot;id&quot;);if(&quot;dashboard_browser_nag&quot;==id){return}p.toggleClass(&quot;closed&quot;);postboxes.save_state(page);if(id){if(!p.hasClass(&quot;closed&quot;)&amp;&amp;$.isFunction(postboxes.pbshow)){postboxes.pbshow(id)}else{if(p.hasClass(&quot;closed&quot;)&amp;&amp;$.isFunction(postboxes.pbhide)){postboxes.pbhide(id)}}}});$(&quot;.postbox h3 a&quot;).click(function(e){e.stopPropagation()});$(&quot;.postbox a.dismiss&quot;).click(function(e){var hide_id=$(this).parents(&quot;.postbox&quot;).attr(&quot;id&quot;)+&quot;-hide&quot;;$(&quot;#&quot;+hide_id).attr(&quot;checked&quot;,false).triggerHandler(&quot;click&quot;);return false});$(&quot;.hide-postbox-tog&quot;).click(function(){var box=$(this).val();if($(this).attr(&quot;checked&quot;)
 ){$(&quot;#&quot;+box).show();if($.isFunction(postboxes.pbshow)){postboxes.pbshow(box)}}else{$(&quot;#&quot;+box).hide();if($.isFunction(postboxes.pbhide)){postboxes.pbhide(box)}}postboxes.save_state(page)});$('.columns-prefs input[type=&quot;radio&quot;]').click(function(){var num=$(this).val(),i,el,p=$(&quot;#poststuff&quot;);if(p.length){if(num==2){p.addClass(&quot;has-right-sidebar&quot;);$(&quot;#side-sortables&quot;).addClass(&quot;temp-border&quot;)}else{if(num==1){p.removeClass(&quot;has-right-sidebar&quot;);$(&quot;#normal-sortables&quot;).append($(&quot;#side-sortables&quot;).children(&quot;.postbox&quot;))}}}else{for(i=4;(i&gt;num&amp;&amp;i&gt;1);i--){el=$(&quot;#&quot;+colname(i)+&quot;-sortables&quot;);$(&quot;#&quot;+colname(i-1)+&quot;-sortables&quot;).append(el.children(&quot;.postbox&quot;));el.parent().hide()}for(i=1;i&lt;=num;i++){el=$(&quot;#&quot;+colname(i)+&quot;-sortables&quot;);if(el.parent().is(&quot;:hidden&quot;)){el.addClass(&quot;temp-border&qu
 ot;).parent().show()}}$(&quot;.postbox-container:visible&quot;).css(&quot;width&quot;,98/num+&quot;%&quot;)}postboxes.save_order(page)});function colname(n){switch(n){case 1:return&quot;normal&quot;;break;case 2:return&quot;side&quot;;break;case 3:return&quot;column3&quot;;break;case 4:return&quot;column4&quot;;break;default:return&quot;&quot;}}},init:function(page,args){$.extend(this,args||{});$(&quot;#wpbody-content&quot;).css(&quot;overflow&quot;,&quot;hidden&quot;);$(&quot;.meta-box-sortables&quot;).sortable({placeholder:&quot;sortable-placeholder&quot;,connectWith:&quot;.meta-box-sortables&quot;,items:&quot;.postbox&quot;,handle:&quot;.hndle&quot;,cursor:&quot;move&quot;,distance:2,tolerance:&quot;pointer&quot;,forcePlaceholderSize:true,helper:&quot;clone&quot;,opacity:0.65,start:function(e,ui){$(&quot;body&quot;).css({WebkitUserSelect:&quot;none&quot;,KhtmlUserSelect:&quot;none&quot;})},stop:function(e,ui){postboxes.save_order(page);ui.item.parent().removeClass(&quot;t
 emp-border&quot;);$(&quot;body&quot;).css({WebkitUserSelect:&quot;&quot;,KhtmlUserSelect:&quot;&quot;})}})},save_state:function(page){var closed=$(&quot;.postbox&quot;).filter(&quot;.closed&quot;).map(function(){return this.id}).get().join(&quot;,&quot;),hidden=$(&quot;.postbox&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;);$.post(ajaxurl,{action:&quot;closed-postboxes&quot;,closed:closed,hidden:hidden,closedpostboxesnonce:jQuery(&quot;#closedpostboxesnonce&quot;).val(),page:page})},save_order:function(page){var postVars,page_columns=$(&quot;.columns-prefs input:checked&quot;).val()||0;postVars={action:&quot;meta-box-order&quot;,_ajax_nonce:$(&quot;#meta-box-order-nonce&quot;).val(),page_columns:page_columns,page:page};$(&quot;.meta-box-sortables&quot;).each(function(){postVars[&quot;order[&quot;+this.id.split(&quot;-&quot;)[0]+&quot;]&quot;]=$(this).sortable(&quot;toArray&quot;).join(&quot;,&quot;)});$.post(ajaxurl,postVars)},pb
 show:false,pbhide:false}}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+var postboxes;(function(a){postboxes={add_postbox_toggles:function(c,b){this.init(c,b);a(&quot;.postbox h3, .postbox .handlediv&quot;).click(function(){var e=a(this).parent(&quot;.postbox&quot;),f=e.attr(&quot;id&quot;);if(&quot;dashboard_browser_nag&quot;==f){return}e.toggleClass(&quot;closed&quot;);postboxes.save_state(c);if(f){if(!e.hasClass(&quot;closed&quot;)&amp;&amp;a.isFunction(postboxes.pbshow)){postboxes.pbshow(f)}else{if(e.hasClass(&quot;closed&quot;)&amp;&amp;a.isFunction(postboxes.pbhide)){postboxes.pbhide(f)}}}});a(&quot;.postbox h3 a&quot;).click(function(f){f.stopPropagation()});a(&quot;.postbox a.dismiss&quot;).click(function(g){var f=a(this).parents(&quot;.postbox&quot;).attr(&quot;id&quot;)+&quot;-hide&quot;;a(&quot;#&quot;+f).prop(&quot;checked&quot;,false).triggerHandler(&quot;click&quot;);return false});a(&quot;.hide-postbox-tog&quot;).click(function(){var e=a(this).val();if(a(this).prop(&quot;checked&quot;)){a(&quot;#&quot;+e).show();if(a.i
 sFunction(postboxes.pbshow)){postboxes.pbshow(e)}}else{a(&quot;#&quot;+e).hide();if(a.isFunction(postboxes.pbhide)){postboxes.pbhide(e)}}postboxes.save_state(c)});a('.columns-prefs input[type=&quot;radio&quot;]').click(function(){var e=a(this).val(),f,g,h=a(&quot;#poststuff&quot;);if(h.length){if(e==2){h.addClass(&quot;has-right-sidebar&quot;);a(&quot;#side-sortables&quot;).addClass(&quot;temp-border&quot;)}else{if(e==1){h.removeClass(&quot;has-right-sidebar&quot;);a(&quot;#normal-sortables&quot;).append(a(&quot;#side-sortables&quot;).children(&quot;.postbox&quot;))}}}else{for(f=4;(f&gt;e&amp;&amp;f&gt;1);f--){g=a(&quot;#&quot;+d(f)+&quot;-sortables&quot;);a(&quot;#&quot;+d(f-1)+&quot;-sortables&quot;).append(g.children(&quot;.postbox&quot;));g.parent().hide()}for(f=1;f&lt;=e;f++){g=a(&quot;#&quot;+d(f)+&quot;-sortables&quot;);if(g.parent().is(&quot;:hidden&quot;)){g.addClass(&quot;temp-border&quot;).parent().show()}}a(&quot;.postbox-container:visible&quot;).css(&quot;width&
 quot;,98/e+&quot;%&quot;)}postboxes.save_order(c)});function d(e){switch(e){case 1:return&quot;normal&quot;;break;case 2:return&quot;side&quot;;break;case 3:return&quot;column3&quot;;break;case 4:return&quot;column4&quot;;break;default:return&quot;&quot;}}},init:function(c,b){a.extend(this,b||{});a(&quot;#wpbody-content&quot;).css(&quot;overflow&quot;,&quot;hidden&quot;);a(&quot;.meta-box-sortables&quot;).sortable({placeholder:&quot;sortable-placeholder&quot;,connectWith:&quot;.meta-box-sortables&quot;,items:&quot;.postbox&quot;,handle:&quot;.hndle&quot;,cursor:&quot;move&quot;,distance:2,tolerance:&quot;pointer&quot;,forcePlaceholderSize:true,helper:&quot;clone&quot;,opacity:0.65,start:function(f,d){a(&quot;body&quot;).css({WebkitUserSelect:&quot;none&quot;,KhtmlUserSelect:&quot;none&quot;})},stop:function(f,d){postboxes.save_order(c);d.item.parent().removeClass(&quot;temp-border&quot;);a(&quot;body&quot;).css({WebkitUserSelect:&quot;&quot;,KhtmlUserSelect:&quot;&quot;})}})
 },save_state:function(d){var b=a(&quot;.postbox&quot;).filter(&quot;.closed&quot;).map(function(){return this.id}).get().join(&quot;,&quot;),c=a(&quot;.postbox&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;);a.post(ajaxurl,{action:&quot;closed-postboxes&quot;,closed:b,hidden:c,closedpostboxesnonce:jQuery(&quot;#closedpostboxesnonce&quot;).val(),page:d})},save_order:function(c){var b,d=a(&quot;.columns-prefs input:checked&quot;).val()||0;b={action:&quot;meta-box-order&quot;,_ajax_nonce:a(&quot;#meta-box-order-nonce&quot;).val(),page_columns:d,page:c};a(&quot;.meta-box-sortables&quot;).each(function(){b[&quot;order[&quot;+this.id.split(&quot;-&quot;)[0]+&quot;]&quot;]=a(this).sortable(&quot;toArray&quot;).join(&quot;,&quot;)});a.post(ajaxurl,b)},pbshow:false,pbhide:false}}(jQuery));
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsuserprofiledevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/user-profile.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/user-profile.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/user-profile.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx">                 $('#pass1').val('').keyup( check_pass_strength );
</span><span class="cx">                 $('#pass2').val('').keyup( check_pass_strength );
</span><span class="cx">                 $('#pass-strength-result').show();
</span><del>-                $('.color-palette').click(function(){$(this).siblings('input[name=&quot;admin_color&quot;]').attr('checked', 'checked')});
</del><ins>+                $('.color-palette').click(function(){$(this).siblings('input[name=&quot;admin_color&quot;]').prop('checked', true)});
</ins><span class="cx">                 $('#first_name, #last_name, #nickname').blur(function(){
</span><span class="cx">                         var select = $('#display_name'), current = select.find('option:selected').attr('id'), dub = [],
</span><span class="cx">                                 inputs = {
</span></span></pre></div>
<a id="trunkwpadminjsuserprofilejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/user-profile.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/user-profile.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/user-profile.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(a){function b(){var e=a(&quot;#pass1&quot;).val(),d=a(&quot;#user_login&quot;).val(),c=a(&quot;#pass2&quot;).val(),f;a(&quot;#pass-strength-result&quot;).removeClass(&quot;short bad good strong&quot;);if(!e){a(&quot;#pass-strength-result&quot;).html(pwsL10n.empty);return}f=passwordStrength(e,d,c);switch(f){case 2:a(&quot;#pass-strength-result&quot;).addClass(&quot;bad&quot;).html(pwsL10n.bad);break;case 3:a(&quot;#pass-strength-result&quot;).addClass(&quot;good&quot;).html(pwsL10n.good);break;case 4:a(&quot;#pass-strength-result&quot;).addClass(&quot;strong&quot;).html(pwsL10n.strong);break;case 5:a(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n.mismatch);break;default:a(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n[&quot;short&quot;])}}a(document).ready(function(){a(&quot;#pass1&quot;).val(&quot;&quot;).keyup(b);a(&quot;#pass2&quot;).val(&quot;&quot;).keyup(b);a(&quot;#pass-strength-result&quot
 ;).show();a(&quot;.color-palette&quot;).click(function(){a(this).siblings('input[name=&quot;admin_color&quot;]').attr(&quot;checked&quot;,&quot;checked&quot;)});a(&quot;#first_name, #last_name, #nickname&quot;).blur(function(){var c=a(&quot;#display_name&quot;),e=c.find(&quot;option:selected&quot;).attr(&quot;id&quot;),f=[],d={display_nickname:a(&quot;#nickname&quot;).val(),display_username:a(&quot;#user_login&quot;).val(),display_firstname:a(&quot;#first_name&quot;).val(),display_lastname:a(&quot;#last_name&quot;).val()};if(d.display_firstname&amp;&amp;d.display_lastname){d.display_firstlast=d.display_firstname+&quot; &quot;+d.display_lastname;d.display_lastfirst=d.display_lastname+&quot; &quot;+d.display_firstname}a(&quot;option&quot;,c).remove();a.each(d,function(i,h){var g;if(d[i].length&amp;&amp;a.inArray(h,f)==-1){f.push(h);g=i==e?'selected=&quot;selected&quot;':&quot;&quot;;c.append('&lt;option id=&quot;'+i+'&quot; '+g+'&quot;&gt;'+h+&quot;&lt;/option&gt;&quot;)}})})}
 )})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(a){function b(){var e=a(&quot;#pass1&quot;).val(),d=a(&quot;#user_login&quot;).val(),c=a(&quot;#pass2&quot;).val(),f;a(&quot;#pass-strength-result&quot;).removeClass(&quot;short bad good strong&quot;);if(!e){a(&quot;#pass-strength-result&quot;).html(pwsL10n.empty);return}f=passwordStrength(e,d,c);switch(f){case 2:a(&quot;#pass-strength-result&quot;).addClass(&quot;bad&quot;).html(pwsL10n.bad);break;case 3:a(&quot;#pass-strength-result&quot;).addClass(&quot;good&quot;).html(pwsL10n.good);break;case 4:a(&quot;#pass-strength-result&quot;).addClass(&quot;strong&quot;).html(pwsL10n.strong);break;case 5:a(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n.mismatch);break;default:a(&quot;#pass-strength-result&quot;).addClass(&quot;short&quot;).html(pwsL10n[&quot;short&quot;])}}a(document).ready(function(){a(&quot;#pass1&quot;).val(&quot;&quot;).keyup(b);a(&quot;#pass2&quot;).val(&quot;&quot;).keyup(b);a(&quot;#pass-strength-result&quot
 ;).show();a(&quot;.color-palette&quot;).click(function(){a(this).siblings('input[name=&quot;admin_color&quot;]').prop(&quot;checked&quot;,true)});a(&quot;#first_name, #last_name, #nickname&quot;).blur(function(){var c=a(&quot;#display_name&quot;),e=c.find(&quot;option:selected&quot;).attr(&quot;id&quot;),f=[],d={display_nickname:a(&quot;#nickname&quot;).val(),display_username:a(&quot;#user_login&quot;).val(),display_firstname:a(&quot;#first_name&quot;).val(),display_lastname:a(&quot;#last_name&quot;).val()};if(d.display_firstname&amp;&amp;d.display_lastname){d.display_firstlast=d.display_firstname+&quot; &quot;+d.display_lastname;d.display_lastfirst=d.display_lastname+&quot; &quot;+d.display_firstname}a(&quot;option&quot;,c).remove();a.each(d,function(i,h){var g;if(d[i].length&amp;&amp;a.inArray(h,f)==-1){f.push(h);g=i==e?'selected=&quot;selected&quot;':&quot;&quot;;c.append('&lt;option id=&quot;'+i+'&quot; '+g+'&quot;&gt;'+h+&quot;&lt;/option&gt;&quot;)}})})})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsxfndevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/xfn.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/xfn.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/xfn.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1,10 +1,10 @@
</span><span class="cx"> jQuery(document).ready( function($) {
</span><del>-        $('#link_rel').attr('readonly', 'readonly');
</del><ins>+        $('#link_rel').prop('readonly', true);
</ins><span class="cx">         $('#linkxfndiv input').bind('click keyup', function() {
</span><span class="cx">                 var isMe = $('#me').is(':checked'), inputs = '';
</span><span class="cx">                 $('input.valinp').each( function() {
</span><span class="cx">                         if (isMe) {
</span><del>-                                $(this).attr('disabled', 'disabled').parent().addClass('disabled');
</del><ins>+                                $(this).prop('disabled', true).parent().addClass('disabled');
</ins><span class="cx">                         } else {
</span><span class="cx">                                 $(this).removeAttr('disabled').parent().removeClass('disabled');
</span><span class="cx">                                 if ( $(this).is(':checked') &amp;&amp; $(this).val() != '')
</span><span class="lines">@@ -13,4 +13,4 @@
</span><span class="cx">                 });
</span><span class="cx">                 $('#link_rel').val( (isMe) ? 'me' : inputs.substr(0,inputs.length - 1) );
</span><span class="cx">         });
</span><del>-});
</del><span class="cx">\ No newline at end of file
</span><ins>+});
</ins></span></pre></div>
<a id="trunkwpadminjsxfnjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/xfn.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/xfn.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-admin/js/xfn.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(a){a(&quot;#link_rel&quot;).attr(&quot;readonly&quot;,&quot;readonly&quot;);a(&quot;#linkxfndiv input&quot;).bind(&quot;click keyup&quot;,function(){var c=a(&quot;#me&quot;).is(&quot;:checked&quot;),b=&quot;&quot;;a(&quot;input.valinp&quot;).each(function(){if(c){a(this).attr(&quot;disabled&quot;,&quot;disabled&quot;).parent().addClass(&quot;disabled&quot;)}else{a(this).removeAttr(&quot;disabled&quot;).parent().removeClass(&quot;disabled&quot;);if(a(this).is(&quot;:checked&quot;)&amp;&amp;a(this).val()!=&quot;&quot;){b+=a(this).val()+&quot; &quot;}}});a(&quot;#link_rel&quot;).val((c)?&quot;me&quot;:b.substr(0,b.length-1))})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(a){a(&quot;#link_rel&quot;).prop(&quot;readonly&quot;,true);a(&quot;#linkxfndiv input&quot;).bind(&quot;click keyup&quot;,function(){var c=a(&quot;#me&quot;).is(&quot;:checked&quot;),b=&quot;&quot;;a(&quot;input.valinp&quot;).each(function(){if(c){a(this).prop(&quot;disabled&quot;,true).parent().addClass(&quot;disabled&quot;)}else{a(this).removeAttr(&quot;disabled&quot;).parent().removeClass(&quot;disabled&quot;);if(a(this).is(&quot;:checked&quot;)&amp;&amp;a(this).val()!=&quot;&quot;){b+=a(this).val()+&quot; &quot;}}});a(&quot;#link_rel&quot;).val((c)?&quot;me&quot;:b.substr(0,b.length-1))})});
</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 (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-includes/js/autosave.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -190,7 +190,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function autosave_disable_buttons() {
</span><del>-        jQuery(':button, :submit', '#submitpost').attr('disabled', 'disabled');
</del><ins>+        jQuery(':button, :submit', '#submitpost').prop('disabled', true);
</ins><span class="cx">         // Re-enable 5 sec later.  Just gives autosave a head start to avoid collisions.
</span><span class="cx">         setTimeout(autosave_enable_buttons, 5000);
</span><span class="cx"> }
</span><span class="lines">@@ -268,9 +268,9 @@
</span><span class="cx">         } );
</span><span class="cx">         post_data[&quot;catslist&quot;] = goodcats.join(&quot;,&quot;);
</span><span class="cx"> 
</span><del>-        if ( jQuery(&quot;#comment_status&quot;).attr(&quot;checked&quot;) )
</del><ins>+        if ( jQuery(&quot;#comment_status&quot;).prop(&quot;checked&quot;) )
</ins><span class="cx">                 post_data[&quot;comment_status&quot;] = 'open';
</span><del>-        if ( jQuery(&quot;#ping_status&quot;).attr(&quot;checked&quot;) )
</del><ins>+        if ( jQuery(&quot;#ping_status&quot;).prop(&quot;checked&quot;) )
</ins><span class="cx">                 post_data[&quot;ping_status&quot;] = 'open';
</span><span class="cx">         if ( jQuery(&quot;#excerpt&quot;).size() )
</span><span class="cx">                 post_data[&quot;excerpt&quot;] = jQuery(&quot;#excerpt&quot;).val();
</span></span></pre></div>
<a id="trunkwpincludesjsautosavejs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/autosave.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/autosave.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-includes/js/autosave.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var autosave,autosaveLast=&quot;&quot;,autosavePeriodical,autosaveOldMessage=&quot;&quot;,autosaveDelayPreview=false,notSaved=true,blockSave=false,fullscreen;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;)}});if(b(this).attr(&quot;id&quot;)==&quot;publish&quot;){b(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)}els
 e{b(&quot;#draft-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{if(fullscreen&amp;&amp;fullscreen.settings.visible){e=b(&quot;#wp-fullscreen-title&quot;).val();d=b(&quot;#wp_mce_fullscreen&quot;).val()}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 d=wpAjax.parseAjaxResponse(c,&quot;autosave&quot;),e=&quot;&quot;,a,b;if(d&amp;&amp;d.responses&amp;&amp;d.responses.length){e=d.responses[0].data;if(d.responses[0].supplemental){b=d.responses[0].supplemental;if(&quot;disable&quot;==b.disable_autosave){autosave=f
 unction(){};d={errors:true}}if(b.alert){jQuery(&quot;#autosave-alert&quot;).remove();jQuery(&quot;#titlediv&quot;).after('&lt;div id=&quot;autosave-alert&quot; class=&quot;error below-h2&quot;&gt;&lt;p&gt;'+b.alert+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)}jQuery.each(b,function(f,g){if(f.match(/^replace-/)){jQuery(&quot;#&quot;+f.replace(&quot;replace-&quot;,&quot;&quot;)).val(g)}})}if(!d.errors){a=parseInt(d.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){autosave_update_slug(a)}}}if(e){jQuery(&quot;.autosave-message&quot;).html(e)}else{if(autosaveOldMessage&amp;&amp;d){jQuery(&quot;.autosave-message&quot;).html(autosaveOldMessage)}}return d}function autosave_saved(a){blockSave=false;autosave_parse_response(a);autosave_enable_buttons()}function autosave_saved_new(b){blockSave=false;var c=autosave_parse_response(b),a;if(c&amp;&amp;c.responses.length&amp;&amp;!c.errors){a=parseInt(c.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:fullscreen&amp;&amp;fullscreen.settings.visible?jQuery(&quot;#wp-fullscreen-title&quot;).val():jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(b){if(b!==&quot;-1&quot;){jQuery(&quot;#edit-slug-box&quot;).html(b);makeSlugeditClickable()}})}}function autosave_loading(){jQuery(&quot;.autosave-message&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&q
 uot;).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,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.spellche
 cker.active){f=false}else{if(&quot;mce_fullscreen&quot;==b.id||&quot;wp_mce_fullscreen&quot;==b.id){tinyMCE.get(&quot;content&quot;).setContent(b.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.triggerSave()}}if(fullscreen&amp;&amp;fullscreen.settings.visible){d.post_title=jQuery(&quot;#wp-fullscreen-title&quot;).val();d.content=jQuery(&quot;#wp_mce_fullscreen&quot;).val()}else{d.post_title=jQuery(&quot;#title&quot;).val();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=d.post_title+d.content;jQuery(document).triggerHandler(&quot;wpcountwords&quot;,[d.content])}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:ajaxurl,success:a})};
</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,fullscreen;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;)}});if(b(this).attr(&quot;id&quot;)==&quot;publish&quot;){b(&quot;#ajax-loading&quot;).css(&quot;visibility&quot;,&quot;visible&quot;)}els
 e{b(&quot;#draft-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{if(fullscreen&amp;&amp;fullscreen.settings.visible){e=b(&quot;#wp-fullscreen-title&quot;).val();d=b(&quot;#wp_mce_fullscreen&quot;).val()}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 d=wpAjax.parseAjaxResponse(c,&quot;autosave&quot;),e=&quot;&quot;,a,b;if(d&amp;&amp;d.responses&amp;&amp;d.responses.length){e=d.responses[0].data;if(d.responses[0].supplemental){b=d.responses[0].supplemental;if(&quot;disable&quot;==b.disable_autosave){autosave=f
 unction(){};d={errors:true}}if(b.alert){jQuery(&quot;#autosave-alert&quot;).remove();jQuery(&quot;#titlediv&quot;).after('&lt;div id=&quot;autosave-alert&quot; class=&quot;error below-h2&quot;&gt;&lt;p&gt;'+b.alert+&quot;&lt;/p&gt;&lt;/div&gt;&quot;)}jQuery.each(b,function(f,g){if(f.match(/^replace-/)){jQuery(&quot;#&quot;+f.replace(&quot;replace-&quot;,&quot;&quot;)).val(g)}})}if(!d.errors){a=parseInt(d.responses[0].id,10);if(!isNaN(a)&amp;&amp;a&gt;0){autosave_update_slug(a)}}}if(e){jQuery(&quot;.autosave-message&quot;).html(e)}else{if(autosaveOldMessage&amp;&amp;d){jQuery(&quot;.autosave-message&quot;).html(autosaveOldMessage)}}return d}function autosave_saved(a){blockSave=false;autosave_parse_response(a);autosave_enable_buttons()}function autosave_saved_new(b){blockSave=false;var c=autosave_parse_response(b),a;if(c&amp;&amp;c.responses.length&amp;&amp;!c.errors){a=parseInt(c.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:fullscreen&amp;&amp;fullscreen.settings.visible?jQuery(&quot;#wp-fullscreen-title&quot;).val():jQuery(&quot;#title&quot;).val(),samplepermalinknonce:jQuery(&quot;#samplepermalinknonce&quot;).val()},function(b){if(b!==&quot;-1&quot;){jQuery(&quot;#edit-slug-box&quot;).html(b);makeSlugeditClickable()}})}}function autosave_loading(){jQuery(&quot;.autosave-message&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&q
 uot;).css(&quot;visibility&quot;,&quot;hidden&quot;)},500)}function autosave_disable_buttons(){jQuery(&quot;:button, :submit&quot;,&quot;#submitpost&quot;).prop(&quot;disabled&quot;,true);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,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=f
 alse}else{if(&quot;mce_fullscreen&quot;==b.id||&quot;wp_mce_fullscreen&quot;==b.id){tinyMCE.get(&quot;content&quot;).setContent(b.getContent({format:&quot;raw&quot;}),{format:&quot;raw&quot;})}tinyMCE.triggerSave()}}if(fullscreen&amp;&amp;fullscreen.settings.visible){d.post_title=jQuery(&quot;#wp-fullscreen-title&quot;).val();d.content=jQuery(&quot;#wp_mce_fullscreen&quot;).val()}else{d.post_title=jQuery(&quot;#title&quot;).val();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;).prop(&quot;checked&quot;)){d.comment_status=&quot;open&quot;}if(jQuery(&quo
 t;#ping_status&quot;).prop(&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=d.post_title+d.content;jQuery(document).triggerHandler(&quot;wpcountwords&quot;,[d.content])}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:ajaxurl,success:a})};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjsswfuploadhandlersdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/swfupload/handlers.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/swfupload/handlers.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-includes/js/swfupload/handlers.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -20,8 +20,8 @@
</span><span class="cx">         jQuery('.progress', '#media-item-' + fileObj.id).show();
</span><span class="cx"> 
</span><span class="cx">         // Disable submit and enable cancel
</span><del>-        jQuery('#insert-gallery').attr('disabled', 'disabled');
-        jQuery('#cancel-upload').attr('disabled', '');
</del><ins>+        jQuery('#insert-gallery').prop('disabled', true);
+        jQuery('#cancel-upload').prop('disabled', false);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function uploadStart(fileObj) {
</span><span class="lines">@@ -232,8 +232,8 @@
</span><span class="cx"> function uploadComplete(fileObj) {
</span><span class="cx">         // If no more uploads queued, enable the submit button
</span><span class="cx">         if ( swfu.getStats().files_queued == 0 ) {
</span><del>-                jQuery('#cancel-upload').attr('disabled', 'disabled');
-                jQuery('#insert-gallery').attr('disabled', '');
</del><ins>+                jQuery('#cancel-upload').prop('disabled', true);
+                jQuery('#insert-gallery').prop('disabled', false);
</ins><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpincludesjsswfuploadhandlersjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/swfupload/handlers.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/swfupload/handlers.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-includes/js/swfupload/handlers.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var topWin=window.dialogArguments||opener||parent||top;function fileDialogStart(){jQuery(&quot;#media-upload-error&quot;).empty()}function fileQueued(a){jQuery(&quot;.media-blank&quot;).remove();if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.describe-toggle-on&quot;).show();jQuery(&quot;.describe-toggle-off&quot;).hide();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings().removeClass(&quot;hidden&quot;)}jQuery(&quot;#media-items&quot;).append('&lt;div id=&quot;media-item-'+a.id+'&quot; class=&quot;media-item child-of-'+post_id+'&quot;&gt;&lt;div class=&quot;progress&quot;&gt;&lt;div class=&quot;bar&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;filename original&quot;&gt;&lt;span class=&quot;percent&quot;&gt;&lt;/span&gt; '+a.name+&quot;&lt;/div&gt;&lt;/div&gt;&quot;);jQuery(&quot;.progress&quot;,&quot;#media-item-&quot;+a.id).show();jQuery
 (&quot;#insert-gallery&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);jQuery(&quot;#cancel-upload&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}function uploadStart(a){try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overlay&quot;).unbind(&quot;click&quot;,topWin.tb_remove)}}catch(b){}return true}function uploadProgress(e,b,d){var a=jQuery(&quot;#media-items&quot;).width()-2,c=jQuery(&quot;#media-item-&quot;+e.id);jQuery(&quot;.bar&quot;,c).width(a*b/d);jQuery(&quot;.percent&quot;,c).html(Math.ceil(b/d*100)+&quot;%&quot;);if(b==d){jQuery(&quot;.bar&quot;,c).html('&lt;strong class=&quot;crunching&quot;&gt;'+swfuploadL10n.crunching+&quot;&lt;/strong&gt;&quot;)}}function prepareMediaItem(c,a){var d=(typeof shortform==&quot;undefined&quot;)?1:2,b=jQuery(&quot;#media-item-&quot;+c.id);jQuery(&quot;.bar&quot;,b).remove();jQuery(&quot;.progress&quot;,b).hide();try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overl
 ay&quot;).click(topWin.tb_remove)}}catch(g){}if(isNaN(a)||!a){b.append(a);prepareMediaItemInit(c)}else{b.load(&quot;async-upload.php&quot;,{attachment_id:a,fetch:d},function(){prepareMediaItemInit(c);updateMediaForm()})}}function prepareMediaItemInit(b){var a=jQuery(&quot;#media-item-&quot;+b.id);jQuery(&quot;.thumbnail&quot;,a).clone().attr(&quot;class&quot;,&quot;pinkynail toggle&quot;).prependTo(a);jQuery(&quot;.filename.original&quot;,a).replaceWith(jQuery(&quot;.filename.new&quot;,a));jQuery(&quot;a.toggle&quot;,a).click(function(){jQuery(this).siblings(&quot;.slidetoggle&quot;).slideToggle(350,function(){var d=jQuery(window).height(),e=jQuery(this).offset().top,f=jQuery(this).height(),c;if(d&amp;&amp;e&amp;&amp;f){c=e+f;if(c&gt;d&amp;&amp;(f+48)&lt;d){window.scrollBy(0,c-d+13)}else{if(c&gt;d){window.scrollTo(0,e-36)}}}});jQuery(this).siblings(&quot;.toggle&quot;).andSelf().toggle();jQuery(this).siblings(&quot;a.toggle&quot;).focus();return false});jQuery(&quot;a.delete
 &quot;,a).click(function(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,success:deleteSuccess,error:deleteError,id:b.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;trash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)}});return false});jQuery(&quot;a.undo&quot;,a).click(function(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,id:b.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;untrash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)},success:function(d,e){var c=jQuery(&quot;#media-item-&quot;+b.id);if(type=jQuery(&quot;#type-of-&quot;+b.id).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-0+1)}if(c.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-0+1)}jQuery(&quot;.filename .trashnotice&quot;,c).remove();jQuery(&q
 uot;.filename .title&quot;,c).css(&quot;font-weight&quot;,&quot;normal&quot;);jQuery(&quot;a.undo&quot;,c).addClass(&quot;hidden&quot;);jQuery(&quot;a.describe-toggle-on, .menu_order_input&quot;,c).show();c.css({backgroundColor:&quot;#ceb&quot;}).animate({backgroundColor:&quot;#fff&quot;},{queue:false,duration:500,complete:function(){jQuery(this).css({backgroundColor:&quot;&quot;})}}).removeClass(&quot;undo&quot;)}});return false});jQuery(&quot;#media-item-&quot;+b.id+&quot;.startopen&quot;).removeClass(&quot;startopen&quot;).slideToggle(500).siblings(&quot;.toggle&quot;).toggle()}function itemAjaxError(d,b){var c=jQuery(&quot;#media-item-&quot;+d);var a=jQuery(&quot;.filename&quot;,c).text();c.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,a)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+b+&quot;&lt;/div&gt;&quot;);c
 .find(&quot;a.dismiss&quot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function deleteSuccess(b,d){if(b==&quot;-1&quot;){return itemAjaxError(this.id,&quot;You do not have permission. Has your session expired?&quot;)}if(b==&quot;0&quot;){return itemAjaxError(this.id,&quot;Could not be deleted. Has it been deleted already?&quot;)}var c=this.id,a=jQuery(&quot;#media-item-&quot;+c);if(type=jQuery(&quot;#type-of-&quot;+c).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-1)}if(a.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-1)}if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.toggle&quot;).toggle();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings()
 .removeClass(&quot;hidden&quot;)}jQuery(&quot;.toggle&quot;,a).toggle();jQuery(&quot;.slidetoggle&quot;,a).slideUp(200).siblings().removeClass(&quot;hidden&quot;);a.css({backgroundColor:&quot;#faa&quot;}).animate({backgroundColor:&quot;#f4f4f4&quot;},{queue:false,duration:500}).addClass(&quot;undo&quot;);jQuery(&quot;.filename:empty&quot;,a).remove();jQuery(&quot;.filename .title&quot;,a).css(&quot;font-weight&quot;,&quot;bold&quot;);jQuery(&quot;.filename&quot;,a).append('&lt;span class=&quot;trashnotice&quot;&gt; '+swfuploadL10n.deleted+&quot; &lt;/span&gt;&quot;).siblings(&quot;a.toggle&quot;).hide();jQuery(&quot;.filename&quot;,a).append(jQuery(&quot;a.undo&quot;,a).removeClass(&quot;hidden&quot;));jQuery(&quot;.menu_order_input&quot;,a).hide();return}function deleteError(c,b,a){}function updateMediaForm(){var b=jQuery(&quot;form.type-form #media-items&quot;).children(),a=jQuery(&quot;#media-items&quot;).children();if(b.length==1){jQuery(&quot;.slidetoggle&quot;,b).slide
 Down(500).siblings().addClass(&quot;hidden&quot;).filter(&quot;.toggle&quot;).toggle()}if(a.not(&quot;.media-blank&quot;).length&gt;0){jQuery(&quot;.savebutton&quot;).show()}else{jQuery(&quot;.savebutton&quot;).hide()}if(a.length&gt;1){jQuery(&quot;.insert-gallery&quot;).show()}else{jQuery(&quot;.insert-gallery&quot;).hide()}}function uploadSuccess(b,a){if(a.match(&quot;media-upload-error&quot;)){jQuery(&quot;#media-item-&quot;+b.id).html(a);return}prepareMediaItem(b,a);updateMediaForm();if(jQuery(&quot;#media-item-&quot;+b.id).hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(1*jQuery(&quot;#attachments-count&quot;).text()+1)}}function uploadComplete(a){if(swfu.getStats().files_queued==0){jQuery(&quot;#cancel-upload&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;);jQuery(&quot;#insert-gallery&quot;).attr(&quot;disabled&quot;,&quot;&quot;)}}function wpQueueError(a){jQuery(&quot;#media-upload-error&quot;).show().text(a)}function wpFile
 Error(d,c){var b=jQuery(&quot;#media-item-&quot;+d.id);var a=jQuery(&quot;.filename&quot;,b).text();b.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,a)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+c+&quot;&lt;/div&gt;&quot;);b.find(&quot;a.dismiss&quot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function fileQueueError(c,a,b){if(a==SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){wpQueueError(swfuploadL10n.queue_limit_exceeded)}else{if(a==SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT){fileQueued(c);wpFileError(c,swfuploadL10n.file_exceeds_size_limit)}else{if(a==SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE){fileQueued(c);wpFileError(c,swfuploadL10n.zero_byte_file)}else{if(a==SWFUpload.QUEUE_ERROR.INVALID_FILETYPE){fileQueued(c);wpFileError(c,swfuploadL10n.invali
 d_filetype)}else{wpQueueError(swfuploadL10n.default_error)}}}}}function fileDialogComplete(b){try{if(b&gt;0){this.startUpload()}}catch(a){this.debug(a)}}function switchUploader(b){var c=document.getElementById(swfu.customSettings.swfupload_element_id),a=document.getElementById(swfu.customSettings.degraded_element_id);if(b){c.style.display=&quot;block&quot;;a.style.display=&quot;none&quot;}else{c.style.display=&quot;none&quot;;a.style.display=&quot;block&quot;}}function swfuploadPreLoad(){if(!uploaderMode){switchUploader(1)}else{switchUploader(0)}}function swfuploadLoadFailed(){switchUploader(0);jQuery(&quot;.upload-html-bypass&quot;).hide()}function uploadError(b,c,a){switch(c){case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:wpFileError(b,swfuploadL10n.missing_upload_url);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:wpFileError(b,swfuploadL10n.upload_limit_exceeded);break;case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:wpQueueError(swfuploadL10n.http_error);break;case SWFUp
 load.UPLOAD_ERROR.UPLOAD_FAILED:wpQueueError(swfuploadL10n.upload_failed);break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:wpQueueError(swfuploadL10n.io_error);break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:wpQueueError(swfuploadL10n.security_error);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:jQuery(&quot;#media-item-&quot;+b.id).remove();break;default:wpFileError(b,swfuploadL10n.default_error)}}function cancelUpload(){swfu.cancelQueue()}jQuery(document).ready(function(a){a('input[type=&quot;radio&quot;]',&quot;#media-items&quot;).live(&quot;click&quot;,function(){var b=a(this).closest(&quot;tr&quot;);if(a(b).hasClass(&quot;align&quot;)){setUserSetting(&quot;align&quot;,a(this).val())}else{if(a(b).hasClass(&quot;image-size&quot;)){setUserSetting(&quot;imgsize&quot;,a(this).val())}}});a(&quot;button.button&quot;,&quot;#media-items&quot;).live(&quot;click&quot;,function(){var b=this.className||&quot;&quot;;b=b.match(/url([^ '&quot;]+
 )/);if(b&amp;&amp;b[1]){setUserSetting(&quot;urlbutton&quot;,b[1]);a(this).siblings(&quot;.urlfield&quot;).val(a(this).attr(&quot;title&quot;))}})});
</del><span class="cx">\ No newline at end of file
</span><ins>+var topWin=window.dialogArguments||opener||parent||top;function fileDialogStart(){jQuery(&quot;#media-upload-error&quot;).empty()}function fileQueued(a){jQuery(&quot;.media-blank&quot;).remove();if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.describe-toggle-on&quot;).show();jQuery(&quot;.describe-toggle-off&quot;).hide();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings().removeClass(&quot;hidden&quot;)}jQuery(&quot;#media-items&quot;).append('&lt;div id=&quot;media-item-'+a.id+'&quot; class=&quot;media-item child-of-'+post_id+'&quot;&gt;&lt;div class=&quot;progress&quot;&gt;&lt;div class=&quot;bar&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;filename original&quot;&gt;&lt;span class=&quot;percent&quot;&gt;&lt;/span&gt; '+a.name+&quot;&lt;/div&gt;&lt;/div&gt;&quot;);jQuery(&quot;.progress&quot;,&quot;#media-item-&quot;+a.id).show();jQuery
 (&quot;#insert-gallery&quot;).prop(&quot;disabled&quot;,true);jQuery(&quot;#cancel-upload&quot;).prop(&quot;disabled&quot;,false)}function uploadStart(a){try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overlay&quot;).unbind(&quot;click&quot;,topWin.tb_remove)}}catch(b){}return true}function uploadProgress(e,b,d){var a=jQuery(&quot;#media-items&quot;).width()-2,c=jQuery(&quot;#media-item-&quot;+e.id);jQuery(&quot;.bar&quot;,c).width(a*b/d);jQuery(&quot;.percent&quot;,c).html(Math.ceil(b/d*100)+&quot;%&quot;);if(b==d){jQuery(&quot;.bar&quot;,c).html('&lt;strong class=&quot;crunching&quot;&gt;'+swfuploadL10n.crunching+&quot;&lt;/strong&gt;&quot;)}}function prepareMediaItem(c,a){var d=(typeof shortform==&quot;undefined&quot;)?1:2,b=jQuery(&quot;#media-item-&quot;+c.id);jQuery(&quot;.bar&quot;,b).remove();jQuery(&quot;.progress&quot;,b).hide();try{if(typeof topWin.tb_remove!=&quot;undefined&quot;){topWin.jQuery(&quot;#TB_overlay&quot;).click(topWin.
 tb_remove)}}catch(g){}if(isNaN(a)||!a){b.append(a);prepareMediaItemInit(c)}else{b.load(&quot;async-upload.php&quot;,{attachment_id:a,fetch:d},function(){prepareMediaItemInit(c);updateMediaForm()})}}function prepareMediaItemInit(b){var a=jQuery(&quot;#media-item-&quot;+b.id);jQuery(&quot;.thumbnail&quot;,a).clone().attr(&quot;class&quot;,&quot;pinkynail toggle&quot;).prependTo(a);jQuery(&quot;.filename.original&quot;,a).replaceWith(jQuery(&quot;.filename.new&quot;,a));jQuery(&quot;a.toggle&quot;,a).click(function(){jQuery(this).siblings(&quot;.slidetoggle&quot;).slideToggle(350,function(){var d=jQuery(window).height(),e=jQuery(this).offset().top,f=jQuery(this).height(),c;if(d&amp;&amp;e&amp;&amp;f){c=e+f;if(c&gt;d&amp;&amp;(f+48)&lt;d){window.scrollBy(0,c-d+13)}else{if(c&gt;d){window.scrollTo(0,e-36)}}}});jQuery(this).siblings(&quot;.toggle&quot;).andSelf().toggle();jQuery(this).siblings(&quot;a.toggle&quot;).focus();return false});jQuery(&quot;a.delete&quot;,a).click(functio
 n(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,success:deleteSuccess,error:deleteError,id:b.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;trash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)}});return false});jQuery(&quot;a.undo&quot;,a).click(function(){jQuery.ajax({url:&quot;admin-ajax.php&quot;,type:&quot;post&quot;,id:b.id,data:{id:this.id.replace(/[^0-9]/g,&quot;&quot;),action:&quot;untrash-post&quot;,_ajax_nonce:this.href.replace(/^.*wpnonce=/,&quot;&quot;)},success:function(d,e){var c=jQuery(&quot;#media-item-&quot;+b.id);if(type=jQuery(&quot;#type-of-&quot;+b.id).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-0+1)}if(c.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-0+1)}jQuery(&quot;.filename .trashnotice&quot;,c).remove();jQuery(&quot;.filename .title&qu
 ot;,c).css(&quot;font-weight&quot;,&quot;normal&quot;);jQuery(&quot;a.undo&quot;,c).addClass(&quot;hidden&quot;);jQuery(&quot;a.describe-toggle-on, .menu_order_input&quot;,c).show();c.css({backgroundColor:&quot;#ceb&quot;}).animate({backgroundColor:&quot;#fff&quot;},{queue:false,duration:500,complete:function(){jQuery(this).css({backgroundColor:&quot;&quot;})}}).removeClass(&quot;undo&quot;)}});return false});jQuery(&quot;#media-item-&quot;+b.id+&quot;.startopen&quot;).removeClass(&quot;startopen&quot;).slideToggle(500).siblings(&quot;.toggle&quot;).toggle()}function itemAjaxError(d,b){var c=jQuery(&quot;#media-item-&quot;+d);var a=jQuery(&quot;.filename&quot;,c).text();c.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,a)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+b+&quot;&lt;/div&gt;&quot;);c.find(&quot;a.dismiss&q
 uot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function deleteSuccess(b,d){if(b==&quot;-1&quot;){return itemAjaxError(this.id,&quot;You do not have permission. Has your session expired?&quot;)}if(b==&quot;0&quot;){return itemAjaxError(this.id,&quot;Could not be deleted. Has it been deleted already?&quot;)}var c=this.id,a=jQuery(&quot;#media-item-&quot;+c);if(type=jQuery(&quot;#type-of-&quot;+c).val()){jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text(jQuery(&quot;#&quot;+type+&quot;-counter&quot;).text()-1)}if(a.hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(jQuery(&quot;#attachments-count&quot;).text()-1)}if(jQuery(&quot;form.type-form #media-items&quot;).children().length==1&amp;&amp;jQuery(&quot;.hidden&quot;,&quot;#media-items&quot;).length&gt;0){jQuery(&quot;.toggle&quot;).toggle();jQuery(&quot;.slidetoggle&quot;).slideUp(200).siblings().removeClass(&quot;hidd
 en&quot;)}jQuery(&quot;.toggle&quot;,a).toggle();jQuery(&quot;.slidetoggle&quot;,a).slideUp(200).siblings().removeClass(&quot;hidden&quot;);a.css({backgroundColor:&quot;#faa&quot;}).animate({backgroundColor:&quot;#f4f4f4&quot;},{queue:false,duration:500}).addClass(&quot;undo&quot;);jQuery(&quot;.filename:empty&quot;,a).remove();jQuery(&quot;.filename .title&quot;,a).css(&quot;font-weight&quot;,&quot;bold&quot;);jQuery(&quot;.filename&quot;,a).append('&lt;span class=&quot;trashnotice&quot;&gt; '+swfuploadL10n.deleted+&quot; &lt;/span&gt;&quot;).siblings(&quot;a.toggle&quot;).hide();jQuery(&quot;.filename&quot;,a).append(jQuery(&quot;a.undo&quot;,a).removeClass(&quot;hidden&quot;));jQuery(&quot;.menu_order_input&quot;,a).hide();return}function deleteError(c,b,a){}function updateMediaForm(){var b=jQuery(&quot;form.type-form #media-items&quot;).children(),a=jQuery(&quot;#media-items&quot;).children();if(b.length==1){jQuery(&quot;.slidetoggle&quot;,b).slideDown(500).siblings().ad
 dClass(&quot;hidden&quot;).filter(&quot;.toggle&quot;).toggle()}if(a.not(&quot;.media-blank&quot;).length&gt;0){jQuery(&quot;.savebutton&quot;).show()}else{jQuery(&quot;.savebutton&quot;).hide()}if(a.length&gt;1){jQuery(&quot;.insert-gallery&quot;).show()}else{jQuery(&quot;.insert-gallery&quot;).hide()}}function uploadSuccess(b,a){if(a.match(&quot;media-upload-error&quot;)){jQuery(&quot;#media-item-&quot;+b.id).html(a);return}prepareMediaItem(b,a);updateMediaForm();if(jQuery(&quot;#media-item-&quot;+b.id).hasClass(&quot;child-of-&quot;+post_id)){jQuery(&quot;#attachments-count&quot;).text(1*jQuery(&quot;#attachments-count&quot;).text()+1)}}function uploadComplete(a){if(swfu.getStats().files_queued==0){jQuery(&quot;#cancel-upload&quot;).prop(&quot;disabled&quot;,true);jQuery(&quot;#insert-gallery&quot;).prop(&quot;disabled&quot;,false)}}function wpQueueError(a){jQuery(&quot;#media-upload-error&quot;).show().text(a)}function wpFileError(d,c){var b=jQuery(&quot;#media-item-&quo
 t;+d.id);var a=jQuery(&quot;.filename&quot;,b).text();b.html('&lt;div class=&quot;error-div&quot;&gt;&lt;a class=&quot;dismiss&quot; href=&quot;#&quot;&gt;'+swfuploadL10n.dismiss+&quot;&lt;/a&gt;&lt;strong&gt;&quot;+swfuploadL10n.error_uploading.replace(&quot;%s&quot;,a)+&quot;&lt;/strong&gt;&lt;br /&gt;&quot;+c+&quot;&lt;/div&gt;&quot;);b.find(&quot;a.dismiss&quot;).click(function(){jQuery(this).parents(&quot;.media-item&quot;).slideUp(200,function(){jQuery(this).remove()})})}function fileQueueError(c,a,b){if(a==SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED){wpQueueError(swfuploadL10n.queue_limit_exceeded)}else{if(a==SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT){fileQueued(c);wpFileError(c,swfuploadL10n.file_exceeds_size_limit)}else{if(a==SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE){fileQueued(c);wpFileError(c,swfuploadL10n.zero_byte_file)}else{if(a==SWFUpload.QUEUE_ERROR.INVALID_FILETYPE){fileQueued(c);wpFileError(c,swfuploadL10n.invalid_filetype)}else{wpQueueError(swfuploadL10n.de
 fault_error)}}}}}function fileDialogComplete(b){try{if(b&gt;0){this.startUpload()}}catch(a){this.debug(a)}}function switchUploader(b){var c=document.getElementById(swfu.customSettings.swfupload_element_id),a=document.getElementById(swfu.customSettings.degraded_element_id);if(b){c.style.display=&quot;block&quot;;a.style.display=&quot;none&quot;}else{c.style.display=&quot;none&quot;;a.style.display=&quot;block&quot;}}function swfuploadPreLoad(){if(!uploaderMode){switchUploader(1)}else{switchUploader(0)}}function swfuploadLoadFailed(){switchUploader(0);jQuery(&quot;.upload-html-bypass&quot;).hide()}function uploadError(b,c,a){switch(c){case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:wpFileError(b,swfuploadL10n.missing_upload_url);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:wpFileError(b,swfuploadL10n.upload_limit_exceeded);break;case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:wpQueueError(swfuploadL10n.http_error);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:wpQueueError(s
 wfuploadL10n.upload_failed);break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:wpQueueError(swfuploadL10n.io_error);break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:wpQueueError(swfuploadL10n.security_error);break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:jQuery(&quot;#media-item-&quot;+b.id).remove();break;default:wpFileError(b,swfuploadL10n.default_error)}}function cancelUpload(){swfu.cancelQueue()}jQuery(document).ready(function(a){a('input[type=&quot;radio&quot;]',&quot;#media-items&quot;).live(&quot;click&quot;,function(){var b=a(this).closest(&quot;tr&quot;);if(a(b).hasClass(&quot;align&quot;)){setUserSetting(&quot;align&quot;,a(this).val())}else{if(a(b).hasClass(&quot;image-size&quot;)){setUserSetting(&quot;imgsize&quot;,a(this).val())}}});a(&quot;button.button&quot;,&quot;#media-items&quot;).live(&quot;click&quot;,function(){var b=this.className||&quot;&quot;;b=b.match(/url([^ '&quot;]+)/);if(b&amp;&amp;b[1]){setUserSetting(&quot;u
 rlbutton&quot;,b[1]);a(this).siblings(&quot;.urlfield&quot;).val(a(this).attr(&quot;title&quot;))}})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.dev.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -106,7 +106,7 @@
</span><span class="cx">                                 inputs.title.val( ed.dom.getAttrib(e, 'title') );
</span><span class="cx">                                 // Set open in new tab.
</span><span class="cx">                                 if ( &quot;_blank&quot; == ed.dom.getAttrib(e, 'target') )
</span><del>-                                        inputs.openInNewTab.attr('checked','checked');
</del><ins>+                                        inputs.openInNewTab.prop('checked', true);
</ins><span class="cx">                                 // Update save prompt.
</span><span class="cx">                                 inputs.submit.val( wpLinkL10n.update );
</span><span class="cx"> 
</span><span class="lines">@@ -139,7 +139,7 @@
</span><span class="cx">                         return {
</span><span class="cx">                                 href : inputs.url.val(),
</span><span class="cx">                                 title : inputs.title.val(),
</span><del>-                                target : inputs.openInNewTab.attr('checked') ? '_blank' : ''
</del><ins>+                                target : inputs.openInNewTab.prop('checked') ? '_blank' : ''
</ins><span class="cx">                         };
</span><span class="cx">                 },
</span><span class="cx"> 
</span><span class="lines">@@ -578,4 +578,4 @@
</span><span class="cx">         });
</span><span class="cx"> 
</span><span class="cx">         $(document).ready( wpLink.init );
</span><del>-})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+})(jQuery);
</ins></span></pre></div>
<a id="trunkwpincludesjstinymcepluginswplinkjswplinkjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-includes/js/tinymce/plugins/wplink/js/wplink.js        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var wpLink;(function(f){var b={},e={},d,a,c;wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:&quot;&quot;,textarea:function(){return edCanvas},init:function(){b.dialog=f(&quot;#wp-link&quot;);b.submit=f(&quot;#wp-link-submit&quot;);b.url=f(&quot;#url-field&quot;);b.title=f(&quot;#link-title-field&quot;);b.openInNewTab=f(&quot;#link-target-checkbox&quot;);b.search=f(&quot;#search-field&quot;);e.search=new a(f(&quot;#search-results&quot;));e.recent=new a(f(&quot;#most-recent-results&quot;));e.elements=f(&quot;.query-results&quot;,b.dialog);b.dialog.keydown(wpLink.keydown);b.dialog.keyup(wpLink.keyup);b.submit.click(function(g){wpLink.update();g.preventDefault()});f(&quot;#wp-link-cancel&quot;).click(wpLink.close);f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpd
 ialogrefresh&quot;,wpLink.refresh);b.dialog.bind(&quot;wpdialogbeforeopen&quot;,wpLink.beforeOpen);b.dialog.bind(&quot;wpdialogclose&quot;,wpLink.onClose)},beforeOpen:function(){wpLink.range=null;if(!wpLink.isMCE()&amp;&amp;document.selection){wpLink.textarea().focus();wpLink.range=document.selection.createRange()}},open:function(){if(!b.dialog.data(&quot;wpdialog&quot;)){b.dialog.wpdialog({title:wpLinkL10n.title,width:480,height:&quot;auto&quot;,modal:true,dialogClass:&quot;wp-dialog&quot;,zIndex:300000})}b.dialog.wpdialog(&quot;open&quot;)},isMCE:function(){return tinyMCEPopup&amp;&amp;(d=tinyMCEPopup.editor)&amp;&amp;!d.isHidden()},refresh:function(){e.search.refresh();e.recent.refresh();if(wpLink.isMCE()){wpLink.mceRefresh()}else{wpLink.setDefaultValues()}b.url.focus()[0].select();if(!e.recent.ul.children().length){e.recent.ajax()}},mceRefresh:function(){var g;d=tinyMCEPopup.editor;tinyMCEPopup.restoreSelection();if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;))
 {b.url.val(g.href);b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.attr(&quot;checked&quot;,&quot;checked&quot;)}b.submit.val(wpLinkL10n.update)}else{wpLink.setDefaultValues()}tinyMCEPopup.storeSelection()},close:function(){if(wpLink.isMCE()){tinyMCEPopup.close()}else{b.dialog.wpdialog(&quot;close&quot;)}},onClose:function(){if(!wpLink.isMCE()){wpLink.textarea().focus();if(wpLink.range){wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select()}}},getAttrs:function(){return{href:b.url.val(),title:b.title.val(),target:b.openInNewTab.attr(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;}},update:function(){if(wpLink.isMCE()){wpLink.mceUpdate()}else{wpLink.htmlUpdate()}},htmlUpdate:function(){var i,j,l,h,k,g=wpLink.textarea();if(!g){return}i=wpLink.getAttrs();if(!i.href||i.href==&quot;http://&quot;){return}j='&lt;a href=&quot;'+i.href+'&quot;';if(i.title){j+=' title=&quot;'+i.t
 itle+'&quot;'}if(i.target){j+=' target=&quot;'+i.target+'&quot;'}j+=&quot;&gt;&quot;;if(typeof g.selectionStart!==&quot;undefined&quot;){l=g.selectionStart;h=g.selectionEnd;selection=g.value.substring(l,h);j=j+selection+&quot;&lt;/a&gt;&quot;;k=l+j.length;if(l==h){k-=&quot;&lt;/a&gt;&quot;.length}g.value=g.value.substring(0,l)+j+g.value.substring(h,g.value.length);g.selectionStart=g.selectionEnd=k}else{if(document.selection&amp;&amp;wpLink.range){g.focus();wpLink.range.text=j+wpLink.range.text+&quot;&lt;/a&gt;&quot;;wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select();wpLink.range=null}}wpLink.close();g.focus()},mceUpdate:function(){var h=tinyMCEPopup.editor,i=wpLink.getAttrs(),j,g;tinyMCEPopup.restoreSelection();j=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href||i.href==&quot;http://&quot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCE
 Popup.execCommand(&quot;mceEndUndoLevel&quot;);wpLink.close()}return}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(j==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});tinymce.each(h.dom.select(&quot;a&quot;),function(k){if(h.dom.getAttrib(k,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){j=k;h.dom.setAttribs(j,i)}});if(f(j).text()==&quot;#mce_temp_url#&quot;){h.dom.remove(j);j=null}}else{h.dom.setAttribs(j,i)}if(j&amp;&amp;(j.childNodes.length!=1||j.firstChild.nodeName!=&quot;IMG&quot;)){h.focus();h.selection.select(j);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);wpLink.close()},updateFields:function(i,h,g){b.url.val(h.children(&quot;.item-permalink&quot;).val());b.title.val(h.hasClass(&quot;no-title&quot;)?&quot;&quot;:h.children(&quot;.item-title&quot;).text());if(g&amp;&amp;g.type==&quot;click
 &quot;){b.url.focus()}},setDefaultValues:function(){b.url.val(&quot;http://&quot;);b.title.val(&quot;&quot;);b.submit.val(wpLinkL10n.save)},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.hide();e.search.show();if(wpLink.lastSearch==g){return}wpLink.lastSearch=g;i=h.siblings(&quot;img.waiting&quot;).show();e.search.change(g);e.search.ajax(function(){i.hide()})}else{e.search.hide();e.recent.show()}},next:function(){e.search.next();e.recent.next()},prev:function(){e.search.prev();e.recent.prev()},keydown:function(i){var h,g=f.ui.keyCode;switch(i.which){case g.UP:h=&quot;prev&quot;;case g.DOWN:h=h||&quot;next&quot;;clearInterval(wpLink.keyInterval);wpLink[h]();wpLink.keyInterval=setInterval(wpLink[h],wpLink.keySensitivity);break;default:return}i.preventDefault()},keyup:function(h){var g=f.ui.keyCode;switch(h.which){case g.ESCAPE:wpLink.close();break;case g.UP:case g.DOWN:clearInterval(wpLink.keyInterval);break;default:return}h.preventDefault(
 )},delayedCallback:function(i,g){var l,k,j,h;if(!g){return i}setTimeout(function(){if(k){return i.apply(h,j)}l=true},g);return function(){if(l){return i.apply(this,arguments)}j=arguments;h=this;k=true}},toggleInternalLinking:function(h){var g=f(&quot;#search-panel&quot;),i=b.dialog.wpdialog(&quot;widget&quot;),k=!g.is(&quot;:visible&quot;),j=f(window);f(this).toggleClass(&quot;toggle-arrow-active&quot;,k);b.dialog.height(&quot;auto&quot;);g.slideToggle(300,function(){setUserSetting(&quot;wplink&quot;,k?&quot;1&quot;:&quot;0&quot;);b[k?&quot;search&quot;:&quot;url&quot;].focus();var l=j.scrollTop(),o=i.offset().top,m=o+i.outerHeight(),n=m-j.height();if(n&gt;l){i.animate({top:n&lt;o?o-n:l},200)}});h.preventDefault()}};a=function(i,h){var g=this;this.element=i;this.ul=i.children(&quot;ul&quot;);this.waiting=i.find(&quot;.river-waiting&quot;);this.change(h);this.refresh();i.scroll(function(){g.maybeLoad()});i.delegate(&quot;li&quot;,&quot;click&quot;,function(j){g.select(f(this)
 ,j)})};f.extend(a.prototype,{refresh:function(){this.deselect();this.visible=this.element.is(&quot;:visible&quot;)},show:function(){if(!this.visible){this.deselect();this.element.show();this.visible=true}},hide:function(){this.element.hide();this.visible=false},select:function(h,k){var j,i,l,g;if(h.hasClass(&quot;unselectable&quot;)||h==this.selected){return}this.deselect();this.selected=h.addClass(&quot;selected&quot;);j=h.outerHeight();i=this.element.height();l=h.position().top;g=this.element.scrollTop();if(l&lt;0){this.element.scrollTop(g+l)}else{if(l+j&gt;i){this.element.scrollTop(g+l-i+j)}}this.element.trigger(&quot;river-select&quot;,[h,k,this])},deselect:function(){if(this.selected){this.selected.removeClass(&quot;selected&quot;)}this.selected=false},prev:function(){if(!this.visible){return}var g;if(this.selected){g=this.selected.prev(&quot;li&quot;);if(g.length){this.select(g)}}},next:function(){if(!this.visible){return}var g=this.selected?this.selected.next(&quot;li
 &quot;):f(&quot;li:not(.unselectable):first&quot;,this.element);if(g.length){this.select(g)}},ajax:function(j){var h=this,i=this.query.page==1?0:wpLink.minRiverAJAXDuration,g=wpLink.delayedCallback(function(k,l){h.process(k,l);if(j){j(k,l)}},i);this.query.ajax(g)},change:function(g){if(this.query&amp;&amp;this._search==g){return}this._search=g;this.query=new c(g);this.element.scrollTop(0)},process:function(h,l){var i=&quot;&quot;,j=true,g=&quot;&quot;,k=l.page==1;if(!h){if(k){i+='&lt;li class=&quot;unselectable&quot;&gt;&lt;span class=&quot;item-title&quot;&gt;&lt;em&gt;'+wpLinkL10n.noMatchesFound+&quot;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&quot;}}else{f.each(h,function(){g=j?&quot;alternate&quot;:&quot;&quot;;g+=this[&quot;title&quot;]?&quot;&quot;:&quot; no-title&quot;;i+=g?'&lt;li class=&quot;'+g+'&quot;&gt;':&quot;&lt;li&gt;&quot;;i+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';i+='&lt;span cla
 ss=&quot;item-title&quot;&gt;';i+=this[&quot;title&quot;]?this[&quot;title&quot;]:wpLinkL10n.noTitle;i+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;j=!j})}this.ul[k?&quot;html&quot;:&quot;append&quot;](i)},maybeLoad:function(){var h=this,i=this.element,g=i.scrollTop()+i.height();if(!this.query.ready()||g&lt;this.ul.height()-wpLink.riverBottomThreshold){return}setTimeout(function(){var j=i.scrollTop(),k=j+i.height();if(!h.query.ready()||k&lt;h.ul.height()-wpLink.riverBottomThreshold){return}h.waiting.show();i.scrollTop(j+h.waiting.outerHeight());h.ajax(function(){h.waiting.hide()})},wpLink.timeToTriggerRiver)}});c=function(g){this.page=1;this.allLoaded=false;this.querying=false;this.search=g};f.extend(c.prototype,{ready:function(){return !(this.querying||this.allLoaded)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page,_ajax_linking_nonce:f(&quot;#_ajax_linking_nonce&quot;).va
 l()};if(this.search){h.search=this.search}this.querying=true;f.post(ajaxurl,h,function(j){g.page++;g.querying=false;g.allLoaded=!j;i(j,h)},&quot;json&quot;)}});f(document).ready(wpLink.init)})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var wpLink;(function(f){var b={},e={},d,a,c;wpLink={timeToTriggerRiver:150,minRiverAJAXDuration:200,riverBottomThreshold:5,keySensitivity:100,lastSearch:&quot;&quot;,textarea:function(){return edCanvas},init:function(){b.dialog=f(&quot;#wp-link&quot;);b.submit=f(&quot;#wp-link-submit&quot;);b.url=f(&quot;#url-field&quot;);b.title=f(&quot;#link-title-field&quot;);b.openInNewTab=f(&quot;#link-target-checkbox&quot;);b.search=f(&quot;#search-field&quot;);e.search=new a(f(&quot;#search-results&quot;));e.recent=new a(f(&quot;#most-recent-results&quot;));e.elements=f(&quot;.query-results&quot;,b.dialog);b.dialog.keydown(wpLink.keydown);b.dialog.keyup(wpLink.keyup);b.submit.click(function(g){wpLink.update();g.preventDefault()});f(&quot;#wp-link-cancel&quot;).click(wpLink.close);f(&quot;#internal-toggle&quot;).click(wpLink.toggleInternalLinking);e.elements.bind(&quot;river-select&quot;,wpLink.updateFields);b.search.keyup(wpLink.searchInternalLinks);b.dialog.bind(&quot;wpd
 ialogrefresh&quot;,wpLink.refresh);b.dialog.bind(&quot;wpdialogbeforeopen&quot;,wpLink.beforeOpen);b.dialog.bind(&quot;wpdialogclose&quot;,wpLink.onClose)},beforeOpen:function(){wpLink.range=null;if(!wpLink.isMCE()&amp;&amp;document.selection){wpLink.textarea().focus();wpLink.range=document.selection.createRange()}},open:function(){if(!b.dialog.data(&quot;wpdialog&quot;)){b.dialog.wpdialog({title:wpLinkL10n.title,width:480,height:&quot;auto&quot;,modal:true,dialogClass:&quot;wp-dialog&quot;,zIndex:300000})}b.dialog.wpdialog(&quot;open&quot;)},isMCE:function(){return tinyMCEPopup&amp;&amp;(d=tinyMCEPopup.editor)&amp;&amp;!d.isHidden()},refresh:function(){e.search.refresh();e.recent.refresh();if(wpLink.isMCE()){wpLink.mceRefresh()}else{wpLink.setDefaultValues()}b.url.focus()[0].select();if(!e.recent.ul.children().length){e.recent.ajax()}},mceRefresh:function(){var g;d=tinyMCEPopup.editor;tinyMCEPopup.restoreSelection();if(g=d.dom.getParent(d.selection.getNode(),&quot;A&quot;))
 {b.url.val(g.href);b.title.val(d.dom.getAttrib(g,&quot;title&quot;));if(&quot;_blank&quot;==d.dom.getAttrib(g,&quot;target&quot;)){b.openInNewTab.prop(&quot;checked&quot;,true)}b.submit.val(wpLinkL10n.update)}else{wpLink.setDefaultValues()}tinyMCEPopup.storeSelection()},close:function(){if(wpLink.isMCE()){tinyMCEPopup.close()}else{b.dialog.wpdialog(&quot;close&quot;)}},onClose:function(){if(!wpLink.isMCE()){wpLink.textarea().focus();if(wpLink.range){wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select()}}},getAttrs:function(){return{href:b.url.val(),title:b.title.val(),target:b.openInNewTab.prop(&quot;checked&quot;)?&quot;_blank&quot;:&quot;&quot;}},update:function(){if(wpLink.isMCE()){wpLink.mceUpdate()}else{wpLink.htmlUpdate()}},htmlUpdate:function(){var i,j,l,h,k,g=wpLink.textarea();if(!g){return}i=wpLink.getAttrs();if(!i.href||i.href==&quot;http://&quot;){return}j='&lt;a href=&quot;'+i.href+'&quot;';if(i.title){j+=' title=&quot;'+i.title+'&quot;'}i
 f(i.target){j+=' target=&quot;'+i.target+'&quot;'}j+=&quot;&gt;&quot;;if(typeof g.selectionStart!==&quot;undefined&quot;){l=g.selectionStart;h=g.selectionEnd;selection=g.value.substring(l,h);j=j+selection+&quot;&lt;/a&gt;&quot;;k=l+j.length;if(l==h){k-=&quot;&lt;/a&gt;&quot;.length}g.value=g.value.substring(0,l)+j+g.value.substring(h,g.value.length);g.selectionStart=g.selectionEnd=k}else{if(document.selection&amp;&amp;wpLink.range){g.focus();wpLink.range.text=j+wpLink.range.text+&quot;&lt;/a&gt;&quot;;wpLink.range.moveToBookmark(wpLink.range.getBookmark());wpLink.range.select();wpLink.range=null}}wpLink.close();g.focus()},mceUpdate:function(){var h=tinyMCEPopup.editor,i=wpLink.getAttrs(),j,g;tinyMCEPopup.restoreSelection();j=h.dom.getParent(h.selection.getNode(),&quot;A&quot;);if(!i.href||i.href==&quot;http://&quot;){if(j){tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);g=h.selection.getBookmark();h.dom.remove(j,1);h.selection.moveToBookmark(g);tinyMCEPopup.execComma
 nd(&quot;mceEndUndoLevel&quot;);wpLink.close()}return}tinyMCEPopup.execCommand(&quot;mceBeginUndoLevel&quot;);if(j==null){h.getDoc().execCommand(&quot;unlink&quot;,false,null);tinyMCEPopup.execCommand(&quot;CreateLink&quot;,false,&quot;#mce_temp_url#&quot;,{skip_undo:1});tinymce.each(h.dom.select(&quot;a&quot;),function(k){if(h.dom.getAttrib(k,&quot;href&quot;)==&quot;#mce_temp_url#&quot;){j=k;h.dom.setAttribs(j,i)}});if(f(j).text()==&quot;#mce_temp_url#&quot;){h.dom.remove(j);j=null}}else{h.dom.setAttribs(j,i)}if(j&amp;&amp;(j.childNodes.length!=1||j.firstChild.nodeName!=&quot;IMG&quot;)){h.focus();h.selection.select(j);h.selection.collapse(0);tinyMCEPopup.storeSelection()}tinyMCEPopup.execCommand(&quot;mceEndUndoLevel&quot;);wpLink.close()},updateFields:function(i,h,g){b.url.val(h.children(&quot;.item-permalink&quot;).val());b.title.val(h.hasClass(&quot;no-title&quot;)?&quot;&quot;:h.children(&quot;.item-title&quot;).text());if(g&amp;&amp;g.type==&quot;click&quot;){b.url.f
 ocus()}},setDefaultValues:function(){b.url.val(&quot;http://&quot;);b.title.val(&quot;&quot;);b.submit.val(wpLinkL10n.save)},searchInternalLinks:function(){var h=f(this),i,g=h.val();if(g.length&gt;2){e.recent.hide();e.search.show();if(wpLink.lastSearch==g){return}wpLink.lastSearch=g;i=h.siblings(&quot;img.waiting&quot;).show();e.search.change(g);e.search.ajax(function(){i.hide()})}else{e.search.hide();e.recent.show()}},next:function(){e.search.next();e.recent.next()},prev:function(){e.search.prev();e.recent.prev()},keydown:function(i){var h,g=f.ui.keyCode;switch(i.which){case g.UP:h=&quot;prev&quot;;case g.DOWN:h=h||&quot;next&quot;;clearInterval(wpLink.keyInterval);wpLink[h]();wpLink.keyInterval=setInterval(wpLink[h],wpLink.keySensitivity);break;default:return}i.preventDefault()},keyup:function(h){var g=f.ui.keyCode;switch(h.which){case g.ESCAPE:wpLink.close();break;case g.UP:case g.DOWN:clearInterval(wpLink.keyInterval);break;default:return}h.preventDefault()},delayedCallb
 ack:function(i,g){var l,k,j,h;if(!g){return i}setTimeout(function(){if(k){return i.apply(h,j)}l=true},g);return function(){if(l){return i.apply(this,arguments)}j=arguments;h=this;k=true}},toggleInternalLinking:function(h){var g=f(&quot;#search-panel&quot;),i=b.dialog.wpdialog(&quot;widget&quot;),k=!g.is(&quot;:visible&quot;),j=f(window);f(this).toggleClass(&quot;toggle-arrow-active&quot;,k);b.dialog.height(&quot;auto&quot;);g.slideToggle(300,function(){setUserSetting(&quot;wplink&quot;,k?&quot;1&quot;:&quot;0&quot;);b[k?&quot;search&quot;:&quot;url&quot;].focus();var l=j.scrollTop(),o=i.offset().top,m=o+i.outerHeight(),n=m-j.height();if(n&gt;l){i.animate({top:n&lt;o?o-n:l},200)}});h.preventDefault()}};a=function(i,h){var g=this;this.element=i;this.ul=i.children(&quot;ul&quot;);this.waiting=i.find(&quot;.river-waiting&quot;);this.change(h);this.refresh();i.scroll(function(){g.maybeLoad()});i.delegate(&quot;li&quot;,&quot;click&quot;,function(j){g.select(f(this),j)})};f.extend
 (a.prototype,{refresh:function(){this.deselect();this.visible=this.element.is(&quot;:visible&quot;)},show:function(){if(!this.visible){this.deselect();this.element.show();this.visible=true}},hide:function(){this.element.hide();this.visible=false},select:function(h,k){var j,i,l,g;if(h.hasClass(&quot;unselectable&quot;)||h==this.selected){return}this.deselect();this.selected=h.addClass(&quot;selected&quot;);j=h.outerHeight();i=this.element.height();l=h.position().top;g=this.element.scrollTop();if(l&lt;0){this.element.scrollTop(g+l)}else{if(l+j&gt;i){this.element.scrollTop(g+l-i+j)}}this.element.trigger(&quot;river-select&quot;,[h,k,this])},deselect:function(){if(this.selected){this.selected.removeClass(&quot;selected&quot;)}this.selected=false},prev:function(){if(!this.visible){return}var g;if(this.selected){g=this.selected.prev(&quot;li&quot;);if(g.length){this.select(g)}}},next:function(){if(!this.visible){return}var g=this.selected?this.selected.next(&quot;li&quot;):f(&quot
 ;li:not(.unselectable):first&quot;,this.element);if(g.length){this.select(g)}},ajax:function(j){var h=this,i=this.query.page==1?0:wpLink.minRiverAJAXDuration,g=wpLink.delayedCallback(function(k,l){h.process(k,l);if(j){j(k,l)}},i);this.query.ajax(g)},change:function(g){if(this.query&amp;&amp;this._search==g){return}this._search=g;this.query=new c(g);this.element.scrollTop(0)},process:function(h,l){var i=&quot;&quot;,j=true,g=&quot;&quot;,k=l.page==1;if(!h){if(k){i+='&lt;li class=&quot;unselectable&quot;&gt;&lt;span class=&quot;item-title&quot;&gt;&lt;em&gt;'+wpLinkL10n.noMatchesFound+&quot;&lt;/em&gt;&lt;/span&gt;&lt;/li&gt;&quot;}}else{f.each(h,function(){g=j?&quot;alternate&quot;:&quot;&quot;;g+=this[&quot;title&quot;]?&quot;&quot;:&quot; no-title&quot;;i+=g?'&lt;li class=&quot;'+g+'&quot;&gt;':&quot;&lt;li&gt;&quot;;i+='&lt;input type=&quot;hidden&quot; class=&quot;item-permalink&quot; value=&quot;'+this[&quot;permalink&quot;]+'&quot; /&gt;';i+='&lt;span class=&quot;item-t
 itle&quot;&gt;';i+=this[&quot;title&quot;]?this[&quot;title&quot;]:wpLinkL10n.noTitle;i+='&lt;/span&gt;&lt;span class=&quot;item-info&quot;&gt;'+this[&quot;info&quot;]+&quot;&lt;/span&gt;&lt;/li&gt;&quot;;j=!j})}this.ul[k?&quot;html&quot;:&quot;append&quot;](i)},maybeLoad:function(){var h=this,i=this.element,g=i.scrollTop()+i.height();if(!this.query.ready()||g&lt;this.ul.height()-wpLink.riverBottomThreshold){return}setTimeout(function(){var j=i.scrollTop(),k=j+i.height();if(!h.query.ready()||k&lt;h.ul.height()-wpLink.riverBottomThreshold){return}h.waiting.show();i.scrollTop(j+h.waiting.outerHeight());h.ajax(function(){h.waiting.hide()})},wpLink.timeToTriggerRiver)}});c=function(g){this.page=1;this.allLoaded=false;this.querying=false;this.search=g};f.extend(c.prototype,{ready:function(){return !(this.querying||this.allLoaded)},ajax:function(i){var g=this,h={action:&quot;wp-link-ajax&quot;,page:this.page,_ajax_linking_nonce:f(&quot;#_ajax_linking_nonce&quot;).val()};if(this.se
 arch){h.search=this.search}this.querying=true;f.post(ajaxurl,h,function(j){g.page++;g.querying=false;g.allLoaded=!j;i(j,h)},&quot;json&quot;)}});f(document).ready(wpLink.init)})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (18026 => 18027)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-05-24 21:58:01 UTC (rev 18026)
+++ trunk/wp-includes/script-loader.php        2011-05-25 01:04:12 UTC (rev 18027)
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'utils', &quot;/wp-admin/js/utils$suffix.js&quot;, false, '20101110' );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'common', &quot;/wp-admin/js/common$suffix.js&quot;, array('jquery', 'hoverIntent', 'utils'), '20110520' );
</del><ins>+        $scripts-&gt;add( 'common', &quot;/wp-admin/js/common$suffix.js&quot;, array('jquery', 'hoverIntent', 'utils'), '20110524' );
</ins><span class="cx">         $scripts-&gt;add_data( 'common', 'group', 1 );
</span><span class="cx">         $scripts-&gt;localize( 'common', 'commonL10n', array(
</span><span class="cx">                 'warnDelete' =&gt; __(&quot;You are about to permanently delete the selected items.\n  'Cancel' to stop, 'OK' to delete.&quot;),
</span><span class="lines">@@ -109,7 +109,7 @@
</span><span class="cx">                 'l10n_print_after' =&gt; 'try{convertEntities(wpAjax);}catch(e){};'
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20110515' );
</del><ins>+        $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20110524' );
</ins><span class="cx">         $scripts-&gt;add_data( 'autosave', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20110521' );
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'swfupload-all', '/wp-includes/js/swfupload/swfupload-all.js', array(), '2201');
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'swfupload-handlers', &quot;/wp-includes/js/swfupload/handlers$suffix.js&quot;, array('swfupload-all', 'jquery'), '2201-20110512');
</del><ins>+        $scripts-&gt;add( 'swfupload-handlers', &quot;/wp-includes/js/swfupload/handlers$suffix.js&quot;, array('swfupload-all', 'jquery'), '2201-20110524');
</ins><span class="cx">         $max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) &lt; (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;
</span><span class="cx">         if ( empty($max_upload_size) )
</span><span class="cx">                 $max_upload_size = __('not configured');
</span><span class="lines">@@ -266,13 +266,13 @@
</span><span class="cx">                 'l10n_print_after' =&gt; 'try{convertEntities(pwsL10n);}catch(e){};'
</span><span class="cx">         ) );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'user-profile', &quot;/wp-admin/js/user-profile$suffix.js&quot;, array( 'jquery', 'password-strength-meter' ), '20110429' );
</del><ins>+        $scripts-&gt;add( 'user-profile', &quot;/wp-admin/js/user-profile$suffix.js&quot;, array( 'jquery', 'password-strength-meter' ), '20110524' );
</ins><span class="cx">         $scripts-&gt;add_data( 'user-profile', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'admin-bar', &quot;/wp-includes/js/admin-bar$suffix.js&quot;, false, '20110131' );
</span><span class="cx">         $scripts-&gt;add_data( 'admin-bar', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wplink', &quot;/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js&quot;, array( 'jquery', 'wpdialogs' ), '20110501' );
</del><ins>+        $scripts-&gt;add( 'wplink', &quot;/wp-includes/js/tinymce/plugins/wplink/js/wplink$suffix.js&quot;, array( 'jquery', 'wpdialogs' ), '20110524' );
</ins><span class="cx">         $scripts-&gt;add_data( 'wplink', 'group', 1 );
</span><span class="cx">         $scripts-&gt;localize( 'wplink', 'wpLinkL10n', array(
</span><span class="cx">                 'title' =&gt; __('Insert/edit link'),
</span><span class="lines">@@ -312,7 +312,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'admin-custom-fields', &quot;/wp-admin/js/custom-fields$suffix.js&quot;, array('wp-lists'), '20110429' );
</span><span class="cx">                 $scripts-&gt;add_data( 'admin-custom-fields', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'admin-comments', &quot;/wp-admin/js/edit-comments$suffix.js&quot;, array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'jquery-query'), '20110521' );
</del><ins>+                $scripts-&gt;add( 'admin-comments', &quot;/wp-admin/js/edit-comments$suffix.js&quot;, array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'jquery-query'), '20110524' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'admin-comments', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'admin-comments', 'adminCommentsL10n', array(
</span><span class="cx">                         'hotkeys_highlight_first' =&gt; isset($_GET['hotkeys_highlight_first']),
</span><span class="lines">@@ -321,13 +321,13 @@
</span><span class="cx">                         'reply' =&gt; __( 'Reply' )
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'xfn', &quot;/wp-admin/js/xfn$suffix.js&quot;, array('jquery'), '20100403' );
</del><ins>+                $scripts-&gt;add( 'xfn', &quot;/wp-admin/js/xfn$suffix.js&quot;, array('jquery'), '20110524' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'xfn', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), '20110518' );
</del><ins>+                $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), '20110524' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'postbox', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox'), '20110515' );
</del><ins>+                $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox'), '20110524' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'post', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'post', 'postL10n', array(
</span><span class="cx">                         'tagsUsed' =&gt;  __('Tags used on this post:'),
</span><span class="lines">@@ -356,7 +356,7 @@
</span><span class="cx">                         'l10n_print_after' =&gt; 'try{convertEntities(postL10n);}catch(e){};'
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'link', &quot;/wp-admin/js/link$suffix.js&quot;, array('wp-lists', 'postbox'), '20090526' );
</del><ins>+                $scripts-&gt;add( 'link', &quot;/wp-admin/js/link$suffix.js&quot;, array('wp-lists', 'postbox'), '20110524' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'link', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'comment', &quot;/wp-admin/js/comment$suffix.js&quot;, array('jquery'), '20110429' );
</span><span class="lines">@@ -385,7 +385,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'theme-preview', &quot;/wp-admin/js/theme-preview$suffix.js&quot;, array( 'thickbox', 'jquery' ), '20100407' );
</span><span class="cx">                 $scripts-&gt;add_data( 'theme-preview', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20110429' );
</del><ins>+                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20110524' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'inline-edit-post', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'inline-edit-post', 'inlineEditL10n', array(
</span><span class="cx">                         'error' =&gt; __('Error while saving the changes.'),
</span><span class="lines">@@ -422,7 +422,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'media', &quot;/wp-admin/js/media$suffix.js&quot;, array( 'jquery-ui-draggable' ), '20101022' );
</span><span class="cx">                 $scripts-&gt;add_data( 'media', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'image-edit', &quot;/wp-admin/js/image-edit$suffix.js&quot;, array('jquery', 'json2', 'imgareaselect'), '20110429' );
</del><ins>+                $scripts-&gt;add( 'image-edit', &quot;/wp-admin/js/image-edit$suffix.js&quot;, array('jquery', 'json2', 'imgareaselect'), '20110524' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'image-edit', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'set-post-thumbnail', &quot;/wp-admin/js/set-post-thumbnail$suffix.js&quot;, array( 'jquery' ), '20100518' );
</span><span class="lines">@@ -436,7 +436,7 @@
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><span class="cx">                 // Navigation Menus
</span><del>-                $scripts-&gt;add( 'nav-menu', &quot;/wp-admin/js/nav-menu$suffix.js&quot;, array('jquery-ui-sortable'), '20110429' );
</del><ins>+                $scripts-&gt;add( 'nav-menu', &quot;/wp-admin/js/nav-menu$suffix.js&quot;, array('jquery-ui-sortable'), '20110524' );
</ins><span class="cx">                 $scripts-&gt;localize( 'nav-menu', 'navMenuL10n', array(
</span><span class="cx">                         'noResultsFound' =&gt; _x('No results found.', 'search results'),
</span><span class="cx">                         'warnDeleteMenu' =&gt; __( &quot;You are about to permanently delete this menu. \n 'Cancel' to stop, 'OK' to delete.&quot; ),
</span></span></pre>
</div>
</div>

</body>
</html>