<!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>[17777] trunk: Add quotes to [value=&quot;some&quot;] selectors, see #16426</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/17777">17777</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-04-30 02:15:08 +0000 (Sat, 30 Apr 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Add quotes to [value=&quot;some&quot;] selectors, see <a href="http://trac.wordpress.org/ticket/16426">#16426</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjscommentdevjs">trunk/wp-admin/js/comment.dev.js</a></li>
<li><a href="#trunkwpadminjscommentjs">trunk/wp-admin/js/comment.js</a></li>
<li><a href="#trunkwpadminjscustomfieldsdevjs">trunk/wp-admin/js/custom-fields.dev.js</a></li>
<li><a href="#trunkwpadminjscustomfieldsjs">trunk/wp-admin/js/custom-fields.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="#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="#trunkwpadminjstagsdevjs">trunk/wp-admin/js/tags.dev.js</a></li>
<li><a href="#trunkwpadminjstagsjs">trunk/wp-admin/js/tags.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="#trunkwpincludesjswplistsdevjs">trunk/wp-includes/js/wp-lists.dev.js</a></li>
<li><a href="#trunkwpincludesjswplistsjs">trunk/wp-includes/js/wp-lists.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="trunkwpadminjscommentdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/comment.dev.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/comment.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/comment.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -36,7 +36,7 @@
</span><span class="cx">                 $('.edit-timestamp').show();
</span><span class="cx">                 $('#timestamp').html(
</span><span class="cx">                         commentL10n.submittedOn + ' &lt;b&gt;' +
</span><del>-                        $( '#mm option[value=' + mm + ']' ).text() + ' ' +
</del><ins>+                        $( '#mm option[value=&quot;' + mm + '&quot;]' ).text() + ' ' +
</ins><span class="cx">                         jj + ', ' +
</span><span class="cx">                         aa + ' @ ' +
</span><span class="cx">                         hh + ':' +
</span><span class="lines">@@ -44,4 +44,4 @@
</span><span class="cx">                 );
</span><span class="cx">                 return false;
</span><span class="cx">         });
</span><del>-});
</del><span class="cx">\ No newline at end of file
</span><ins>+});
</ins></span></pre></div>
<a id="trunkwpadminjscommentjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/comment.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/comment.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/comment.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(b){var a=b(&quot;#timestamp&quot;).html();b(&quot;.edit-timestamp&quot;).click(function(){if(b(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){b(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);b(&quot;.edit-timestamp&quot;).hide()}return false});b(&quot;.cancel-timestamp&quot;).click(function(){b(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);b(&quot;#mm&quot;).val(b(&quot;#hidden_mm&quot;).val());b(&quot;#jj&quot;).val(b(&quot;#hidden_jj&quot;).val());b(&quot;#aa&quot;).val(b(&quot;#hidden_aa&quot;).val());b(&quot;#hh&quot;).val(b(&quot;#hidden_hh&quot;).val());b(&quot;#mn&quot;).val(b(&quot;#hidden_mn&quot;).val());b(&quot;#timestamp&quot;).html(a);b(&quot;.edit-timestamp&quot;).show();return false});b(&quot;.save-timestamp&quot;).click(function(){var g=b(&quot;#aa&quot;).val(),h=b(&quot;#mm&quot;).val(),d=b(&quot;#jj&quot;).val(),c=b(&quot;#hh&quot;).val(),f=b(&quot;#mn&quot;).val(),e=new Date(g,h-1,d,c,f);i
 f(e.getFullYear()!=g||(1+e.getMonth())!=h||e.getDate()!=d||e.getMinutes()!=f){b(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{b(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}b(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);b(&quot;.edit-timestamp&quot;).show();b(&quot;#timestamp&quot;).html(commentL10n.submittedOn+&quot; &lt;b&gt;&quot;+b(&quot;#mm option[value=&quot;+h+&quot;]&quot;).text()+&quot; &quot;+d+&quot;, &quot;+g+&quot; @ &quot;+c+&quot;:&quot;+f+&quot;&lt;/b&gt; &quot;);return false})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(b){var a=b(&quot;#timestamp&quot;).html();b(&quot;.edit-timestamp&quot;).click(function(){if(b(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){b(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);b(&quot;.edit-timestamp&quot;).hide()}return false});b(&quot;.cancel-timestamp&quot;).click(function(){b(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);b(&quot;#mm&quot;).val(b(&quot;#hidden_mm&quot;).val());b(&quot;#jj&quot;).val(b(&quot;#hidden_jj&quot;).val());b(&quot;#aa&quot;).val(b(&quot;#hidden_aa&quot;).val());b(&quot;#hh&quot;).val(b(&quot;#hidden_hh&quot;).val());b(&quot;#mn&quot;).val(b(&quot;#hidden_mn&quot;).val());b(&quot;#timestamp&quot;).html(a);b(&quot;.edit-timestamp&quot;).show();return false});b(&quot;.save-timestamp&quot;).click(function(){var g=b(&quot;#aa&quot;).val(),h=b(&quot;#mm&quot;).val(),d=b(&quot;#jj&quot;).val(),c=b(&quot;#hh&quot;).val(),f=b(&quot;#mn&quot;).val(),e=new Date(g,h-1,d,c,f);i
 f(e.getFullYear()!=g||(1+e.getMonth())!=h||e.getDate()!=d||e.getMinutes()!=f){b(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{b(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}b(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);b(&quot;.edit-timestamp&quot;).show();b(&quot;#timestamp&quot;).html(commentL10n.submittedOn+&quot; &lt;b&gt;&quot;+b('#mm option[value=&quot;'+h+'&quot;]').text()+&quot; &quot;+d+&quot;, &quot;+g+&quot; @ &quot;+c+&quot;:&quot;+f+&quot;&lt;/b&gt; &quot;);return false})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjscustomfieldsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/custom-fields.dev.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-fields.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/custom-fields.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -2,7 +2,7 @@
</span><span class="cx">         var before, addBefore, addAfter, delBefore;
</span><span class="cx"> 
</span><span class="cx">         before = function() {
</span><del>-                var nonce = $('#newmeta [name=_ajax_nonce]').val(), postId = $('#post_ID').val();
</del><ins>+                var nonce = $('#newmeta [name=&quot;_ajax_nonce&quot;]').val(), postId = $('#post_ID').val();
</ins><span class="cx">                 if ( !nonce || !postId ) { return false; }
</span><span class="cx">                 return [nonce,postId];
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkwpadminjscustomfieldsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/custom-fields.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-fields.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/custom-fields.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(d){var c,b,e,a;c=function(){var g=d(&quot;#newmeta [name=_ajax_nonce]&quot;).val(),f=d(&quot;#post_ID&quot;).val();if(!g||!f){return false}return[g,f]};b=function(g){var f=c();if(!f){return false}g.data=g.data.replace(/_ajax_nonce=[a-f0-9]+/,&quot;_ajax_nonce=&quot;+f[0])+&quot;&amp;post_id=&quot;+f[1];return g};e=function(j,i){var f=d(&quot;postid&quot;,j).text(),g;if(!f){return}d(&quot;#post_ID&quot;).attr(&quot;name&quot;,&quot;post_ID&quot;).val(f);g=d(&quot;#hiddenaction&quot;);if(&quot;post&quot;==g.val()){g.val(&quot;postajaxpost&quot;)}};a=function(g){var f=c();if(!f){return false}g.data._ajax_nonce=f[0];g.data.post_id=f[1];return g};d(&quot;#the-list&quot;).wpList({addBefore:b,addAfter:e,delBefore:a}).find(&quot;.updatemeta, .deletemeta&quot;).attr(&quot;type&quot;,&quot;button&quot;)});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(d){var c,b,e,a;c=function(){var g=d('#newmeta [name=&quot;_ajax_nonce&quot;]').val(),f=d(&quot;#post_ID&quot;).val();if(!g||!f){return false}return[g,f]};b=function(g){var f=c();if(!f){return false}g.data=g.data.replace(/_ajax_nonce=[a-f0-9]+/,&quot;_ajax_nonce=&quot;+f[0])+&quot;&amp;post_id=&quot;+f[1];return g};e=function(j,i){var f=d(&quot;postid&quot;,j).text(),g;if(!f){return}d(&quot;#post_ID&quot;).attr(&quot;name&quot;,&quot;post_ID&quot;).val(f);g=d(&quot;#hiddenaction&quot;);if(&quot;post&quot;==g.val()){g.val(&quot;postajaxpost&quot;)}};a=function(g){var f=c();if(!f){return false}g.data._ajax_nonce=f[0];g.data.post_id=f[1];return g};d(&quot;#the-list&quot;).wpList({addBefore:b,addAfter:e,delBefore:a}).find(&quot;.updatemeta, .deletemeta&quot;).attr(&quot;type&quot;,&quot;button&quot;)});
</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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/edit-comments.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/edit-comments.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx">                 settings.data._per_page = perPageInput.val() || 0;
</span><span class="cx">                 settings.data._page = pageInput.val() || 0;
</span><span class="cx">                 settings.data._url = document.location.href;
</span><del>-                settings.data.comment_status = $('input[name=comment_status]', '#comments-form').val();
</del><ins>+                settings.data.comment_status = $('input[name=&quot;comment_status&quot;]', '#comments-form').val();
</ins><span class="cx"> 
</span><span class="cx">                 if ( cl.indexOf(':trash=1') != -1 )
</span><span class="cx">                         action = 'trash';
</span><span class="lines">@@ -216,8 +216,8 @@
</span><span class="cx">         };
</span><span class="cx"> 
</span><span class="cx">         var refillTheExtraList = function(ev) {
</span><del>-                // var args = $.query.get(), total_pages = listTable.get_total_pages(), per_page = $('input[name=_per_page]', '#comments-form').val(), r;
-                var args = $.query.get(), total_pages = $('.total-pages').text(), per_page = $('input[name=_per_page]', '#comments-form').val(), r;
</del><ins>+                // var args = $.query.get(), total_pages = listTable.get_total_pages(), per_page = $('input[name=&quot;_per_page&quot;]', '#comments-form').val(), r;
+                var args = $.query.get(), total_pages = $('.total-pages').text(), per_page = $('input[name=&quot;_per_page&quot;]', '#comments-form').val(), r;
</ins><span class="cx"> 
</span><span class="cx">                 if (! args.paged)
</span><span class="cx">                         args.paged = 1;
</span><span class="lines">@@ -439,7 +439,7 @@
</span><span class="cx">                 post.content = $('#replycontent').val();
</span><span class="cx">                 post.id = post.comment_post_ID;
</span><span class="cx">                 post.comments_listing = this.comments_listing;
</span><del>-                post.p = $('[name=p]').val();
</del><ins>+                post.p = $('[name=&quot;p&quot;]').val();
</ins><span class="cx"> 
</span><span class="cx">                 $.ajax({
</span><span class="cx">                         type : 'POST',
</span><span class="lines">@@ -535,7 +535,7 @@
</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='+value+']', scope).attr('selected', 'selected');
</del><ins>+                                $('option[value=&quot;' + value + '&quot;]', scope).attr('selected', 'selected');
</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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/edit-comments.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/edit-comments.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var theList,theExtraList,toggleWithKeyboard=false;(function(a){setCommentsList=function(){var d,f,i,m=0,h,j,e,l;d=a('input[name=&quot;_total&quot;]',&quot;#comments-form&quot;);f=a('input[name=&quot;_per_page&quot;]',&quot;#comments-form&quot;);i=a('input[name=&quot;_page&quot;]',&quot;#comments-form&quot;);h=function(o,n){var p=a(&quot;#&quot;+n.element);if(p.is(&quot;.unapproved&quot;)){p.find(&quot;div.comment_status&quot;).html(&quot;0&quot;)}else{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;+n.element).is(&quot;.&quot;+n.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;);g(q,s);k()})};j=function(r,v){var x=a(r.target).attr(&quot;className&quot;),o,p,q,u,w,t,s=false;r.data._total=d.val()||0
 ;r.data._per_page=f.val()||0;r.data._page=i.val()||0;r.data._url=document.location.href;r.data.comment_status=a(&quot;input[name=comment_status]&quot;,&quot;#comments-form&quot;).val();if(x.indexOf(&quot;:trash=1&quot;)!=-1){s=&quot;trash&quot;}else{if(x.indexOf(&quot;:spam=1&quot;)!=-1){s=&quot;spam&quot;}}if(s){o=x.replace(/.*?comment-([0-9]+).*/,&quot;$1&quot;);p=a(&quot;#comment-&quot;+o);note=a(&quot;#&quot;+s+&quot;-undo-holder&quot;).html();p.find(&quot;.check-column :checkbox&quot;).attr(&quot;checked&quot;,&quot;&quot;);if(p.siblings(&quot;#replyrow&quot;).length&amp;&amp;commentReply.cid==o){commentReply.close()}if(p.is(&quot;tr&quot;)){q=p.children(&quot;:visible&quot;).length;t=a(&quot;.author strong&quot;,p).text();u=a('&lt;tr id=&quot;undo-'+o+'&quot; class=&quot;undo un'+s+'&quot; style=&quot;display:none;&quot;&gt;&lt;td colspan=&quot;'+q+'&quot;&gt;'+note+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)}else{t=a(&quot;.comment-author&quot;,p).text();u=a('&lt;div id=&quot
 ;undo-'+o+'&quot; style=&quot;display:none;&quot; class=&quot;undo un'+s+'&quot;&gt;'+note+&quot;&lt;/div&gt;&quot;)}p.before(u);a(&quot;strong&quot;,&quot;#undo-&quot;+o).text(t+&quot; &quot;);w=a(&quot;.undo a&quot;,&quot;#undo-&quot;+o);w.attr(&quot;href&quot;,&quot;comment.php?action=un&quot;+s+&quot;comment&amp;c=&quot;+o+&quot;&amp;_wpnonce=&quot;+r.data._ajax_nonce);w.attr(&quot;className&quot;,&quot;delete:the-comment-list:comment-&quot;+o+&quot;::un&quot;+s+&quot;=1 vim-z vim-destructive&quot;);a(&quot;.avatar&quot;,p).clone().prependTo(&quot;#undo-&quot;+o+&quot; .&quot;+s+&quot;-undo-inside&quot;);w.click(function(){v.wpList.del(this);a(&quot;#undo-&quot;+o).css({backgroundColor:&quot;#ceb&quot;}).fadeOut(350,function(){a(this).remove();a(&quot;#comment-&quot;+o).css(&quot;backgroundColor&quot;,&quot;&quot;).fadeIn(300,function(){a(this).show()})});return false})}return r};e=function(n,o,p){if(o&lt;m){return}if(p){m=o}d.val(n.toString());a(&quot;span.total-type-co
 unt&quot;).each(function(){g(a(this),n)})};function k(t){var s=a(&quot;#dashboard_right_now&quot;),p,r,q,o;t=t||0;if(isNaN(t)||!s.length){return}p=a(&quot;span.total-count&quot;,s);r=a(&quot;span.approved-count&quot;,s);q=c(p);q=q+t;o=q-c(a(&quot;span.pending-count&quot;,s))-c(a(&quot;span.spam-count&quot;,s));g(p,q);g(r,o)}function c(o){var p=parseInt(o.html().replace(/[^0-9]+/g,&quot;&quot;),10);if(isNaN(p)){return 0}return p}function g(p,q){var o=&quot;&quot;;if(isNaN(q)){return}q=q&lt;1?&quot;0&quot;:q.toString();if(q.length&gt;3){while(q.length&gt;3){o=thousandsSeparator+q.substr(q.length-3)+o;q=q.substr(0,q.length-3)}q=q+o}p.html(q)}l=function(n,p){var u,q,s,w=a(p.target).parent().is(&quot;span.untrash&quot;),o=a(p.target).parent().is(&quot;span.unspam&quot;),v,t;function x(r){if(a(p.target).parent().is(&quot;span.&quot;+r)){return 1}else{if(a(&quot;#&quot;+p.element).is(&quot;.&quot;+r)){return -1}}return 0}v=x(&quot;spam&quot;);t=x(&quot;trash&quot;);if(w){t=-1}if(o)
 {v=-1}a(&quot;span.pending-count&quot;).each(function(){var r=a(this),z=c(r),y=a(&quot;#&quot;+p.element).is(&quot;.unapproved&quot;);if(a(p.target).parent().is(&quot;span.unapprove&quot;)||((w||o)&amp;&amp;y)){z=z+1}else{if(y){z=z-1}}if(z&lt;0){z=0}r.closest(&quot;#awaiting-mod&quot;)[0==z?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;count-0&quot;);g(r,z);k()});a(&quot;span.spam-count&quot;).each(function(){var r=a(this),y=c(r)+v;g(r,y)});a(&quot;span.trash-count&quot;).each(function(){var r=a(this),y=c(r)+t;g(r,y)});if(a(&quot;#dashboard_right_now&quot;).length){s=t?-1*t:0;k(s)}else{u=d.val()?parseInt(d.val(),10):0;u=u-v-t;if(u&lt;0){u=0}if((&quot;object&quot;==typeof n)&amp;&amp;m&lt;p.parsed.responses[0].supplemental.time){total_items_i18n=p.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(p.parsed.responses[0].supplemental.total_pages_i18n);a
 (&quot;.tablenav-pages&quot;).find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,p.parsed.responses[0].supplemental.total_pages==a(&quot;.current-page&quot;).val())}e(u,p.parsed.responses[0].supplemental.time,true)}else{e(u,n,false)}}if(!theExtraList||theExtraList.size()==0||theExtraList.children().size()==0||w||o){return}theList.get(0).wpList.add(theExtraList.children(&quot;:eq(0)&quot;).remove().clone());b()};var b=function(s){var o=a.query.get(),n=a(&quot;.total-pages&quot;).text(),p=a(&quot;input[name=_per_page]&quot;,&quot;#comments-form&quot;).val(),q;if(!o.paged){o.paged=1}if(o.paged&gt;n){return}if(s){theExtraList.empty();o.number=Math.min(8,p)}else{o.number=1;o.offset=Math.min(8,p)-1}o.no_placeholder=true;o.paged++;if(true===o.comment_type){o.comment_type=&quot;&quot;}o=a.extend(o,{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:&q
 uot;json&quot;,data:o,success:function(r){theExtraList.get(0).wpList.add(r.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:j,dimAfter:h,delAfter:l,addColor:&quot;none&quot;}).bind(&quot;wpListDelEnd&quot;,function(o,n){var p=n.element.replace(/[^0-9]+/g,&quot;&quot;);if(n.target.className.indexOf(&quot;:trash=1&quot;)!=-1||n.target.className.indexOf(&quot;:spam=1&quot;)!=-1){a(&quot;#undo-&quot;+p).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.preventDe
 fault();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;,&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 l=this,e,f,i,g,j=a(&quot;#comment-&quot;+b);l.close();l.cid=b;e=a(&quot;#replyrow&quot;);f=a(&quot;#inline-&quot;+b);i=l.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{a(&quot;#edithead, #savebtn&quot;,e).hide();a(&quot;#replyhead, #replybtn&quot;,e).show();j.after(e);a(&quot;#replyrow&quot;).fadeIn(300,function(){a(this).show()})}if(!a.browser.msie){a(&quot;#replycontainer&quot;).resizable({handles:&quot;s&quot;,axis:&quot;
 y&quot;,minHeight:80,stop:function(){a(&quot;#replycontainer&quot;).width(&quot;auto&quot;)}})}setTimeout(function(){var n,h,o,c,m;n=a(&quot;#replyrow&quot;).offset().top;h=n+a(&quot;#replyrow&quot;).height();o=window.pageYOffset||document.documentElement.scrollTop;c=document.documentElement.clientHeight||self.innerHeight||0;m=o+c;if(m-20&lt;h){window.scroll(0,h-c+35)}else{if(n-20&lt;o){window.scroll(0,n-35)}}a(&quot;#replycontent&quot;).focus().keyup(function(p){if(p.which==27){commentReply.revert()}})},600);return false},send:function(){var b={};a(&quot;#replysubmit .error&quot;).hide();a(&quot;#replysubmit .waiting&quot;).show();a(&quot;#replyrow input&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(&quot;[name=p]&quot;).val();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(b){var e,g,f,d;if(typeof(b)==&quot;string&quot;){this.error({responseText:b});return false}e=wpAjax.parseAjaxResponse(b);if(e.errors){this.error({responseText:wpAjax.broken});return false}e=e.responses[0];g=e.data;f=&quot;#comment-&quot;+e.id;if(&quot;edit-comment&quot;==this.act){a(f).remove()}a(g).hide();a(&quot;#replyrow&quot;).after(g);this.revert();this.addEvents(a(f));d=a(f).hasClass(&quot;unapproved&quot;)?&quot;#ffffe0&quot;:&quot;#fff&quot;;a(f).animate({backgroundColor:&quot;#CCEEBB&quot;},600).animate({backgroundColor:d},600)},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;setCommentsList();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&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(&quot;option[value=&quot;+f+&quot;]&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;(function(a){setCommentsList=function(){var d,f,i,m=0,h,j,e,l;d=a('input[name=&quot;_total&quot;]',&quot;#comments-form&quot;);f=a('input[name=&quot;_per_page&quot;]',&quot;#comments-form&quot;);i=a('input[name=&quot;_page&quot;]',&quot;#comments-form&quot;);h=function(o,n){var p=a(&quot;#&quot;+n.element);if(p.is(&quot;.unapproved&quot;)){p.find(&quot;div.comment_status&quot;).html(&quot;0&quot;)}else{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;+n.element).is(&quot;.&quot;+n.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;);g(q,s);k()})};j=function(r,v){var x=a(r.target).attr(&quot;className&quot;),o,p,q,u,w,t,s=false;r.data._total=d.val()||0
 ;r.data._per_page=f.val()||0;r.data._page=i.val()||0;r.data._url=document.location.href;r.data.comment_status=a('input[name=&quot;comment_status&quot;]',&quot;#comments-form&quot;).val();if(x.indexOf(&quot;:trash=1&quot;)!=-1){s=&quot;trash&quot;}else{if(x.indexOf(&quot;:spam=1&quot;)!=-1){s=&quot;spam&quot;}}if(s){o=x.replace(/.*?comment-([0-9]+).*/,&quot;$1&quot;);p=a(&quot;#comment-&quot;+o);note=a(&quot;#&quot;+s+&quot;-undo-holder&quot;).html();p.find(&quot;.check-column :checkbox&quot;).attr(&quot;checked&quot;,&quot;&quot;);if(p.siblings(&quot;#replyrow&quot;).length&amp;&amp;commentReply.cid==o){commentReply.close()}if(p.is(&quot;tr&quot;)){q=p.children(&quot;:visible&quot;).length;t=a(&quot;.author strong&quot;,p).text();u=a('&lt;tr id=&quot;undo-'+o+'&quot; class=&quot;undo un'+s+'&quot; style=&quot;display:none;&quot;&gt;&lt;td colspan=&quot;'+q+'&quot;&gt;'+note+&quot;&lt;/td&gt;&lt;/tr&gt;&quot;)}else{t=a(&quot;.comment-author&quot;,p).text();u=a('&lt;div id=&qu
 ot;undo-'+o+'&quot; style=&quot;display:none;&quot; class=&quot;undo un'+s+'&quot;&gt;'+note+&quot;&lt;/div&gt;&quot;)}p.before(u);a(&quot;strong&quot;,&quot;#undo-&quot;+o).text(t+&quot; &quot;);w=a(&quot;.undo a&quot;,&quot;#undo-&quot;+o);w.attr(&quot;href&quot;,&quot;comment.php?action=un&quot;+s+&quot;comment&amp;c=&quot;+o+&quot;&amp;_wpnonce=&quot;+r.data._ajax_nonce);w.attr(&quot;className&quot;,&quot;delete:the-comment-list:comment-&quot;+o+&quot;::un&quot;+s+&quot;=1 vim-z vim-destructive&quot;);a(&quot;.avatar&quot;,p).clone().prependTo(&quot;#undo-&quot;+o+&quot; .&quot;+s+&quot;-undo-inside&quot;);w.click(function(){v.wpList.del(this);a(&quot;#undo-&quot;+o).css({backgroundColor:&quot;#ceb&quot;}).fadeOut(350,function(){a(this).remove();a(&quot;#comment-&quot;+o).css(&quot;backgroundColor&quot;,&quot;&quot;).fadeIn(300,function(){a(this).show()})});return false})}return r};e=function(n,o,p){if(o&lt;m){return}if(p){m=o}d.val(n.toString());a(&quot;span.total-type-
 count&quot;).each(function(){g(a(this),n)})};function k(t){var s=a(&quot;#dashboard_right_now&quot;),p,r,q,o;t=t||0;if(isNaN(t)||!s.length){return}p=a(&quot;span.total-count&quot;,s);r=a(&quot;span.approved-count&quot;,s);q=c(p);q=q+t;o=q-c(a(&quot;span.pending-count&quot;,s))-c(a(&quot;span.spam-count&quot;,s));g(p,q);g(r,o)}function c(o){var p=parseInt(o.html().replace(/[^0-9]+/g,&quot;&quot;),10);if(isNaN(p)){return 0}return p}function g(p,q){var o=&quot;&quot;;if(isNaN(q)){return}q=q&lt;1?&quot;0&quot;:q.toString();if(q.length&gt;3){while(q.length&gt;3){o=thousandsSeparator+q.substr(q.length-3)+o;q=q.substr(0,q.length-3)}q=q+o}p.html(q)}l=function(n,p){var u,q,s,w=a(p.target).parent().is(&quot;span.untrash&quot;),o=a(p.target).parent().is(&quot;span.unspam&quot;),v,t;function x(r){if(a(p.target).parent().is(&quot;span.&quot;+r)){return 1}else{if(a(&quot;#&quot;+p.element).is(&quot;.&quot;+r)){return -1}}return 0}v=x(&quot;spam&quot;);t=x(&quot;trash&quot;);if(w){t=-1}if(
 o){v=-1}a(&quot;span.pending-count&quot;).each(function(){var r=a(this),z=c(r),y=a(&quot;#&quot;+p.element).is(&quot;.unapproved&quot;);if(a(p.target).parent().is(&quot;span.unapprove&quot;)||((w||o)&amp;&amp;y)){z=z+1}else{if(y){z=z-1}}if(z&lt;0){z=0}r.closest(&quot;#awaiting-mod&quot;)[0==z?&quot;addClass&quot;:&quot;removeClass&quot;](&quot;count-0&quot;);g(r,z);k()});a(&quot;span.spam-count&quot;).each(function(){var r=a(this),y=c(r)+v;g(r,y)});a(&quot;span.trash-count&quot;).each(function(){var r=a(this),y=c(r)+t;g(r,y)});if(a(&quot;#dashboard_right_now&quot;).length){s=t?-1*t:0;k(s)}else{u=d.val()?parseInt(d.val(),10):0;u=u-v-t;if(u&lt;0){u=0}if((&quot;object&quot;==typeof n)&amp;&amp;m&lt;p.parsed.responses[0].supplemental.time){total_items_i18n=p.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(p.parsed.responses[0].supplemental.total_pages_i18n)
 ;a(&quot;.tablenav-pages&quot;).find(&quot;.next-page, .last-page&quot;).toggleClass(&quot;disabled&quot;,p.parsed.responses[0].supplemental.total_pages==a(&quot;.current-page&quot;).val())}e(u,p.parsed.responses[0].supplemental.time,true)}else{e(u,n,false)}}if(!theExtraList||theExtraList.size()==0||theExtraList.children().size()==0||w||o){return}theList.get(0).wpList.add(theExtraList.children(&quot;:eq(0)&quot;).remove().clone());b()};var b=function(s){var o=a.query.get(),n=a(&quot;.total-pages&quot;).text(),p=a('input[name=&quot;_per_page&quot;]',&quot;#comments-form&quot;).val(),q;if(!o.paged){o.paged=1}if(o.paged&gt;n){return}if(s){theExtraList.empty();o.number=Math.min(8,p)}else{o.number=1;o.offset=Math.min(8,p)-1}o.no_placeholder=true;o.paged++;if(true===o.comment_type){o.comment_type=&quot;&quot;}o=a.extend(o,{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,dataTyp
 e:&quot;json&quot;,data:o,success:function(r){theExtraList.get(0).wpList.add(r.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:j,dimAfter:h,delAfter:l,addColor:&quot;none&quot;}).bind(&quot;wpListDelEnd&quot;,function(o,n){var p=n.element.replace(/[^0-9]+/g,&quot;&quot;);if(n.target.className.indexOf(&quot;:trash=1&quot;)!=-1||n.target.className.indexOf(&quot;:spam=1&quot;)!=-1){a(&quot;#undo-&quot;+p).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.preve
 ntDefault();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,func
 tion(){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;,&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 l=this,e,f,i,g,j=a(&quot;#comment-&quot;+b);l.close();l.cid=b;e=a(&quot;#replyrow&quot;);f=a(&quot;#inline-&quot;+b);i=l.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{a(&quot;#edithead, #savebtn&quot;,e).hide();a(&quot;#replyhead, #replybtn&quot;,e).show();j.after(e);a(&quot;#replyrow&quot;).fadeIn(300,function(){a(this).show()})}if(!a.browser.msie){a(&quot;#replycontainer&quot;).resizable({handles:&quot;s&quot;,axis:&q
 uot;y&quot;,minHeight:80,stop:function(){a(&quot;#replycontainer&quot;).width(&quot;auto&quot;)}})}setTimeout(function(){var n,h,o,c,m;n=a(&quot;#replyrow&quot;).offset().top;h=n+a(&quot;#replyrow&quot;).height();o=window.pageYOffset||document.documentElement.scrollTop;c=document.documentElement.clientHeight||self.innerHeight||0;m=o+c;if(m-20&lt;h){window.scroll(0,h-c+35)}else{if(n-20&lt;o){window.scroll(0,n-35)}}a(&quot;#replycontent&quot;).focus().keyup(function(p){if(p.which==27){commentReply.revert()}})},600);return false},send:function(){var b={};a(&quot;#replysubmit .error&quot;).hide();a(&quot;#replysubmit .waiting&quot;).show();a(&quot;#replyrow input&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();a.ajax({type:&quot;POST&quot;,url:ajaxurl,data:b,success:function(c){commentReply.show(c)},error:functi
 on(c){commentReply.error(c)}});return false},show:function(b){var e,g,f,d;if(typeof(b)==&quot;string&quot;){this.error({responseText:b});return false}e=wpAjax.parseAjaxResponse(b);if(e.errors){this.error({responseText:wpAjax.broken});return false}e=e.responses[0];g=e.data;f=&quot;#comment-&quot;+e.id;if(&quot;edit-comment&quot;==this.act){a(f).remove()}a(g).hide();a(&quot;#replyrow&quot;).after(g);this.revert();this.addEvents(a(f));d=a(f).hasClass(&quot;unapproved&quot;)?&quot;#ffffe0&quot;:&quot;#fff&quot;;a(f).animate({backgroundColor:&quot;#CCEEBB&quot;},600).animate({backgroundColor:d},600)},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;setCommentsList();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&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('option[value=&quot;'+f+'&quot;]',g).attr(&quot;selected&quot;,&quot;selected&quot;);a(&quot;#doaction&quot;).click()}};a.table_ho
 tkeys(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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/image-edit.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/image-edit.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         getTarget : function(postid) {
</span><del>-                return $('input[name=imgedit-target-' + postid + ']:checked', '#imgedit-save-target-' + postid).val() || 'full';
</del><ins>+                return $('input[name=&quot;imgedit-target-' + postid + '&quot;]:checked', '#imgedit-save-target-' + postid).val() || 'full';
</ins><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         scaleChanged : function(postid, x) {
</span></span></pre></div>
<a id="trunkwpadminjsimageeditjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/image-edit.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/image-edit.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/image-edit.js        2011-04-30 02:15:08 UTC (rev 17777)
</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(&quot;input[name=imgedit-target-&quot;+b+&quot;]:checked&quot;,&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;imgedi
 t-preview&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(&qu
 ot;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-cr
 op-&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)})},setNumSe
 lection: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).hei
 ght();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).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);
</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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/inline-edit-post.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -32,7 +32,7 @@
</span><span class="cx">                         return inlineEditPost.revert();
</span><span class="cx">                 });
</span><span class="cx"> 
</span><del>-                $('#inline-edit .inline-edit-private input[value=private]').click( function(){
</del><ins>+                $('#inline-edit .inline-edit-private input[value=&quot;private&quot;]').click( function(){
</ins><span class="cx">                         var pw = $('input.inline-edit-password-input');
</span><span class="cx">                         if ( $(this).attr('checked') ) {
</span><span class="cx">                                 pw.val('').attr('disabled', 'disabled');
</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;]').attr('checked', '');
</ins><span class="cx">                         $('#ttle'+id).remove();
</span><span class="cx">                 });
</span><span class="cx"> 
</span><span class="lines">@@ -142,7 +142,7 @@
</span><span class="cx"> 
</span><span class="cx">                 // populate the data
</span><span class="cx">                 rowData = $('#inline_'+id);
</span><del>-                if ( !$(':input[name=&quot;post_author&quot;] option[value=' + $('.post_author', rowData).text() + ']', editRow).val() ) {
</del><ins>+                if ( !$(':input[name=&quot;post_author&quot;] option[value=&quot;' + $('.post_author', rowData).text() + '&quot;]', editRow).val() ) {
</ins><span class="cx">                         // author no longer has edit caps, so we need to add them to the list of authors
</span><span class="cx">                         $(':input[name=&quot;post_author&quot;]', editRow).prepend('&lt;option value=&quot;' + $('.post_author', rowData).text() + '&quot;&gt;' + $('#' + t.type + '-' + id + ' .author').text() + '&lt;/option&gt;');
</span><span class="cx">                 }
</span><span class="lines">@@ -151,7 +151,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 for ( var f = 0; f &lt; fields.length; f++ ) {
</span><del>-                        $(':input[name=&quot;'+fields[f]+'&quot;]', editRow).val( $('.'+fields[f], rowData).text() );
</del><ins>+                        $(':input[name=&quot;' + fields[f] + '&quot;]', editRow).val( $('.'+fields[f], rowData).text() );
</ins><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 if ( $('.comment_status', rowData).text() == 'open' )
</span><span class="lines">@@ -193,7 +193,7 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">                 // remove the current page and children from the parent dropdown
</span><del>-                pageOpt = $('select[name=&quot;post_parent&quot;] option[value=&quot;'+id+'&quot;]', editRow);
</del><ins>+                pageOpt = $('select[name=&quot;post_parent&quot;] option[value=&quot;' + id + '&quot;]', editRow);
</ins><span class="cx">                 if ( pageOpt.length &gt; 0 ) {
</span><span class="cx">                         pageLevel = pageOpt[0].className.split('-')[1];
</span><span class="cx">                         nextPage = pageOpt;
</span></span></pre></div>
<a id="trunkwpadminjsinlineeditpostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/inline-edit-post.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/inline-edit-post.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/inline-edit-post.js        2011-04-30 02:15:08 UTC (rev 17777)
</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(&quot;#inline-edit .inline-edit-private input[value=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&quot;
 ,&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;#post-
 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){return
  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(&quo
 t;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='+a(&quot;.post_author&quot;,g).text()+&quot;]&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;] option[
 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;,post_st
 atus: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;).removeClass(
 &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).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);
</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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/nav-menu.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -461,7 +461,7 @@
</span><span class="cx">                         var loc = $('#nav-menu-theme-locations'), params = {};
</span><span class="cx">                         params['action'] = 'menu-locations-save';
</span><span class="cx">                         params['menu-settings-column-nonce'] = $('#menu-settings-column-nonce').val();
</span><del>-                        loc.find('input[type=submit]').click(function() {
</del><ins>+                        loc.find('input[type=&quot;submit&quot;]').click(function() {
</ins><span class="cx">                                 loc.find('select').each(function() {
</span><span class="cx">                                         params[this.name] = $(this).val();
</span><span class="cx">                                 });
</span></span></pre></div>
<a id="trunkwpadminjsnavmenujs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/nav-menu.js        2011-04-30 02:15:08 UTC (rev 17777)
</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(&quot;input[type=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){clearTimeou
 t(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)},attachUnsavedChangesListene
 r: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;tab
 s-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.hasCla
 ss(&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().lef
 t;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-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},eventOnCl
 ickMenuDelete: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;\\]&qu
 ot;,&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;).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);
</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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/post.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> WPSetThumbnailID = function(id){
</span><del>-        var field = $('input[value=_thumbnail_id]', '#list-table');
</del><ins>+        var field = $('input[value=&quot;_thumbnail_id&quot;]', '#list-table');
</ins><span class="cx">         if ( field.size() &gt; 0 ) {
</span><span class="cx">                 $('#meta\\[' + field.attr('id').match(/[0-9]+/) + '\\]\\[value\\]').text(id);
</span><span class="cx">         }
</span><span class="lines">@@ -369,7 +369,7 @@
</span><span class="cx"> 
</span><span class="cx">                 function updateText() {
</span><span class="cx">                         var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
</span><del>-                                optPublish = $('option[value=publish]', postStatus), aa = $('#aa').val(),
</del><ins>+                                optPublish = $('option[value=&quot;publish&quot;]', postStatus), aa = $('#aa').val(),
</ins><span class="cx">                                 mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();
</span><span class="cx"> 
</span><span class="cx">                         attemptedDate = new Date( aa, mm - 1, jj, hh, mn );
</span><span class="lines">@@ -398,7 +398,7 @@
</span><span class="cx">                         } else {
</span><span class="cx">                                 $('#timestamp').html(
</span><span class="cx">                                         publishOn + ' &lt;b&gt;' +
</span><del>-                                        $('option[value=' + $('#mm').val() + ']', '#mm').text() + ' ' +
</del><ins>+                                        $('option[value=&quot;' + $('#mm').val() + '&quot;]', '#mm').text() + ' ' +
</ins><span class="cx">                                         jj + ', ' +
</span><span class="cx">                                         aa + ' @ ' +
</span><span class="cx">                                         hh + ':' +
</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=publish]', postStatus).attr('selected', true);
</del><ins>+                                $('option[value=&quot;publish&quot;]', postStatus).attr('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></pre></div>
<a id="trunkwpadminjspostjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/post.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/post.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/post.js        2011-04-30 02:15:08 UTC (rev 17777)
</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(&quot;input[value=_thumbnail_id]&quot;,&quot;#list-table&quot;);if(b.size()&gt;0){a(&quot;#meta\\[&quot;+b.attr(&quot;id&quot;).match(/[0-9]+/)+&quot;\\]\\[value\\]&quot;).text(c)}};WPRemoveThumbnail=function(b){a.post(ajaxurl,{action:&quot;set-post-thumbnail&quot;,post_id:a(&quot;#post_I
 D&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(e){var b,a,f=&quot;&quot;;postboxes.add_postbox_toggles(pagenow);if(e(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{e(&quot;#side-sortables, #normal-sortables, #advanced-sortables&quot;).children(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}})}e(&quot;.categorydiv&quot;).each(function(){var l=e(this).attr(&quot;id&quot;),h=false,k,m,j,g,i;j=l.split(&quot;-&quot;);j.shift();g=j.join(&quot;-&quot;);i=g+&quot;_tab&quot;;if(g==&quot;category&quot;){i=&quot;cats&quot;}e(&quot;a&quot;,&quot;#&quot;+g+&quot;-tabs&quot;).click(function(){var n=e(this).attr(&quot;href&quot;);e(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);e(&quot
 ;#&quot;+g+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();e(n).show();if(&quot;#&quot;+g+&quot;-all&quot;==n){deleteUserSetting(i)}else{setUserSetting(i,&quot;pop&quot;)}return false});if(getUserSetting(i)){e('a[href=&quot;#'+g+'-pop&quot;]',&quot;#&quot;+g+&quot;-tabs&quot;).click()}e(&quot;#new&quot;+g).one(&quot;focus&quot;,function(){e(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});e(&quot;#&quot;+g+&quot;-add-submit&quot;).click(function(){e(&quot;#new&quot;+g).focus()});k=function(){if(h){return}h=true;var n=jQuery(this),p=n.is(&quot;:checked&quot;),o=n.val().toString();e(&quot;#in-&quot;+g+&quot;-&quot;+o+&quot;, #in-&quot;+g+&quot;-category-&quot;+o).attr(&quot;checked&quot;,p);h=false};catAddBefore=function(n){if(!e(&quot;#new&quot;+g).val()){return false}n.data+=&quot;&amp;&quot;+e(&quot;:checked&quot;,&quot;#&quot;+g+&quot;checklist&quot;).serialize();return n};m=function(q,p){var o,n=e(&quot;#new&quot;+g+&quot;_parent&quot;);if(&qu
 ot;undefined&quot;!=p.parsed.responses[0]&amp;&amp;(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove()}};e(&quot;#&quot;+g+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:g+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:m});e(&quot;#&quot;+g+&quot;-add-toggle&quot;).click(function(){e(&quot;#&quot;+g+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);e('a[href=&quot;#'+g+'-all&quot;]',&quot;#&quot;+g+&quot;-tabs&quot;).click();e(&quot;#new&quot;+g).focus();return false});e(&quot;#&quot;+g+&quot;checklist li.popular-category :checkbox, #&quot;+g+&quot;checklist-pop :checkbox&quot;).live(&quot;click&quot;,function(){var n=e(this),p=n.is(&quot;:checked&quot;),o=n.val();if(o&amp;&amp;n.parents(&quot;#taxonomy-&quot;+g).length){e(&quot;#in-&quot;+g+&quot;-&quot;+o+&quot;, #in-popular-&quot;+g+&quot;-&quot;+o).attr(&quot;checked&quot;,p)}})});if(e(&quot;#postcustom&quot;).length){e(&quot;#the-list&quot;).wpList({addAfter:f
 unction(g,h){e(&quot;table#list-table&quot;).show()},addBefore:function(g){g.data+=&quot;&amp;post_id=&quot;+e(&quot;#post_ID&quot;).val();return g}})}if(e(&quot;#submitdiv&quot;).length){b=e(&quot;#timestamp&quot;).html();a=e(&quot;#post-visibility-display&quot;).html();function d(){var g=e(&quot;#post-visibility-select&quot;);if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;public&quot;){e(&quot;#sticky&quot;).attr(&quot;checked&quot;,false);e(&quot;#sticky-span&quot;).hide()}else{e(&quot;#sticky-span&quot;).show()}if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;password&quot;){e(&quot;#password-span&quot;).hide()}else{e(&quot;#password-span&quot;).show()}}function c(){var n,o,h,q,p=e(&quot;#post_status&quot;),i=e(&quot;option[value=publish]&quot;,p),g=e(&quot;#aa&quot;).val(),l=e(&quot;#mm&quot;).val(),m=e(&quot;#jj&quot;).val(),k=e(&quot;#hh&quot;).val(),j=e(&quot;#mn&quot;).val();n=new Date(g,l-1,m,k,j);o=new Date(e(&quot;#hidden_aa&quot;).val(),e(&quot;#hidden
 _mm&quot;).val()-1,e(&quot;#hidden_jj&quot;).val(),e(&quot;#hidden_hh&quot;).val(),e(&quot;#hidden_mn&quot;).val());h=new Date(e(&quot;#cur_aa&quot;).val(),e(&quot;#cur_mm&quot;).val()-1,e(&quot;#cur_jj&quot;).val(),e(&quot;#cur_hh&quot;).val(),e(&quot;#cur_mn&quot;).val());if(n.getFullYear()!=g||(1+n.getMonth())!=l||n.getDate()!=m||n.getMinutes()!=j){e(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{e(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(n&gt;h&amp;&amp;e(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){q=postL10n.publishOnFuture;e(&quot;#publish&quot;).val(postL10n.schedule)}else{if(n&lt;=h&amp;&amp;e(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){q=postL10n.publishOn;e(&quot;#publish&quot;).val(postL10n.publish)}else{q=postL10n.publishOnPast;e(&quot;#publish&quot;).val(postL10n.update)}}if(o.toUTCString()==n.toUTCString()){e(&
 quot;#timestamp&quot;).html(b)}else{e(&quot;#timestamp&quot;).html(q+&quot; &lt;b&gt;&quot;+e(&quot;option[value=&quot;+e(&quot;#mm&quot;).val()+&quot;]&quot;,&quot;#mm&quot;).text()+&quot; &quot;+m+&quot;, &quot;+g+&quot; @ &quot;+k+&quot;:&quot;+j+&quot;&lt;/b&gt; &quot;)}if(e(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){e(&quot;#publish&quot;).val(postL10n.update);if(i.length==0){p.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{i.html(postL10n.privatelyPublished)}e(&quot;option[value=publish]&quot;,p).attr(&quot;selected&quot;,true);e(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(e(&quot;#original_post_status&quot;).val()==&quot;future&quot;||e(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(i.length){i.remove();p.val(e(&quot;#hidden_post_status&quot;).val())}}else{i.html(postL10n.published)}if(p.is(&quot
 ;:hidden&quot;)){e(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}e(&quot;#post-status-display&quot;).html(e(&quot;option:selected&quot;,p).text());if(e(&quot;option:selected&quot;,p).val()==&quot;private&quot;||e(&quot;option:selected&quot;,p).val()==&quot;publish&quot;){e(&quot;#save-post&quot;).hide()}else{e(&quot;#save-post&quot;).show();if(e(&quot;option:selected&quot;,p).val()==&quot;pending&quot;){e(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{e(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(e(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){d();e(&quot;#post-visibility-select&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){e(&quot;#post-visibility-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#visibil
 ity-radio-&quot;+e(&quot;#hidden-post-visibility&quot;).val()).attr(&quot;checked&quot;,true);e(&quot;#post_password&quot;).val(e(&quot;#hidden_post_password&quot;).val());e(&quot;#sticky&quot;).attr(&quot;checked&quot;,e(&quot;#hidden-post-sticky&quot;).attr(&quot;checked&quot;));e(&quot;#post-visibility-display&quot;).html(a);e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});e(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var g=e(&quot;#post-visibility-select&quot;);g.slideUp(&quot;normal&quot;);e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;public&quot;){e(&quot;#sticky&quot;).attr(&quot;checked&quot;,false)}if(true==e(&quot;#sticky&quot;).attr(&quot;checked&quot;)){f=&quot;Sticky&quot;}else{f=&quot;&quot;}e(&quot;#post-visibility-display&quot;).html(postL10n[e(&quot;input:radio:checked&quot;,g).val()+f]);return false});e(&quot
 ;input:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){d()});e(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(e(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){e(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){e(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);e(&quot;#mm&quot;).val(e(&quot;#hidden_mm&quot;).val());e(&quot;#jj&quot;).val(e(&quot;#hidden_jj&quot;).val());e(&quot;#aa&quot;).val(e(&quot;#hidden_aa&quot;).val());e(&quot;#hh&quot;).val(e(&quot;#hidden_hh&quot;).val());e(&quot;#mn&quot;).val(e(&quot;#hidden_mn&quot;).val());e(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});e(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(c()){e(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);e(&quot;#timestampdiv&quot;).sib
 lings(&quot;a.edit-timestamp&quot;).show()}return false});e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if(e(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){e(&quot;#post-status-select&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){e(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});e(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){e(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#post_status&quot;).val(e(&quot;#hidden_post_status&quot;).val());e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(e(&quot;#edit-slug-box&quot;).length){editPermalink=function(g){var h,l=0,k=e(&quot;#editable-post-name&quo
 t;),m=k.html(),p=e(&quot;#post_name&quot;),q=p.val(),n=e(&quot;#edit-slug-buttons&quot;),o=n.html(),j=e(&quot;#editable-post-name-full&quot;).html();e(&quot;#view-post-btn&quot;).hide();n.html('&lt;a href=&quot;#&quot; class=&quot;save button&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);n.children(&quot;.save&quot;).click(function(){var i=k.children(&quot;input&quot;).val();e.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:g,new_slug:i,new_title:e(&quot;#title&quot;).val(),samplepermalinknonce:e(&quot;#samplepermalinknonce&quot;).val()},function(r){e(&quot;#edit-slug-box&quot;).html(r);n.html(o);p.attr(&quot;value&quot;,i);makeSlugeditClickable();e(&quot;#view-post-btn&quot;).show()});return false});e(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){e(&quot;#view-post-btn&quot;).show();k.html(m);n.html(o);p.attr(&quot;value&quot;,q);return false});for(h=0;h&lt;j
 .length;++h){if(&quot;%&quot;==j.charAt(h)){l++}}slug_value=(l&gt;j.length/4)?&quot;&quot;:j;k.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(r){var i=r.keyCode||0;if(13==i){n.children(&quot;.save&quot;).click();return false}if(27==i){n.children(&quot;.cancel&quot;).click();return false}p.attr(&quot;value&quot;,this.value)}).focus()};makeSlugeditClickable=function(){e(&quot;#editable-post-name&quot;).click(function(){e(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}wptitlehint=function(i){i=i||&quot;title&quot;;var g=e(&quot;#&quot;+i),h=e(&quot;#&quot;+i+&quot;-prompt-text&quot;);if(g.val()==&quot;&quot;){h.css(&quot;visibility&quot;,&quot;&quot;)}h.click(function(){e(this).css(&quot;visibility&quot;,&quot;hidden&quot;);g.focus()});g.blur(function(){if(this.value==&quot;&quot;){h.css(&quot;visibility&quot;,&quot;&quo
 t;)}}).focus(function(){h.css(&quot;visibility&quot;,&quot;hidden&quot;)}).keydown(function(j){h.css(&quot;visibility&quot;,&quot;hidden&quot;);e(this).unbind(j)})};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.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(e){var b,a,f=&quot;&quot;;postboxes.add_postbox_toggles(pagenow);if(e(&quot;#tagsdiv-post_tag&quot;).length){tagBox.init()}else{e(&quot;#side-sortables, #normal-sortables, #advanced-sortables&quot;).children(&quot;div.postbox&quot;).each(function(){if(this.id.indexOf(&quot;tagsdiv-&quot;)===0){tagBox.init();return false}})}e(&quot;.categorydiv&quot;).each(function(){var l=e(this).attr(&quot;id&quot;),h=false,k,m,j,g,i;j=l.split(&quot;-&quot;);j.shift();g=j.join(&quot;-&quot;);i=g+&quot;_tab&quot;;if(g==&quot;category&quot;){i=&quot;cats&quot;}e(&quot;a&quot;,&quot;#&quot;+g+&quot;-tabs&quot;).click(function(){var n=e(this).attr(&quot;href&quot;);e(this).parent().addClass(&quot;tabs&quot;).siblings(&quot;li&quot;).removeClass(&quot;tabs&quot;);e(&qu
 ot;#&quot;+g+&quot;-tabs&quot;).siblings(&quot;.tabs-panel&quot;).hide();e(n).show();if(&quot;#&quot;+g+&quot;-all&quot;==n){deleteUserSetting(i)}else{setUserSetting(i,&quot;pop&quot;)}return false});if(getUserSetting(i)){e('a[href=&quot;#'+g+'-pop&quot;]',&quot;#&quot;+g+&quot;-tabs&quot;).click()}e(&quot;#new&quot;+g).one(&quot;focus&quot;,function(){e(this).val(&quot;&quot;).removeClass(&quot;form-input-tip&quot;)});e(&quot;#&quot;+g+&quot;-add-submit&quot;).click(function(){e(&quot;#new&quot;+g).focus()});k=function(){if(h){return}h=true;var n=jQuery(this),p=n.is(&quot;:checked&quot;),o=n.val().toString();e(&quot;#in-&quot;+g+&quot;-&quot;+o+&quot;, #in-&quot;+g+&quot;-category-&quot;+o).attr(&quot;checked&quot;,p);h=false};catAddBefore=function(n){if(!e(&quot;#new&quot;+g).val()){return false}n.data+=&quot;&amp;&quot;+e(&quot;:checked&quot;,&quot;#&quot;+g+&quot;checklist&quot;).serialize();return n};m=function(q,p){var o,n=e(&quot;#new&quot;+g+&quot;_parent&quot;);if(&
 quot;undefined&quot;!=p.parsed.responses[0]&amp;&amp;(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove()}};e(&quot;#&quot;+g+&quot;checklist&quot;).wpList({alt:&quot;&quot;,response:g+&quot;-ajax-response&quot;,addBefore:catAddBefore,addAfter:m});e(&quot;#&quot;+g+&quot;-add-toggle&quot;).click(function(){e(&quot;#&quot;+g+&quot;-adder&quot;).toggleClass(&quot;wp-hidden-children&quot;);e('a[href=&quot;#'+g+'-all&quot;]',&quot;#&quot;+g+&quot;-tabs&quot;).click();e(&quot;#new&quot;+g).focus();return false});e(&quot;#&quot;+g+&quot;checklist li.popular-category :checkbox, #&quot;+g+&quot;checklist-pop :checkbox&quot;).live(&quot;click&quot;,function(){var n=e(this),p=n.is(&quot;:checked&quot;),o=n.val();if(o&amp;&amp;n.parents(&quot;#taxonomy-&quot;+g).length){e(&quot;#in-&quot;+g+&quot;-&quot;+o+&quot;, #in-popular-&quot;+g+&quot;-&quot;+o).attr(&quot;checked&quot;,p)}})});if(e(&quot;#postcustom&quot;).length){e(&quot;#the-list&quot;).wpList({addAfter
 :function(g,h){e(&quot;table#list-table&quot;).show()},addBefore:function(g){g.data+=&quot;&amp;post_id=&quot;+e(&quot;#post_ID&quot;).val();return g}})}if(e(&quot;#submitdiv&quot;).length){b=e(&quot;#timestamp&quot;).html();a=e(&quot;#post-visibility-display&quot;).html();function d(){var g=e(&quot;#post-visibility-select&quot;);if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;public&quot;){e(&quot;#sticky&quot;).attr(&quot;checked&quot;,false);e(&quot;#sticky-span&quot;).hide()}else{e(&quot;#sticky-span&quot;).show()}if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;password&quot;){e(&quot;#password-span&quot;).hide()}else{e(&quot;#password-span&quot;).show()}}function c(){var n,o,h,q,p=e(&quot;#post_status&quot;),i=e('option[value=&quot;publish&quot;]',p),g=e(&quot;#aa&quot;).val(),l=e(&quot;#mm&quot;).val(),m=e(&quot;#jj&quot;).val(),k=e(&quot;#hh&quot;).val(),j=e(&quot;#mn&quot;).val();n=new Date(g,l-1,m,k,j);o=new Date(e(&quot;#hidden_aa&quot;).val(),e(&quot;#hi
 dden_mm&quot;).val()-1,e(&quot;#hidden_jj&quot;).val(),e(&quot;#hidden_hh&quot;).val(),e(&quot;#hidden_mn&quot;).val());h=new Date(e(&quot;#cur_aa&quot;).val(),e(&quot;#cur_mm&quot;).val()-1,e(&quot;#cur_jj&quot;).val(),e(&quot;#cur_hh&quot;).val(),e(&quot;#cur_mn&quot;).val());if(n.getFullYear()!=g||(1+n.getMonth())!=l||n.getDate()!=m||n.getMinutes()!=j){e(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).addClass(&quot;form-invalid&quot;);return false}else{e(&quot;.timestamp-wrap&quot;,&quot;#timestampdiv&quot;).removeClass(&quot;form-invalid&quot;)}if(n&gt;h&amp;&amp;e(&quot;#original_post_status&quot;).val()!=&quot;future&quot;){q=postL10n.publishOnFuture;e(&quot;#publish&quot;).val(postL10n.schedule)}else{if(n&lt;=h&amp;&amp;e(&quot;#original_post_status&quot;).val()!=&quot;publish&quot;){q=postL10n.publishOn;e(&quot;#publish&quot;).val(postL10n.publish)}else{q=postL10n.publishOnPast;e(&quot;#publish&quot;).val(postL10n.update)}}if(o.toUTCString()==n.toUTCString())
 {e(&quot;#timestamp&quot;).html(b)}else{e(&quot;#timestamp&quot;).html(q+&quot; &lt;b&gt;&quot;+e('option[value=&quot;'+e(&quot;#mm&quot;).val()+'&quot;]',&quot;#mm&quot;).text()+&quot; &quot;+m+&quot;, &quot;+g+&quot; @ &quot;+k+&quot;:&quot;+j+&quot;&lt;/b&gt; &quot;)}if(e(&quot;input:radio:checked&quot;,&quot;#post-visibility-select&quot;).val()==&quot;private&quot;){e(&quot;#publish&quot;).val(postL10n.update);if(i.length==0){p.append('&lt;option value=&quot;publish&quot;&gt;'+postL10n.privatelyPublished+&quot;&lt;/option&gt;&quot;)}else{i.html(postL10n.privatelyPublished)}e('option[value=&quot;publish&quot;]',p).attr(&quot;selected&quot;,true);e(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).hide()}else{if(e(&quot;#original_post_status&quot;).val()==&quot;future&quot;||e(&quot;#original_post_status&quot;).val()==&quot;draft&quot;){if(i.length){i.remove();p.val(e(&quot;#hidden_post_status&quot;).val())}}else{i.html(postL10n.published)}if(p.is(&quot;:
 hidden&quot;)){e(&quot;.edit-post-status&quot;,&quot;#misc-publishing-actions&quot;).show()}}e(&quot;#post-status-display&quot;).html(e(&quot;option:selected&quot;,p).text());if(e(&quot;option:selected&quot;,p).val()==&quot;private&quot;||e(&quot;option:selected&quot;,p).val()==&quot;publish&quot;){e(&quot;#save-post&quot;).hide()}else{e(&quot;#save-post&quot;).show();if(e(&quot;option:selected&quot;,p).val()==&quot;pending&quot;){e(&quot;#save-post&quot;).show().val(postL10n.savePending)}else{e(&quot;#save-post&quot;).show().val(postL10n.saveDraft)}}return true}e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).click(function(){if(e(&quot;#post-visibility-select&quot;).is(&quot;:hidden&quot;)){d();e(&quot;#post-visibility-select&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.cancel-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){e(&quot;#post-visibility-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#visibilit
 y-radio-&quot;+e(&quot;#hidden-post-visibility&quot;).val()).attr(&quot;checked&quot;,true);e(&quot;#post_password&quot;).val(e(&quot;#hidden_post_password&quot;).val());e(&quot;#sticky&quot;).attr(&quot;checked&quot;,e(&quot;#hidden-post-sticky&quot;).attr(&quot;checked&quot;));e(&quot;#post-visibility-display&quot;).html(a);e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();return false});e(&quot;.save-post-visibility&quot;,&quot;#post-visibility-select&quot;).click(function(){var g=e(&quot;#post-visibility-select&quot;);g.slideUp(&quot;normal&quot;);e(&quot;.edit-visibility&quot;,&quot;#visibility&quot;).show();c();if(e(&quot;input:radio:checked&quot;,g).val()!=&quot;public&quot;){e(&quot;#sticky&quot;).attr(&quot;checked&quot;,false)}if(true==e(&quot;#sticky&quot;).attr(&quot;checked&quot;)){f=&quot;Sticky&quot;}else{f=&quot;&quot;}e(&quot;#post-visibility-display&quot;).html(postL10n[e(&quot;input:radio:checked&quot;,g).val()+f]);return false});e(&quot;i
 nput:radio&quot;,&quot;#post-visibility-select&quot;).change(function(){d()});e(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).click(function(){if(e(&quot;#timestampdiv&quot;).is(&quot;:hidden&quot;)){e(&quot;#timestampdiv&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.cancel-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){e(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);e(&quot;#mm&quot;).val(e(&quot;#hidden_mm&quot;).val());e(&quot;#jj&quot;).val(e(&quot;#hidden_jj&quot;).val());e(&quot;#aa&quot;).val(e(&quot;#hidden_aa&quot;).val());e(&quot;#hh&quot;).val(e(&quot;#hidden_hh&quot;).val());e(&quot;#mn&quot;).val(e(&quot;#hidden_mn&quot;).val());e(&quot;#timestampdiv&quot;).siblings(&quot;a.edit-timestamp&quot;).show();c();return false});e(&quot;.save-timestamp&quot;,&quot;#timestampdiv&quot;).click(function(){if(c()){e(&quot;#timestampdiv&quot;).slideUp(&quot;normal&quot;);e(&quot;#timestampdiv&quot;).sibli
 ngs(&quot;a.edit-timestamp&quot;).show()}return false});e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).click(function(){if(e(&quot;#post-status-select&quot;).is(&quot;:hidden&quot;)){e(&quot;#post-status-select&quot;).slideDown(&quot;normal&quot;);e(this).hide()}return false});e(&quot;.save-post-status&quot;,&quot;#post-status-select&quot;).click(function(){e(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false});e(&quot;.cancel-post-status&quot;,&quot;#post-status-select&quot;).click(function(){e(&quot;#post-status-select&quot;).slideUp(&quot;normal&quot;);e(&quot;#post_status&quot;).val(e(&quot;#hidden_post_status&quot;).val());e(&quot;#post-status-select&quot;).siblings(&quot;a.edit-post-status&quot;).show();c();return false})}if(e(&quot;#edit-slug-box&quot;).length){editPermalink=function(g){var h,l=0,k=e(&quot;#editable-post-name&quot;
 ),m=k.html(),p=e(&quot;#post_name&quot;),q=p.val(),n=e(&quot;#edit-slug-buttons&quot;),o=n.html(),j=e(&quot;#editable-post-name-full&quot;).html();e(&quot;#view-post-btn&quot;).hide();n.html('&lt;a href=&quot;#&quot; class=&quot;save button&quot;&gt;'+postL10n.ok+'&lt;/a&gt; &lt;a class=&quot;cancel&quot; href=&quot;#&quot;&gt;'+postL10n.cancel+&quot;&lt;/a&gt;&quot;);n.children(&quot;.save&quot;).click(function(){var i=k.children(&quot;input&quot;).val();e.post(ajaxurl,{action:&quot;sample-permalink&quot;,post_id:g,new_slug:i,new_title:e(&quot;#title&quot;).val(),samplepermalinknonce:e(&quot;#samplepermalinknonce&quot;).val()},function(r){e(&quot;#edit-slug-box&quot;).html(r);n.html(o);p.attr(&quot;value&quot;,i);makeSlugeditClickable();e(&quot;#view-post-btn&quot;).show()});return false});e(&quot;.cancel&quot;,&quot;#edit-slug-buttons&quot;).click(function(){e(&quot;#view-post-btn&quot;).show();k.html(m);n.html(o);p.attr(&quot;value&quot;,q);return false});for(h=0;h&lt;j.l
 ength;++h){if(&quot;%&quot;==j.charAt(h)){l++}}slug_value=(l&gt;j.length/4)?&quot;&quot;:j;k.html('&lt;input type=&quot;text&quot; id=&quot;new-post-slug&quot; value=&quot;'+slug_value+'&quot; /&gt;').children(&quot;input&quot;).keypress(function(r){var i=r.keyCode||0;if(13==i){n.children(&quot;.save&quot;).click();return false}if(27==i){n.children(&quot;.cancel&quot;).click();return false}p.attr(&quot;value&quot;,this.value)}).focus()};makeSlugeditClickable=function(){e(&quot;#editable-post-name&quot;).click(function(){e(&quot;#edit-slug-buttons&quot;).children(&quot;.edit-slug&quot;).click()})};makeSlugeditClickable()}wptitlehint=function(i){i=i||&quot;title&quot;;var g=e(&quot;#&quot;+i),h=e(&quot;#&quot;+i+&quot;-prompt-text&quot;);if(g.val()==&quot;&quot;){h.css(&quot;visibility&quot;,&quot;&quot;)}h.click(function(){e(this).css(&quot;visibility&quot;,&quot;hidden&quot;);g.focus()});g.blur(function(){if(this.value==&quot;&quot;){h.css(&quot;visibility&quot;,&quot;&quot;
 )}}).focus(function(){h.css(&quot;visibility&quot;,&quot;hidden&quot;)}).keydown(function(j){h.css(&quot;visibility&quot;,&quot;hidden&quot;);e(this).unbind(j)})};wptitlehint()});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjstagsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/tags.dev.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/tags.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/tags.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -11,7 +11,7 @@
</span><span class="cx">                                         $('#ajax-response').empty();
</span><span class="cx">                                         tr.fadeOut('normal', function(){ tr.remove(); });
</span><span class="cx">                                         // Remove the term from the parent box and tag cloud
</span><del>-                                        $('select#parent option[value=' + data.match(/tag_ID=(\d+)/)[1] + ']').remove();
</del><ins>+                                        $('select#parent option[value=&quot;' + data.match(/tag_ID=(\d+)/)[1] + '&quot;]').remove();
</ins><span class="cx">                                         $('a.tag-link-' + data.match(/tag_ID=(\d+)/)[1]).remove();
</span><span class="cx">                                 } else if ( '-1' == r ) {
</span><span class="cx">                                         $('#ajax-response').empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;' + tagsl10n.noPerm + '&lt;/p&gt;&lt;/div&gt;');
</span></span></pre></div>
<a id="trunkwpadminjstagsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/tags.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/tags.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/tags.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -1 +1 @@
</span><del>-jQuery(document).ready(function(a){a(&quot;.delete-tag&quot;).live(&quot;click&quot;,function(g){var b=a(this),f=b.parents(&quot;tr&quot;),c=true,d;if(&quot;undefined&quot;!=showNotice){c=showNotice.warn()}if(c){d=b.attr(&quot;href&quot;).replace(/[^?]*\?/,&quot;&quot;).replace(/action=delete/,&quot;action=delete-tag&quot;);a.post(ajaxurl,d,function(e){if(&quot;1&quot;==e){a(&quot;#ajax-response&quot;).empty();f.fadeOut(&quot;normal&quot;,function(){f.remove()});a(&quot;select#parent option[value=&quot;+d.match(/tag_ID=(\d+)/)[1]+&quot;]&quot;).remove();a(&quot;a.tag-link-&quot;+d.match(/tag_ID=(\d+)/)[1]).remove()}else{if(&quot;-1&quot;==e){a(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.noPerm+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);f.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}else{a(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.broken+&quot;&lt;/
 p&gt;&lt;/div&gt;&quot;);f.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}}});f.children().css(&quot;backgroundColor&quot;,&quot;#f33&quot;)}return false});a(&quot;#submit&quot;).click(function(){var b=a(this).parents(&quot;form&quot;);if(!validateForm(b)){return false}a.post(ajaxurl,a(&quot;#addtag&quot;).serialize(),function(h){a(&quot;#ajax-response&quot;).empty();var f=wpAjax.parseAjaxResponse(h,&quot;ajax-response&quot;);if(!f){return}var g=b.find(&quot;select#parent&quot;).val();if(g&gt;0&amp;&amp;a(&quot;#tag-&quot;+g).length&gt;0){a(&quot;.tags #tag-&quot;+g).after(f.responses[0].supplemental.noparents)}else{a(&quot;.tags&quot;).prepend(f.responses[0].supplemental.parents)}a(&quot;.tags .no-items&quot;).remove();if(b.find(&quot;select#parent&quot;)){var e=f.responses[1].supplemental;var c=&quot;&quot;;for(var d=0;d&lt;f.responses[1].position;d++){c+=&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;}b.find(&quot;select#parent option:selected&quot;).after('&lt;optio
 n value=&quot;'+e.term_id+'&quot;&gt;'+c+e.name+&quot;&lt;/option&gt;&quot;)}a('input[type=&quot;text&quot;]:visible, textarea:visible',b).val(&quot;&quot;)});return false})});
</del><span class="cx">\ No newline at end of file
</span><ins>+jQuery(document).ready(function(a){a(&quot;.delete-tag&quot;).live(&quot;click&quot;,function(g){var b=a(this),f=b.parents(&quot;tr&quot;),c=true,d;if(&quot;undefined&quot;!=showNotice){c=showNotice.warn()}if(c){d=b.attr(&quot;href&quot;).replace(/[^?]*\?/,&quot;&quot;).replace(/action=delete/,&quot;action=delete-tag&quot;);a.post(ajaxurl,d,function(e){if(&quot;1&quot;==e){a(&quot;#ajax-response&quot;).empty();f.fadeOut(&quot;normal&quot;,function(){f.remove()});a('select#parent option[value=&quot;'+d.match(/tag_ID=(\d+)/)[1]+'&quot;]').remove();a(&quot;a.tag-link-&quot;+d.match(/tag_ID=(\d+)/)[1]).remove()}else{if(&quot;-1&quot;==e){a(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.noPerm+&quot;&lt;/p&gt;&lt;/div&gt;&quot;);f.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}else{a(&quot;#ajax-response&quot;).empty().append('&lt;div class=&quot;error&quot;&gt;&lt;p&gt;'+tagsl10n.broken+&quot;&lt;/p&gt;&lt
 ;/div&gt;&quot;);f.children().css(&quot;backgroundColor&quot;,&quot;&quot;)}}});f.children().css(&quot;backgroundColor&quot;,&quot;#f33&quot;)}return false});a(&quot;#submit&quot;).click(function(){var b=a(this).parents(&quot;form&quot;);if(!validateForm(b)){return false}a.post(ajaxurl,a(&quot;#addtag&quot;).serialize(),function(h){a(&quot;#ajax-response&quot;).empty();var f=wpAjax.parseAjaxResponse(h,&quot;ajax-response&quot;);if(!f){return}var g=b.find(&quot;select#parent&quot;).val();if(g&gt;0&amp;&amp;a(&quot;#tag-&quot;+g).length&gt;0){a(&quot;.tags #tag-&quot;+g).after(f.responses[0].supplemental.noparents)}else{a(&quot;.tags&quot;).prepend(f.responses[0].supplemental.parents)}a(&quot;.tags .no-items&quot;).remove();if(b.find(&quot;select#parent&quot;)){var e=f.responses[1].supplemental;var c=&quot;&quot;;for(var d=0;d&lt;f.responses[1].position;d++){c+=&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&quot;}b.find(&quot;select#parent option:selected&quot;).after('&lt;option value=
 &quot;'+e.term_id+'&quot;&gt;'+c+e.name+&quot;&lt;/option&gt;&quot;)}a('input[type=&quot;text&quot;]:visible, textarea:visible',b).val(&quot;&quot;)});return false})});
</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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/user-profile.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/user-profile.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</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=admin_color]').attr('checked', 'checked')});
</del><ins>+                $('.color-palette').click(function(){$(this).siblings('input[name=&quot;admin_color&quot;]').attr('checked', 'checked')});
</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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/user-profile.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-admin/js/user-profile.js        2011-04-30 02:15:08 UTC (rev 17777)
</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(&quot;input[name=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;]').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);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesjswplistsdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-lists.dev.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-lists.dev.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-includes/js/wp-lists.dev.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> 
</span><span class="cx">         nonce: function(e,s) {
</span><span class="cx">                 var url = wpAjax.unserialize(e.attr('href'));
</span><del>-                return s.nonce || url._ajax_nonce || $('#' + s.element + ' input[name=_ajax_nonce]').val() || url._wpnonce || $('#' + s.element + ' input[name=_wpnonce]').val() || 0;
</del><ins>+                return s.nonce || url._ajax_nonce || $('#' + s.element + ' input[name=&quot;_ajax_nonce&quot;]').val() || url._wpnonce || $('#' + s.element + ' input[name=&quot;_wpnonce&quot;]').val() || 0;
</ins><span class="cx">         },
</span><span class="cx"> 
</span><span class="cx">         parseClass: function(e,t) {
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> 
</span><span class="cx">                 if ( !s ) { return false; }
</span><span class="cx"> 
</span><del>-                if ( !e.is(&quot;[class^=add:&quot; + list.id + &quot;:]&quot;) ) { return !wpList.add.call( list, e, s ); }
</del><ins>+                if ( !e.is('[class^=&quot;add:' + list.id + ':&quot;]') ) { return !wpList.add.call( list, e, s ); }
</ins><span class="cx"> 
</span><span class="cx">                 if ( !s.element ) { return true; }
</span><span class="cx"> 
</span><span class="lines">@@ -70,7 +70,7 @@
</span><span class="cx"> 
</span><span class="cx">                 s.nonce = wpList.nonce(e,s);
</span><span class="cx"> 
</span><del>-                es = $('#' + s.element + ' :input').not('[name=_ajax_nonce], [name=_wpnonce], [name=action]');
</del><ins>+                es = $('#' + s.element + ' :input').not('[name=&quot;_ajax_nonce&quot;], [name=&quot;_wpnonce&quot;], [name=&quot;action&quot;]');
</ins><span class="cx">                 valid = wpAjax.validateForm( '#' + s.element );
</span><span class="cx">                 if ( !valid ) { return false; }
</span><span class="cx"> 
</span><span class="lines">@@ -324,19 +324,19 @@
</span><span class="cx">                 var list = this,
</span><span class="cx">                         $el = $(el || document);
</span><span class="cx"> 
</span><del>-                $el.delegate( &quot;form[class^=add:&quot; + list.id + &quot;:]&quot;, 'submit', function(){
</del><ins>+                $el.delegate( 'form[class^=&quot;add:' + list.id + ':&quot;]', 'submit', function(){
</ins><span class="cx">                         return list.wpList.add(this);
</span><span class="cx">                 });
</span><span class="cx"> 
</span><del>-                $el.delegate( &quot;[class^=add:&quot; + list.id + &quot;:]:not(form)&quot;, 'click', function(){
</del><ins>+                $el.delegate( '[class^=&quot;add:' + list.id + ':&quot;]:not(form)', 'click', function(){
</ins><span class="cx">                         return list.wpList.add(this);
</span><span class="cx">                 });
</span><span class="cx"> 
</span><del>-                $el.delegate( &quot;[class^=delete:&quot; + list.id + &quot;:]&quot;, 'click', function(){
</del><ins>+                $el.delegate( '[class^=&quot;delete:' + list.id + ':&quot;]', 'click', function(){
</ins><span class="cx">                         return list.wpList.del(this);
</span><span class="cx">                 });
</span><span class="cx"> 
</span><del>-                $el.delegate( &quot;[class^=dim:&quot; + list.id + &quot;:]&quot;, 'click', function(){
</del><ins>+                $el.delegate( '[class^=&quot;dim:' + list.id + ':&quot;]', 'click', function(){
</ins><span class="cx">                         return list.wpList.dim(this);
</span><span class="cx">                 });
</span><span class="cx">         },
</span></span></pre></div>
<a id="trunkwpincludesjswplistsjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/wp-lists.js (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/wp-lists.js        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-includes/js/wp-lists.js        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -1 +1 @@
</span><del>-(function(b){var a={add:&quot;ajaxAdd&quot;,del:&quot;ajaxDel&quot;,dim:&quot;ajaxDim&quot;,process:&quot;process&quot;,recolor:&quot;recolor&quot;},c;c={settings:{url:ajaxurl,type:&quot;POST&quot;,response:&quot;ajax-response&quot;,what:&quot;&quot;,alt:&quot;alternate&quot;,altOffset:0,addColor:null,delColor:null,dimAddColor:null,dimDelColor:null,confirm:null,addBefore:null,addAfter:null,delBefore:null,delAfter:null,dimBefore:null,dimAfter:null},nonce:function(g,f){var d=wpAjax.unserialize(g.attr(&quot;href&quot;));return f.nonce||d._ajax_nonce||b(&quot;#&quot;+f.element+&quot; input[name=_ajax_nonce]&quot;).val()||d._wpnonce||b(&quot;#&quot;+f.element+&quot; input[name=_wpnonce]&quot;).val()||0},parseClass:function(h,f){var i=[],d;try{d=b(h).attr(&quot;class&quot;)||&quot;&quot;;d=d.match(new RegExp(f+&quot;:[\\S]+&quot;));if(d){i=d[0].split(&quot;:&quot;)}}catch(g){}return i},pre:function(i,g,d){var f,h;g=b.extend({},this.wpList.settings,{element:null,nonce:0
 ,target:i.get(0)},g||{});if(b.isFunction(g.confirm)){if(&quot;add&quot;!=d){f=b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;);b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,&quot;#FF9966&quot;)}h=g.confirm.call(this,i,g,d,f);if(&quot;add&quot;!=d){b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,f)}if(!h){return false}}return g},ajaxAdd:function(j,f){j=b(j);f=f||{};var h=this,d=c.parseClass(j,&quot;add&quot;),k,g,i;f=c.pre.call(h,j,f,&quot;add&quot;);f.element=d[2]||j.attr(&quot;id&quot;)||f.element||null;if(d[3]){f.addColor=&quot;#&quot;+d[3]}else{f.addColor=f.addColor||&quot;#FFFF33&quot;}if(!f){return false}if(!j.is(&quot;[class^=add:&quot;+h.id+&quot;:]&quot;)){return !c.add.call(h,j,f)}if(!f.element){return true}f.action=&quot;add-&quot;+f.what;f.nonce=c.nonce(j,f);k=b(&quot;#&quot;+f.element+&quot; :input&quot;).not(&quot;[name=_ajax_nonce], [name=_wpnonce], [name=action]&quot;);g=wpAjax.validateForm(&quot;#&quot;+f.element);if(!g){ret
 urn false}f.data=b.param(b.extend({_ajax_nonce:f.nonce,action:f.action},wpAjax.unserialize(d[4]||&quot;&quot;)));i=b.isFunction(k.fieldSerialize)?k.fieldSerialize():k.serialize();if(i){f.data+=&quot;&amp;&quot;+i}if(b.isFunction(f.addBefore)){f=f.addBefore(f);if(!f){return true}}if(!f.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}f.success=function(l){var e=wpAjax.parseAjaxResponse(l,f.response,f.element),m;if(!e||e.errors){return false}if(true===e){return true}jQuery.each(e.responses,function(){c.add.call(h,this.data,b.extend({},f,{pos:this.position||0,id:this.id||0,oldId:this.oldId||null}))});if(b.isFunction(f.addAfter)){m=this.complete;this.complete=function(n,o){var p=b.extend({xml:n,status:o,parsed:e},f);f.addAfter(l,p);if(b.isFunction(m)){m(n,o)}}}h.wpList.recolor();b(h).trigger(&quot;wpListAddEnd&quot;,[f,h.wpList]);c.clear.call(h,&quot;#&quot;+f.element)};b.ajax(f);return false},ajaxDel:function(i,g){i=b(i);g=g||{};var h=this,d=c.parseClass(i,&quot;delete&quot;),f
 ;g=c.pre.call(h,i,g,&quot;delete&quot;);g.element=d[2]||g.element||null;if(d[3]){g.delColor=&quot;#&quot;+d[3]}else{g.delColor=g.delColor||&quot;#faa&quot;}if(!g||!g.element){return false}g.action=&quot;delete-&quot;+g.what;g.nonce=c.nonce(i,g);g.data=b.extend({action:g.action,id:g.element.split(&quot;-&quot;).pop(),_ajax_nonce:g.nonce},wpAjax.unserialize(d[4]||&quot;&quot;));if(b.isFunction(g.delBefore)){g=g.delBefore(g,h);if(!g){return true}}if(!g.data._ajax_nonce){return true}f=b(&quot;#&quot;+g.element);if(&quot;none&quot;!=g.delColor){f.css(&quot;backgroundColor&quot;,g.delColor).fadeOut(350,function(){h.wpList.recolor();b(h).trigger(&quot;wpListDelEnd&quot;,[g,h.wpList])})}else{h.wpList.recolor();b(h).trigger(&quot;wpListDelEnd&quot;,[g,h.wpList])}g.success=function(j){var e=wpAjax.parseAjaxResponse(j,g.response,g.element),k;if(!e||e.errors){f.stop().stop().css(&quot;backgroundColor&quot;,&quot;#faa&quot;).show().queue(function(){h.wpList.recolor();b(this).dequeue()});
 return false}if(b.isFunction(g.delAfter)){k=this.complete;this.complete=function(l,m){f.queue(function(){var n=b.extend({xml:l,status:m,parsed:e},g);g.delAfter(j,n);if(b.isFunction(k)){k(l,m)}}).dequeue()}}};b.ajax(g);return false},ajaxDim:function(k,h){if(b(k).parent().css(&quot;display&quot;)==&quot;none&quot;){return false}k=b(k);h=h||{};var j=this,d=c.parseClass(k,&quot;dim&quot;),g,l,f,i;h=c.pre.call(j,k,h,&quot;dim&quot;);h.element=d[2]||h.element||null;h.dimClass=d[3]||h.dimClass||null;if(d[4]){h.dimAddColor=&quot;#&quot;+d[4]}else{h.dimAddColor=h.dimAddColor||&quot;#FFFF33&quot;}if(d[5]){h.dimDelColor=&quot;#&quot;+d[5]}else{h.dimDelColor=h.dimDelColor||&quot;#FF3333&quot;}if(!h||!h.element||!h.dimClass){return true}h.action=&quot;dim-&quot;+h.what;h.nonce=c.nonce(k,h);h.data=b.extend({action:h.action,id:h.element.split(&quot;-&quot;).pop(),dimClass:h.dimClass,_ajax_nonce:h.nonce},wpAjax.unserialize(d[6]||&quot;&quot;));if(b.isFunction(h.dimBefore)){h=h.dimBefore(h);
 if(!h){return true}}g=b(&quot;#&quot;+h.element);l=g.toggleClass(h.dimClass).is(&quot;.&quot;+h.dimClass);f=c.getColor(g);g.toggleClass(h.dimClass);i=l?h.dimAddColor:h.dimDelColor;if(&quot;none&quot;!=i){g.animate({backgroundColor:i},&quot;fast&quot;).queue(function(){g.toggleClass(h.dimClass);b(this).dequeue()}).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;);b(j).trigger(&quot;wpListDimEnd&quot;,[h,j.wpList])}})}else{b(j).trigger(&quot;wpListDimEnd&quot;,[h,j.wpList])}if(!h.data._ajax_nonce){return true}h.success=function(m){var e=wpAjax.parseAjaxResponse(m,h.response,h.element),n;if(!e||e.errors){g.stop().stop().css(&quot;backgroundColor&quot;,&quot;#FF3333&quot;)[l?&quot;removeClass&quot;:&quot;addClass&quot;](h.dimClass).show().queue(function(){j.wpList.recolor();b(this).dequeue()});return false}if(b.isFunction(h.dimAfter)){n=this.complete;this.complete=function(o,p){g.queue(function(){var q=b.extend({xml:o,status:p
 ,parsed:e},h);h.dimAfter(m,q);if(b.isFunction(n)){n(o,p)}}).dequeue()}}};b.ajax(h);return false},getColor:function(e){if(e.constructor==Object){e=e.get(0)}var f=e,d,g=new RegExp(&quot;rgba\\(\\s*0,\\s*0,\\s*0,\\s*0\\s*\\)&quot;,&quot;i&quot;);do{d=jQuery.curCSS(f,&quot;backgroundColor&quot;);if(d!=&quot;&quot;&amp;&amp;d!=&quot;transparent&quot;&amp;&amp;!d.match(g)||jQuery.nodeName(f,&quot;body&quot;)){break}}while(f=f.parentNode);return d||&quot;#ffffff&quot;},add:function(k,g){k=b(k);var i=b(this),d=false,j={pos:0,id:0,oldId:null},l,h,f;if(&quot;string&quot;==typeof g){g={what:g}}g=b.extend(j,this.wpList.settings,g);if(!k.size()||!g.what){return false}if(g.oldId){d=b(&quot;#&quot;+g.what+&quot;-&quot;+g.oldId)}if(g.id&amp;&amp;(g.id!=g.oldId||!d||!d.size())){b(&quot;#&quot;+g.what+&quot;-&quot;+g.id).remove()}if(d&amp;&amp;d.size()){d.before(k);d.remove()}else{if(isNaN(g.pos)){l=&quot;after&quot;;if(&quot;-&quot;==g.pos.substr(0,1)){g.pos=g.pos.substr(1);l=&quot;before&qu
 ot;}h=i.find(&quot;#&quot;+g.pos);if(1===h.size()){h[l](k)}else{i.append(k)}}else{if(g.pos&lt;0){i.prepend(k)}else{i.append(k)}}}if(g.alt){if((i.children(&quot;:visible&quot;).index(k[0])+g.altOffset)%2){k.removeClass(g.alt)}else{k.addClass(g.alt)}}if(&quot;none&quot;!=g.addColor){f=c.getColor(k);k.css(&quot;backgroundColor&quot;,g.addColor).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}i.each(function(){this.wpList.process(k)});return k},clear:function(h){var g=this,f,d;h=b(h);if(g.wpList&amp;&amp;h.parents(&quot;#&quot;+g.id).size()){return}h.find(&quot;:input&quot;).each(function(){if(b(this).parents(&quot;.form-no-clear&quot;).size()){return}f=this.type.toLowerCase();d=this.tagName.toLowerCase();if(&quot;text&quot;==f||&quot;password&quot;==f||&quot;textarea&quot;==d){this.value=&quot;&quot;}else{if(&quot;checkbox&quot;==f||&quot;radio&quot;==f){this.checked=false}else{if(&quot;select&quot;==d){this.selectedInde
 x=null}}}})},process:function(e){var f=this,d=b(e||document);d.delegate(&quot;form[class^=add:&quot;+f.id+&quot;:]&quot;,&quot;submit&quot;,function(){return f.wpList.add(this)});d.delegate(&quot;[class^=add:&quot;+f.id+&quot;:]:not(form)&quot;,&quot;click&quot;,function(){return f.wpList.add(this)});d.delegate(&quot;[class^=delete:&quot;+f.id+&quot;:]&quot;,&quot;click&quot;,function(){return f.wpList.del(this)});d.delegate(&quot;[class^=dim:&quot;+f.id+&quot;:]&quot;,&quot;click&quot;,function(){return f.wpList.dim(this)})},recolor:function(){var f=this,e,d;if(!f.wpList.settings.alt){return}e=b(&quot;.list-item:visible&quot;,f);if(!e.size()){e=b(f).children(&quot;:visible&quot;)}d=[&quot;:even&quot;,&quot;:odd&quot;];if(f.wpList.settings.altOffset%2){d.reverse()}e.filter(d[0]).addClass(f.wpList.settings.alt).end().filter(d[1]).removeClass(f.wpList.settings.alt)},init:function(){var d=this;d.wpList.process=function(e){d.each(function(){this.wpList.process(e)})};d.wpList.rec
 olor=function(){d.each(function(){this.wpList.recolor()})}}};b.fn.wpList=function(d){this.each(function(){var e=this;this.wpList={settings:b.extend({},c.settings,{what:c.parseClass(this,&quot;list&quot;)[1]||&quot;&quot;},d)};b.each(a,function(g,h){e.wpList[g]=function(i,f){return c[h].call(e,i,f)}})});c.init.call(this);this.wpList.process();return this}})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+(function(b){var a={add:&quot;ajaxAdd&quot;,del:&quot;ajaxDel&quot;,dim:&quot;ajaxDim&quot;,process:&quot;process&quot;,recolor:&quot;recolor&quot;},c;c={settings:{url:ajaxurl,type:&quot;POST&quot;,response:&quot;ajax-response&quot;,what:&quot;&quot;,alt:&quot;alternate&quot;,altOffset:0,addColor:null,delColor:null,dimAddColor:null,dimDelColor:null,confirm:null,addBefore:null,addAfter:null,delBefore:null,delAfter:null,dimBefore:null,dimAfter:null},nonce:function(g,f){var d=wpAjax.unserialize(g.attr(&quot;href&quot;));return f.nonce||d._ajax_nonce||b(&quot;#&quot;+f.element+' input[name=&quot;_ajax_nonce&quot;]').val()||d._wpnonce||b(&quot;#&quot;+f.element+' input[name=&quot;_wpnonce&quot;]').val()||0},parseClass:function(h,f){var i=[],d;try{d=b(h).attr(&quot;class&quot;)||&quot;&quot;;d=d.match(new RegExp(f+&quot;:[\\S]+&quot;));if(d){i=d[0].split(&quot;:&quot;)}}catch(g){}return i},pre:function(i,g,d){var f,h;g=b.extend({},this.wpList.settings,{element:null,non
 ce:0,target:i.get(0)},g||{});if(b.isFunction(g.confirm)){if(&quot;add&quot;!=d){f=b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;);b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,&quot;#FF9966&quot;)}h=g.confirm.call(this,i,g,d,f);if(&quot;add&quot;!=d){b(&quot;#&quot;+g.element).css(&quot;backgroundColor&quot;,f)}if(!h){return false}}return g},ajaxAdd:function(j,f){j=b(j);f=f||{};var h=this,d=c.parseClass(j,&quot;add&quot;),k,g,i;f=c.pre.call(h,j,f,&quot;add&quot;);f.element=d[2]||j.attr(&quot;id&quot;)||f.element||null;if(d[3]){f.addColor=&quot;#&quot;+d[3]}else{f.addColor=f.addColor||&quot;#FFFF33&quot;}if(!f){return false}if(!j.is('[class^=&quot;add:'+h.id+':&quot;]')){return !c.add.call(h,j,f)}if(!f.element){return true}f.action=&quot;add-&quot;+f.what;f.nonce=c.nonce(j,f);k=b(&quot;#&quot;+f.element+&quot; :input&quot;).not('[name=&quot;_ajax_nonce&quot;], [name=&quot;_wpnonce&quot;], [name=&quot;action&quot;]');g=wpAjax.validateForm(&quot;#&quot;
 +f.element);if(!g){return false}f.data=b.param(b.extend({_ajax_nonce:f.nonce,action:f.action},wpAjax.unserialize(d[4]||&quot;&quot;)));i=b.isFunction(k.fieldSerialize)?k.fieldSerialize():k.serialize();if(i){f.data+=&quot;&amp;&quot;+i}if(b.isFunction(f.addBefore)){f=f.addBefore(f);if(!f){return true}}if(!f.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}f.success=function(l){var e=wpAjax.parseAjaxResponse(l,f.response,f.element),m;if(!e||e.errors){return false}if(true===e){return true}jQuery.each(e.responses,function(){c.add.call(h,this.data,b.extend({},f,{pos:this.position||0,id:this.id||0,oldId:this.oldId||null}))});if(b.isFunction(f.addAfter)){m=this.complete;this.complete=function(n,o){var p=b.extend({xml:n,status:o,parsed:e},f);f.addAfter(l,p);if(b.isFunction(m)){m(n,o)}}}h.wpList.recolor();b(h).trigger(&quot;wpListAddEnd&quot;,[f,h.wpList]);c.clear.call(h,&quot;#&quot;+f.element)};b.ajax(f);return false},ajaxDel:function(i,g){i=b(i);g=g||{};var h=this,d=c.parseClass(i
 ,&quot;delete&quot;),f;g=c.pre.call(h,i,g,&quot;delete&quot;);g.element=d[2]||g.element||null;if(d[3]){g.delColor=&quot;#&quot;+d[3]}else{g.delColor=g.delColor||&quot;#faa&quot;}if(!g||!g.element){return false}g.action=&quot;delete-&quot;+g.what;g.nonce=c.nonce(i,g);g.data=b.extend({action:g.action,id:g.element.split(&quot;-&quot;).pop(),_ajax_nonce:g.nonce},wpAjax.unserialize(d[4]||&quot;&quot;));if(b.isFunction(g.delBefore)){g=g.delBefore(g,h);if(!g){return true}}if(!g.data._ajax_nonce){return true}f=b(&quot;#&quot;+g.element);if(&quot;none&quot;!=g.delColor){f.css(&quot;backgroundColor&quot;,g.delColor).fadeOut(350,function(){h.wpList.recolor();b(h).trigger(&quot;wpListDelEnd&quot;,[g,h.wpList])})}else{h.wpList.recolor();b(h).trigger(&quot;wpListDelEnd&quot;,[g,h.wpList])}g.success=function(j){var e=wpAjax.parseAjaxResponse(j,g.response,g.element),k;if(!e||e.errors){f.stop().stop().css(&quot;backgroundColor&quot;,&quot;#faa&quot;).show().queue(function(){h.wpList.recolor(
 );b(this).dequeue()});return false}if(b.isFunction(g.delAfter)){k=this.complete;this.complete=function(l,m){f.queue(function(){var n=b.extend({xml:l,status:m,parsed:e},g);g.delAfter(j,n);if(b.isFunction(k)){k(l,m)}}).dequeue()}}};b.ajax(g);return false},ajaxDim:function(k,h){if(b(k).parent().css(&quot;display&quot;)==&quot;none&quot;){return false}k=b(k);h=h||{};var j=this,d=c.parseClass(k,&quot;dim&quot;),g,l,f,i;h=c.pre.call(j,k,h,&quot;dim&quot;);h.element=d[2]||h.element||null;h.dimClass=d[3]||h.dimClass||null;if(d[4]){h.dimAddColor=&quot;#&quot;+d[4]}else{h.dimAddColor=h.dimAddColor||&quot;#FFFF33&quot;}if(d[5]){h.dimDelColor=&quot;#&quot;+d[5]}else{h.dimDelColor=h.dimDelColor||&quot;#FF3333&quot;}if(!h||!h.element||!h.dimClass){return true}h.action=&quot;dim-&quot;+h.what;h.nonce=c.nonce(k,h);h.data=b.extend({action:h.action,id:h.element.split(&quot;-&quot;).pop(),dimClass:h.dimClass,_ajax_nonce:h.nonce},wpAjax.unserialize(d[6]||&quot;&quot;));if(b.isFunction(h.dimBefo
 re)){h=h.dimBefore(h);if(!h){return true}}g=b(&quot;#&quot;+h.element);l=g.toggleClass(h.dimClass).is(&quot;.&quot;+h.dimClass);f=c.getColor(g);g.toggleClass(h.dimClass);i=l?h.dimAddColor:h.dimDelColor;if(&quot;none&quot;!=i){g.animate({backgroundColor:i},&quot;fast&quot;).queue(function(){g.toggleClass(h.dimClass);b(this).dequeue()}).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;);b(j).trigger(&quot;wpListDimEnd&quot;,[h,j.wpList])}})}else{b(j).trigger(&quot;wpListDimEnd&quot;,[h,j.wpList])}if(!h.data._ajax_nonce){return true}h.success=function(m){var e=wpAjax.parseAjaxResponse(m,h.response,h.element),n;if(!e||e.errors){g.stop().stop().css(&quot;backgroundColor&quot;,&quot;#FF3333&quot;)[l?&quot;removeClass&quot;:&quot;addClass&quot;](h.dimClass).show().queue(function(){j.wpList.recolor();b(this).dequeue()});return false}if(b.isFunction(h.dimAfter)){n=this.complete;this.complete=function(o,p){g.queue(function(){var q=b.
 extend({xml:o,status:p,parsed:e},h);h.dimAfter(m,q);if(b.isFunction(n)){n(o,p)}}).dequeue()}}};b.ajax(h);return false},getColor:function(e){if(e.constructor==Object){e=e.get(0)}var f=e,d,g=new RegExp(&quot;rgba\\(\\s*0,\\s*0,\\s*0,\\s*0\\s*\\)&quot;,&quot;i&quot;);do{d=jQuery.curCSS(f,&quot;backgroundColor&quot;);if(d!=&quot;&quot;&amp;&amp;d!=&quot;transparent&quot;&amp;&amp;!d.match(g)||jQuery.nodeName(f,&quot;body&quot;)){break}}while(f=f.parentNode);return d||&quot;#ffffff&quot;},add:function(k,g){k=b(k);var i=b(this),d=false,j={pos:0,id:0,oldId:null},l,h,f;if(&quot;string&quot;==typeof g){g={what:g}}g=b.extend(j,this.wpList.settings,g);if(!k.size()||!g.what){return false}if(g.oldId){d=b(&quot;#&quot;+g.what+&quot;-&quot;+g.oldId)}if(g.id&amp;&amp;(g.id!=g.oldId||!d||!d.size())){b(&quot;#&quot;+g.what+&quot;-&quot;+g.id).remove()}if(d&amp;&amp;d.size()){d.before(k);d.remove()}else{if(isNaN(g.pos)){l=&quot;after&quot;;if(&quot;-&quot;==g.pos.substr(0,1)){g.pos=g.pos.subst
 r(1);l=&quot;before&quot;}h=i.find(&quot;#&quot;+g.pos);if(1===h.size()){h[l](k)}else{i.append(k)}}else{if(g.pos&lt;0){i.prepend(k)}else{i.append(k)}}}if(g.alt){if((i.children(&quot;:visible&quot;).index(k[0])+g.altOffset)%2){k.removeClass(g.alt)}else{k.addClass(g.alt)}}if(&quot;none&quot;!=g.addColor){f=c.getColor(k);k.css(&quot;backgroundColor&quot;,g.addColor).animate({backgroundColor:f},{complete:function(){b(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}i.each(function(){this.wpList.process(k)});return k},clear:function(h){var g=this,f,d;h=b(h);if(g.wpList&amp;&amp;h.parents(&quot;#&quot;+g.id).size()){return}h.find(&quot;:input&quot;).each(function(){if(b(this).parents(&quot;.form-no-clear&quot;).size()){return}f=this.type.toLowerCase();d=this.tagName.toLowerCase();if(&quot;text&quot;==f||&quot;password&quot;==f||&quot;textarea&quot;==d){this.value=&quot;&quot;}else{if(&quot;checkbox&quot;==f||&quot;radio&quot;==f){this.checked=false}else{if(&quot;select&quot;
 ==d){this.selectedIndex=null}}}})},process:function(e){var f=this,d=b(e||document);d.delegate('form[class^=&quot;add:'+f.id+':&quot;]',&quot;submit&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;add:'+f.id+':&quot;]:not(form)',&quot;click&quot;,function(){return f.wpList.add(this)});d.delegate('[class^=&quot;delete:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.del(this)});d.delegate('[class^=&quot;dim:'+f.id+':&quot;]',&quot;click&quot;,function(){return f.wpList.dim(this)})},recolor:function(){var f=this,e,d;if(!f.wpList.settings.alt){return}e=b(&quot;.list-item:visible&quot;,f);if(!e.size()){e=b(f).children(&quot;:visible&quot;)}d=[&quot;:even&quot;,&quot;:odd&quot;];if(f.wpList.settings.altOffset%2){d.reverse()}e.filter(d[0]).addClass(f.wpList.settings.alt).end().filter(d[1]).removeClass(f.wpList.settings.alt)},init:function(){var d=this;d.wpList.process=function(e){d.each(function(){this.wpList.process(e)})};d.wpList.recolor=funct
 ion(){d.each(function(){this.wpList.recolor()})}}};b.fn.wpList=function(d){this.each(function(){var e=this;this.wpList={settings:b.extend({},c.settings,{what:c.parseClass(this,&quot;list&quot;)[1]||&quot;&quot;},d)};b.each(a,function(g,h){e.wpList[g]=function(i,f){return c[h].call(e,i,f)}})});c.init.call(this);this.wpList.process();return this}})(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 (17776 => 17777)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-04-29 22:33:04 UTC (rev 17776)
+++ trunk/wp-includes/script-loader.php        2011-04-30 02:15:08 UTC (rev 17777)
</span><span class="lines">@@ -110,7 +110,7 @@
</span><span class="cx">         $scripts-&gt;add( 'autosave', &quot;/wp-includes/js/autosave$suffix.js&quot;, array('schedule', 'wp-ajax-response'), '20110425' );
</span><span class="cx">         $scripts-&gt;add_data( 'autosave', 'group', 1 );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20101222' );
</del><ins>+        $scripts-&gt;add( 'wp-lists', &quot;/wp-includes/js/wp-lists$suffix.js&quot;, array('wp-ajax-response'), '20110429' );
</ins><span class="cx">         $scripts-&gt;add_data( 'wp-lists', 'group', 1 );
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3');
</span><span class="lines">@@ -265,7 +265,7 @@
</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' ), '20110401' );
</del><ins>+        $scripts-&gt;add( 'user-profile', &quot;/wp-admin/js/user-profile$suffix.js&quot;, array( 'jquery', 'password-strength-meter' ), '20110429' );
</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="lines">@@ -300,7 +300,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'admin-categories', &quot;/wp-admin/js/categories$suffix.js&quot;, array('wp-lists'), '20091201' );
</span><span class="cx">                 $scripts-&gt;add_data( 'admin-categories', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'admin-tags', &quot;/wp-admin/js/tags$suffix.js&quot;, array('jquery', 'wp-ajax-response'), '20101216' );
</del><ins>+                $scripts-&gt;add( 'admin-tags', &quot;/wp-admin/js/tags$suffix.js&quot;, array('jquery', 'wp-ajax-response'), '20110429' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'admin-tags', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'admin-tags', 'tagsl10n', array(
</span><span class="cx">                         'noPerm' =&gt; __('You do not have permission to do that.'),
</span><span class="lines">@@ -308,10 +308,10 @@
</span><span class="cx">                         'l10n_print_after' =&gt; 'try{convertEntities(tagsl10n);}catch(e){};'
</span><span class="cx">                 ));
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'admin-custom-fields', &quot;/wp-admin/js/custom-fields$suffix.js&quot;, array('wp-lists'), '20090106' );
</del><ins>+                $scripts-&gt;add( 'admin-custom-fields', &quot;/wp-admin/js/custom-fields$suffix.js&quot;, array('wp-lists'), '20110429' );
</ins><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'), '20110122' );
</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'), '20110429' );
</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">@@ -324,7 +324,7 @@
</span><span class="cx">                 $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), '20091012' );
</span><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'), '20110424' );
</del><ins>+                $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox'), '20110429' );
</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">                 $scripts-&gt;add( 'link', &quot;/wp-admin/js/link$suffix.js&quot;, array('wp-lists', 'postbox'), '20090526' );
</span><span class="cx">                 $scripts-&gt;add_data( 'link', 'group', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'comment', &quot;/wp-admin/js/comment$suffix.js&quot;, array('jquery'), '20091202' );
</del><ins>+                $scripts-&gt;add( 'comment', &quot;/wp-admin/js/comment$suffix.js&quot;, array('jquery'), '20110429' );
</ins><span class="cx">                 $scripts-&gt;add_data( 'comment', 'group', 1 );
</span><span class="cx">                 $scripts-&gt;localize( 'comment', 'commentL10n', array(
</span><span class="cx">                         'cancel' =&gt; __('Cancel'),
</span><span class="lines">@@ -386,7 +386,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' ), '20110113' );
</del><ins>+                $scripts-&gt;add( 'inline-edit-post', &quot;/wp-admin/js/inline-edit-post$suffix.js&quot;, array( 'jquery', 'suggest' ), '20110429' );
</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">@@ -423,7 +423,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'), '20091111' );
</del><ins>+                $scripts-&gt;add( 'image-edit', &quot;/wp-admin/js/image-edit$suffix.js&quot;, array('jquery', 'json2', 'imgareaselect'), '20110429' );
</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">@@ -437,7 +437,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'), '20100814' );
</del><ins>+                $scripts-&gt;add( 'nav-menu', &quot;/wp-admin/js/nav-menu$suffix.js&quot;, array('jquery-ui-sortable'), '20110429' );
</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>