<!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>[18926] trunk: Make iPad support usable again, add viewport meta, see #18863</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://core.trac.wordpress.org/changeset/18926">18926</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-10-10 04:19:05 +0000 (Mon, 10 Oct 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Make iPad support usable again, add viewport meta, see <a href="http://core.trac.wordpress.org/ticket/18863">#18863</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminincludesmiscphp">trunk/wp-admin/includes/misc.php</a></li>
<li><a href="#trunkwpadminjscommondevjs">trunk/wp-admin/js/common.dev.js</a></li>
<li><a href="#trunkwpadminjscommonjs">trunk/wp-admin/js/common.js</a></li>
<li><a href="#trunkwpadminjspostboxdevjs">trunk/wp-admin/js/postbox.dev.js</a></li>
<li><a href="#trunkwpadminjspostboxjs">trunk/wp-admin/js/postbox.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminincludesmiscphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/misc.php (18925 => 18926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/misc.php        2011-10-09 17:30:51 UTC (rev 18925)
+++ trunk/wp-admin/includes/misc.php        2011-10-10 04:19:05 UTC (rev 18926)
</span><span class="lines">@@ -584,4 +584,12 @@
</span><span class="cx"> &lt;/fieldset&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><del>-?&gt;
</del><ins>+
+function _ipad_meta() {
+        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') !== false ) { ?&gt;
+                &lt;meta name=&quot;viewport&quot; id=&quot;ipad-viewportmeta&quot; content=&quot;width=750, initial-scale=1, maximum-scale=1&quot;&gt;
+        &lt;?php
+        }
+}
+add_action('admin_head', '_ipad_meta');
+
</ins></span></pre></div>
<a id="trunkwpadminjscommondevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.dev.js (18925 => 18926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.dev.js        2011-10-09 17:30:51 UTC (rev 18925)
+++ trunk/wp-admin/js/common.dev.js        2011-10-10 04:19:05 UTC (rev 18926)
</span><span class="lines">@@ -187,7 +187,7 @@
</span><span class="cx"> 
</span><span class="cx"> $(document).ready( function() {
</span><span class="cx">         var lastClicked = false, checks, first, last, checked, menu = $('#adminmenu'),
</span><del>-                pageInput = $('input.current-page'), currentPage = pageInput.val(), folded;
</del><ins>+                pageInput = $('input.current-page'), currentPage = pageInput.val(), folded, vp = document.getElementById('ipad-viewportmeta');
</ins><span class="cx"> 
</span><span class="cx">         // admin menu
</span><span class="cx">         $('#collapse-menu', menu).click(function(){
</span><span class="lines">@@ -356,6 +356,20 @@
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="cx">         }).triggerHandler('resize');
</span><ins>+
+        // iPad orientation scale fix
+        if ( vp ) {
+                document.body.addEventListener('gesturestart', function(){
+                        if ( vp.content.indexOf('maximum-scale=1') != -1 )
+                                vp.content = 'width=750px, maximum-scale=5, initial-scale=1';
+                }, false);
+                document.body.addEventListener('gestureend', function(){
+                        setTimeout(function(){
+                                if ( vp.content.indexOf('maximum-scale=1') == -1 )
+                                        vp.content = 'width=750px, maximum-scale=1, initial-scale=1';
+                        }, 2000);
+                }, false);
+        }
</ins><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx"> // internal use
</span></span></pre></div>
<a id="trunkwpadminjscommonjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/common.js (18925 => 18926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/common.js        2011-10-09 17:30:51 UTC (rev 18925)
+++ trunk/wp-admin/js/common.js        2011-10-10 04:19:05 UTC (rev 18926)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var showNotice,adminMenu,columns,validateForm,screenMeta,autofold_menu;(function(a){adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}};columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.prop(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})},saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=funct
 ion(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&quot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={element:null,toggles:null,page:null,padding:null,top:null,map:{&quot;wp-admin-bar-screen-options&quot;:&
 quot;screen-options-wrap&quot;,&quot;wp-admin-bar-help&quot;:&quot;contextual-help-wrap&quot;},init:function(){screenMeta.element=a(&quot;#screen-meta&quot;);screenMeta.toggles=a(&quot;.screen-meta-toggle&quot;);screenMeta.page=a(&quot;#wpcontent&quot;);screenMeta.toggles.click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.map[this.id]){return}b=a(&quot;#&quot;+screenMeta.map[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){screenMeta.toggles.filter(&quot;.selected&quot;).click();c.addClass(&quot;selected&quot;);screenMeta.padding=parseInt(screenMeta.page.css(&quot;paddingTop&quot;),10);screenMeta.top=parseInt(screenMeta.element.css(&quot;top&quot;),10);b.show();screenMeta.refresh()},refresh:function(b,c){screenMeta.element.css({top:0});screenMeta.page.css({paddingTop:screenMeta.padding+screenMeta.element.outerHeight()})},close:function(b,c){screenMeta.element.
 css({top:screenMeta.top});screenMeta.page.css({paddingTop:screenMeta.padding});b.hide();c.removeClass(&quot;selected&quot;)}};a(&quot;.contextual-help-tabs&quot;).delegate(&quot;a&quot;,&quot;click focus&quot;,function(g){var f=a(this),c,d,b;g.preventDefault();if(f.is(&quot;.active a&quot;)){return false}a(&quot;.contextual-help-tabs .active&quot;).removeClass(&quot;active&quot;);f.parent(&quot;li&quot;).addClass(&quot;active&quot;);c=a(f.attr(&quot;href&quot;));a(&quot;.help-tab-content&quot;).not(c).removeClass(&quot;active&quot;).hide();c.addClass(&quot;active&quot;).show();d=a(&quot;#contextual-help-wrap&quot;).children();d.height(&quot;auto&quot;);b=Math.max.apply(null,a.map(d,function(e){return a(e).height()}));d.height(b);screenMeta.refresh()});a(document).ready(function(){var i=false,c,e,j,h,b=a(&quot;#adminmenu&quot;),d=a(&quot;input.current-page&quot;),f=d.val(),g;a(&quot;#collapse-menu&quot;,b).click(function(){var k=a(document.body);if(k.hasClass(&quot;folded&quo
 t;)){k.removeClass(&quot;folded&quot;);deleteUserSetting(&quot;mfold&quot;)}else{k.addClass(&quot;folded&quot;);setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});a(&quot;li.wp-has-submenu&quot;,b).hoverIntent({over:function(q){var l,n,r,p,k=a(this).find(&quot;.wp-submenu&quot;);l=a(this).offset().top+k.height()+1;n=a(&quot;#wpwrap&quot;).height();r=60+l-n;p=a(window).height()+a(window).scrollTop()-15;if(p&lt;(l-r)){r=l-p}if(r&gt;1){k.css({marginTop:&quot;-&quot;+r+&quot;px&quot;})}else{if(k.css(&quot;marginTop&quot;)){k.css({marginTop:&quot;&quot;})}}k.addClass(&quot;sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;)},timeout:200,sensitivity:7,interval:90});a(&quot;div.wrap h2:first&quot;).nextAll(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quot;div.wrap h2:first&quot;));screenMeta.init();a(&quot;tbo
 dy&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(k){if(&quot;undefined&quot;==k.shiftKey){return true}if(k.shiftKey){if(!i){return true}c=a(i).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);e=c.index(i);j=c.index(this);h=a(this).prop(&quot;checked&quot;);if(0&lt;e&amp;&amp;0&lt;j&amp;&amp;e!=j){c.slice(e,j).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return h}return false})}}i=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(m){var n=a(this).prop(&quot;checked&quot;),l=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,k=m.shiftKey||l;a(this).closest(&quot;table&quot;).children(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot
 ;)){return false}if(k){return a(this).prop(&quot;checked&quot;)}else{if(n){return true}}return false});a(this).closest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(k){return false}else{if(n){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(p){if(p.keyCode!=9){return true}var m=p.target,r=m.selectionStart,l=m.selectionEnd,q=m.value,k,o;try{this.lastKey=9}catch(n){}if(document.selection){m.focus();o=document.selection.createRange();o.text=&quot;\t&quot;}else{if(r&gt;=0){k=this.scrollTop;m.value=q.substring(0,r).concat(&quot;\t&quot;,q.substring(l));m.selectionStart=m.selectionEnd=r+1;th
 is.scrollTop=k}}if(p.stopPropagation){p.stopPropagation()}if(p.preventDefault){p.preventDefault()}});a(&quot;#newcontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(k){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}});if(d.length){d.closest(&quot;form&quot;).submit(function(k){if(a('select[name=&quot;action&quot;]').val()==-1&amp;&amp;a('select[name=&quot;action2&quot;]').val()==-1&amp;&amp;d.val()==f){d.val(&quot;1&quot;)}})}a(window).bind(&quot;resize.autofold&quot;,function(){if(getUserSetting(&quot;mfold&quot;)==&quot;f&quot;){return}var k=a(window).width();if(k&lt;=800){if(!g){a(document.body).addClass(&quot;folded&quot;);g=true}}else{if(g){a(document.body).removeClass(&quot;folded&quot;);g=false}}}).triggerHandler(&quot;resize&quot;)});a(document).bind(&quot;wp_CloseOnEscape&quot;,function(c,b){if(typeof(b.cb)!=&quot;function&quot;){return}if(typeof(b.condition)!=&quot;function&quot;||b.condition()){b.cb()}return true})})(jQuery);
</del><span class="cx">\ No newline at end of file
</span><ins>+var showNotice,adminMenu,columns,validateForm,screenMeta,autofold_menu;(function(a){adminMenu={init:function(){},fold:function(){},restoreMenuState:function(){},toggle:function(){},favorites:function(){}};columns={init:function(){var b=this;a(&quot;.hide-column-tog&quot;,&quot;#adv-settings&quot;).click(function(){var d=a(this),c=d.val();if(d.prop(&quot;checked&quot;)){b.checked(c)}else{b.unchecked(c)}columns.saveManageColumnsState()})},saveManageColumnsState:function(){var b=this.hidden();a.post(ajaxurl,{action:&quot;hidden-columns&quot;,hidden:b,screenoptionnonce:a(&quot;#screenoptionnonce&quot;).val(),page:pagenow})},checked:function(b){a(&quot;.column-&quot;+b).show();this.colSpanChange(+1)},unchecked:function(b){a(&quot;.column-&quot;+b).hide();this.colSpanChange(-1)},hidden:function(){return a(&quot;.manage-column&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;)},useCheckboxesForHidden:function(){this.hidden=funct
 ion(){return a(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).map(function(){var b=this.id;return b.substring(b,b.length-5)}).get().join(&quot;,&quot;)}},colSpanChange:function(b){var d=a(&quot;table&quot;).find(&quot;.colspanchange&quot;),c;if(!d.length){return}c=parseInt(d.attr(&quot;colspan&quot;),10)+b;d.attr(&quot;colspan&quot;,c.toString())}};a(document).ready(function(){columns.init()});validateForm=function(b){return !a(b).find(&quot;.form-required&quot;).filter(function(){return a(&quot;input:visible&quot;,this).val()==&quot;&quot;}).addClass(&quot;form-invalid&quot;).find(&quot;input:visible&quot;).change(function(){a(this).closest(&quot;.form-invalid&quot;).removeClass(&quot;form-invalid&quot;)}).size()};showNotice={warn:function(){var b=commonL10n.warnDelete||&quot;&quot;;if(confirm(b)){return true}return false},note:function(b){alert(b)}};screenMeta={element:null,toggles:null,page:null,padding:null,top:null,map:{&quot;wp-admin-bar-screen-options&quot;:&
 quot;screen-options-wrap&quot;,&quot;wp-admin-bar-help&quot;:&quot;contextual-help-wrap&quot;},init:function(){screenMeta.element=a(&quot;#screen-meta&quot;);screenMeta.toggles=a(&quot;.screen-meta-toggle&quot;);screenMeta.page=a(&quot;#wpcontent&quot;);screenMeta.toggles.click(screenMeta.toggleEvent)},toggleEvent:function(c){var b;c.preventDefault();if(!screenMeta.map[this.id]){return}b=a(&quot;#&quot;+screenMeta.map[this.id]);if(b.is(&quot;:visible&quot;)){screenMeta.close(b,a(this))}else{screenMeta.open(b,a(this))}},open:function(b,c){screenMeta.toggles.filter(&quot;.selected&quot;).click();c.addClass(&quot;selected&quot;);screenMeta.padding=parseInt(screenMeta.page.css(&quot;paddingTop&quot;),10);screenMeta.top=parseInt(screenMeta.element.css(&quot;top&quot;),10);b.show();screenMeta.refresh()},refresh:function(b,c){screenMeta.element.css({top:0});screenMeta.page.css({paddingTop:screenMeta.padding+screenMeta.element.outerHeight()})},close:function(b,c){screenMeta.element.
 css({top:screenMeta.top});screenMeta.page.css({paddingTop:screenMeta.padding});b.hide();c.removeClass(&quot;selected&quot;)}};a(&quot;.contextual-help-tabs&quot;).delegate(&quot;a&quot;,&quot;click focus&quot;,function(g){var f=a(this),c,d,b;g.preventDefault();if(f.is(&quot;.active a&quot;)){return false}a(&quot;.contextual-help-tabs .active&quot;).removeClass(&quot;active&quot;);f.parent(&quot;li&quot;).addClass(&quot;active&quot;);c=a(f.attr(&quot;href&quot;));a(&quot;.help-tab-content&quot;).not(c).removeClass(&quot;active&quot;).hide();c.addClass(&quot;active&quot;).show();d=a(&quot;#contextual-help-wrap&quot;).children();d.height(&quot;auto&quot;);b=Math.max.apply(null,a.map(d,function(e){return a(e).height()}));d.height(b);screenMeta.refresh()});a(document).ready(function(){var j=false,d,f,k,i,c=a(&quot;#adminmenu&quot;),e=a(&quot;input.current-page&quot;),g=e.val(),h,b=document.getElementById(&quot;ipad-viewportmeta&quot;);a(&quot;#collapse-menu&quot;,c).click(functio
 n(){var l=a(document.body);if(l.hasClass(&quot;folded&quot;)){l.removeClass(&quot;folded&quot;);deleteUserSetting(&quot;mfold&quot;)}else{l.addClass(&quot;folded&quot;);setUserSetting(&quot;mfold&quot;,&quot;f&quot;)}return false});a(&quot;li.wp-has-submenu&quot;,c).hoverIntent({over:function(r){var n,p,s,q,l=a(this).find(&quot;.wp-submenu&quot;);n=a(this).offset().top+l.height()+1;p=a(&quot;#wpwrap&quot;).height();s=60+n-p;q=a(window).height()+a(window).scrollTop()-15;if(q&lt;(n-s)){s=n-q}if(s&gt;1){l.css({marginTop:&quot;-&quot;+s+&quot;px&quot;})}else{if(l.css(&quot;marginTop&quot;)){l.css({marginTop:&quot;&quot;})}}l.addClass(&quot;sub-open&quot;)},out:function(){a(this).find(&quot;.wp-submenu&quot;).removeClass(&quot;sub-open&quot;)},timeout:200,sensitivity:7,interval:90});a(&quot;div.wrap h2:first&quot;).nextAll(&quot;div.updated, div.error&quot;).addClass(&quot;below-h2&quot;);a(&quot;div.updated, div.error&quot;).not(&quot;.below-h2, .inline&quot;).insertAfter(a(&quo
 t;div.wrap h2:first&quot;));screenMeta.init();a(&quot;tbody&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).click(function(l){if(&quot;undefined&quot;==l.shiftKey){return true}if(l.shiftKey){if(!j){return true}d=a(j).closest(&quot;form&quot;).find(&quot;:checkbox&quot;);f=d.index(j);k=d.index(this);i=a(this).prop(&quot;checked&quot;);if(0&lt;f&amp;&amp;0&lt;k&amp;&amp;f!=k){d.slice(f,k).prop(&quot;checked&quot;,function(){if(a(this).closest(&quot;tr&quot;).is(&quot;:visible&quot;)){return i}return false})}}j=this;return true});a(&quot;thead, tfoot&quot;).find(&quot;.check-column :checkbox&quot;).click(function(n){var o=a(this).prop(&quot;checked&quot;),m=&quot;undefined&quot;==typeof toggleWithKeyboard?false:toggleWithKeyboard,l=n.shiftKey||m;a(this).closest(&quot;table&quot;).children(&quot;tbody&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function()
 {if(a(this).closest(&quot;tr&quot;).is(&quot;:hidden&quot;)){return false}if(l){return a(this).prop(&quot;checked&quot;)}else{if(o){return true}}return false});a(this).closest(&quot;table&quot;).children(&quot;thead,  tfoot&quot;).filter(&quot;:visible&quot;).children().children(&quot;.check-column&quot;).find(&quot;:checkbox&quot;).prop(&quot;checked&quot;,function(){if(l){return false}else{if(o){return true}}return false})});a(&quot;#default-password-nag-no&quot;).click(function(){setUserSetting(&quot;default_password_nag&quot;,&quot;hide&quot;);a(&quot;div.default-password-nag&quot;).hide();return false});a(&quot;#newcontent&quot;).bind(&quot;keydown.wpevent_InsertTab&quot;,function(q){if(q.keyCode!=9){return true}var n=q.target,s=n.selectionStart,m=n.selectionEnd,r=n.value,l,p;try{this.lastKey=9}catch(o){}if(document.selection){n.focus();p=document.selection.createRange();p.text=&quot;\t&quot;}else{if(s&gt;=0){l=this.scrollTop;n.value=r.substring(0,s).concat(&quot;\t&quo
 t;,r.substring(m));n.selectionStart=n.selectionEnd=s+1;this.scrollTop=l}}if(q.stopPropagation){q.stopPropagation()}if(q.preventDefault){q.preventDefault()}});a(&quot;#newcontent&quot;).bind(&quot;blur.wpevent_InsertTab&quot;,function(l){if(this.lastKey&amp;&amp;9==this.lastKey){this.focus()}});if(e.length){e.closest(&quot;form&quot;).submit(function(l){if(a('select[name=&quot;action&quot;]').val()==-1&amp;&amp;a('select[name=&quot;action2&quot;]').val()==-1&amp;&amp;e.val()==g){e.val(&quot;1&quot;)}})}a(window).bind(&quot;resize.autofold&quot;,function(){if(getUserSetting(&quot;mfold&quot;)==&quot;f&quot;){return}var l=a(window).width();if(l&lt;=800){if(!h){a(document.body).addClass(&quot;folded&quot;);h=true}}else{if(h){a(document.body).removeClass(&quot;folded&quot;);h=false}}}).triggerHandler(&quot;resize&quot;);if(b){document.body.addEventListener(&quot;gesturestart&quot;,function(){if(b.content.indexOf(&quot;maximum-scale=1&quot;)!=-1){b.content=&quot;width=750px, maxim
 um-scale=5, initial-scale=1&quot;}},false);document.body.addEventListener(&quot;gestureend&quot;,function(){setTimeout(function(){if(b.content.indexOf(&quot;maximum-scale=1&quot;)==-1){b.content=&quot;width=750px, maximum-scale=1, initial-scale=1&quot;}},2000)},false)}});a(document).bind(&quot;wp_CloseOnEscape&quot;,function(c,b){if(typeof(b.cb)!=&quot;function&quot;){return}if(typeof(b.condition)!=&quot;function&quot;||b.condition()){b.cb()}return true})})(jQuery);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjspostboxdevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/postbox.dev.js (18925 => 18926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/postbox.dev.js        2011-10-09 17:30:51 UTC (rev 18925)
+++ trunk/wp-admin/js/postbox.dev.js        2011-10-10 04:19:05 UTC (rev 18926)
</span><span class="lines">@@ -1,11 +1,11 @@
</span><del>-var postboxes;
</del><ins>+var postboxes, is_iPad = navigator.userAgent.match(/iPad/);
</ins><span class="cx"> 
</span><span class="cx"> (function($) {
</span><span class="cx">         postboxes = {
</span><span class="cx">                 add_postbox_toggles : function(page, args) {
</span><span class="cx">                         this.init(page, args);
</span><span class="cx"> 
</span><del>-                        $('.postbox h3, .postbox .handlediv').click( function() {
</del><ins>+                        $('.postbox h3, .postbox .handlediv').bind('click.postboxes', function() {
</ins><span class="cx">                                 var p = $(this).parent('.postbox'), id = p.attr('id');
</span><span class="cx"> 
</span><span class="cx">                                 if ( 'dashboard_browser_nag' == id )
</span><span class="lines">@@ -26,13 +26,13 @@
</span><span class="cx">                                 e.stopPropagation();
</span><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        $('.postbox a.dismiss').click( function(e) {
</del><ins>+                        $('.postbox a.dismiss').bind('click.postboxes', function(e) {
</ins><span class="cx">                                 var hide_id = $(this).parents('.postbox').attr('id') + '-hide';
</span><span class="cx">                                 $( '#' + hide_id ).prop('checked', false).triggerHandler('click');
</span><span class="cx">                                 return false;
</span><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        $('.hide-postbox-tog').click( function() {
</del><ins>+                        $('.hide-postbox-tog').bind('click.postboxes', function() {
</ins><span class="cx">                                 var box = $(this).val();
</span><span class="cx"> 
</span><span class="cx">                                 if ( $(this).prop('checked') ) {
</span><span class="lines">@@ -48,71 +48,13 @@
</span><span class="cx">                                 postboxes._mark_area();
</span><span class="cx">                         });
</span><span class="cx"> 
</span><del>-                        $('.columns-prefs input[type=&quot;radio&quot;]').click(function(){
-                                var num = $(this).val(), i, el, done, ps = $('#poststuff'), move;
</del><ins>+                        $('.columns-prefs input[type=&quot;radio&quot;]').bind('click.postboxes', function(){
+                                var n = parseInt($(this).val(), 10), pb = postboxes;
</ins><span class="cx"> 
</span><del>-                                num = parseInt(num, 10);
-
-                                if ( ps.length ) { // edit pages
-
-                                        if ( num == 2 ) {
-                                                $('.wrap').removeClass('columns-1').addClass('columns-2');
-                                                ps.addClass('has-right-sidebar');
-
-                                                if ( !$('#side-info-column #side-sortables').length )
-                                                        $('#side-info-column').append( $('#side-sortables') );
-
-                                        } else if ( num == 1 ) {
-                                                $('.wrap').removeClass('columns-2').addClass('columns-1');
-                                                ps.removeClass('has-right-sidebar');
-
-                                                if ( !$('#post-body-content #side-sortables').length )
-                                                        $('#normal-sortables').before( $('#side-sortables') );
-                                        }
-
-                                } else { // dashboard
-                                        for ( i = 4; ( i &gt; num &amp;&amp; i &gt; 1 ); i-- ) {
-                                                el = $('#' + postboxes._colname(i) + '-sortables');
-                                                $('#' + postboxes._colname(i-1) + '-sortables').append(el.children('.postbox'));
-                                                el.parent().hide();
-                                        }
-
-                                        for ( i = num; i &gt; 0; i-- ) {
-                                                el = $('#' + postboxes._colname(i) + '-sortables');
-                                                done = false;
-
-                                                if ( el.parent().is(':hidden') ) {
-                                                        switch ( i ) {
-                                                                case 4:
-                                                                        move = $('.postbox:visible', $('#column3-sortables'));
-                                                                        if ( move.length &gt; 1 ) {
-                                                                                el.append( move.last() );
-                                                                                done = true;
-                                                                        }
-                                                                case 3:
-                                                                        move = $('.postbox:visible', $('#side-sortables'));
-                                                                        if ( !done &amp;&amp; move.length &gt; 1 ) {
-                                                                                el.append( move.last() );
-                                                                                done = true;
-                                                                        }
-                                                                case 2:
-                                                                        move = $('.postbox:visible', $('#normal-sortables'));
-                                                                        if ( !done &amp;&amp; move.length &gt; 1 ) {
-                                                                                el.append( move.last() );
-                                                                                done = true;
-                                                                        }
-                                                                default:
-                                                                        if ( !done )
-                                                                                el.addClass('empty-container')
-                                                        }
-
-                                                        el.parent().show();
-                                                }
-                                        }
-
-                                        $('.postbox-container:visible').css('width', 100/num + '%');
</del><ins>+                                if ( n ) {
+                                        pb._pb_edit(n);
+                                        pb.save_order(page);
</ins><span class="cx">                                 }
</span><del>-                                postboxes.save_order(page);
</del><span class="cx">                         });
</span><span class="cx">                 },
</span><span class="cx"> 
</span><span class="lines">@@ -137,7 +79,6 @@
</span><span class="cx">                                         }
</span><span class="cx"> 
</span><span class="cx">                                         postboxes.save_order(page);
</span><del>-                                        ui.item.parent().removeClass('temp-border');
</del><span class="cx">                                 },
</span><span class="cx">                                 receive: function(e,ui) {
</span><span class="cx">                                         if ( 'dashboard_browser_nag' == ui.item[0].id )
</span><span class="lines">@@ -146,6 +87,12 @@
</span><span class="cx">                                         postboxes._mark_area();
</span><span class="cx">                                 }
</span><span class="cx">                         });
</span><ins>+
+                        if ( navigator.userAgent.match(/iPad/) ) {
+                                $(document.body).bind('orientationchange', function(){ postboxes._pb_change(); });
+                                this._pb_change();
+                        }
+
</ins><span class="cx">                         this._mark_area();
</span><span class="cx">                 },
</span><span class="cx"> 
</span><span class="lines">@@ -195,7 +142,7 @@
</span><span class="cx">                                         return '';
</span><span class="cx">                         }
</span><span class="cx">                 },
</span><del>-                
</del><ins>+
</ins><span class="cx">                 _mark_area : function() {
</span><span class="cx">                         $('#side-info-column .meta-box-sortables:visible, #dashboard-widgets .meta-box-sortables:visible').each(function(n, el){
</span><span class="cx">                                 var t = $(this);
</span><span class="lines">@@ -207,6 +154,85 @@
</span><span class="cx">                         });
</span><span class="cx">                 },
</span><span class="cx"> 
</span><ins>+                _pb_edit : function(n) {
+                        var ps = $('#poststuff'), i, el, done, pb = postboxes, visible = $('.postbox-container:visible').length;
+
+                        if ( n == visible )
+                                return;
+
+                        if ( ps.length ) {
+                                if ( n == 2 ) {
+                                        $('.wrap').removeClass('columns-1').addClass('columns-2');
+                                        ps.addClass('has-right-sidebar');
+
+                                        if ( !$('#side-info-column #side-sortables').length )
+                                                $('#side-info-column').append( $('#side-sortables') );
+
+                                } else if ( n == 1 ) {
+                                        $('.wrap').removeClass('columns-2').addClass('columns-1');
+                                        ps.removeClass('has-right-sidebar');
+
+                                        if ( !$('#post-body-content #side-sortables').length )
+                                                $('#normal-sortables').before( $('#side-sortables') );
+                                }
+                        } else {
+                                for ( i = 4; ( i &gt; n &amp;&amp; i &gt; 1 ); i-- ) {
+                                        el = $('#' + postboxes._colname(i) + '-sortables');
+                                        $('#' + postboxes._colname(i-1) + '-sortables').append(el.children('.postbox'));
+                                        el.parent().hide();
+                                }
+
+                                for ( i = n; i &gt; 0; i-- ) {
+                                        el = $('#' + postboxes._colname(i) + '-sortables');
+                                        done = false;
+
+                                        if ( el.parent().is(':hidden') ) {
+                                                switch ( i ) {
+                                                        case 4:
+                                                                done = pb._move_one( el, $('.postbox:visible', $('#column3-sortables')) );
+                                                        case 3:
+                                                                if ( !done )
+                                                                        done = pb._move_one( el, $('.postbox:visible', $('#side-sortables')) );
+                                                        case 2:
+                                                                if ( !done )
+                                                                        done = pb._move_one( el, $('.postbox:visible', $('#normal-sortables')) );
+                                                        default:
+                                                                if ( !done )
+                                                                        el.addClass('empty-container')
+                                                }
+
+                                                el.parent().show();
+                                        }
+                                }
+
+                                $('.postbox-container:visible').css('width', 100/n + '%');
+                        }
+                },
+
+                _pb_change : function() {
+                        switch ( window.orientation ) {
+                                case 90:
+                                case -90:
+                                        this._pb_edit(2);
+                                        break;
+                                case 0:
+                                case 180:
+                                        if ( $('#poststuff').length )
+                                                this._pb_edit(1);
+                                        else
+                                                this._pb_edit(2);
+                                        break;
+                        }
+                },
+
+                _move_one : function(el, move) {
+                        if ( move.length &gt; 1 ) {
+                                el.append( move.last() );
+                                return true;
+                        }
+                        return false;
+                },
+
</ins><span class="cx">                 /* Callbacks */
</span><span class="cx">                 pbshow : false,
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminjspostboxjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/postbox.js (18925 => 18926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/postbox.js        2011-10-09 17:30:51 UTC (rev 18925)
+++ trunk/wp-admin/js/postbox.js        2011-10-10 04:19:05 UTC (rev 18926)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var postboxes;(function(a){postboxes={add_postbox_toggles:function(c,b){this.init(c,b);a(&quot;.postbox h3, .postbox .handlediv&quot;).click(function(){var d=a(this).parent(&quot;.postbox&quot;),e=d.attr(&quot;id&quot;);if(&quot;dashboard_browser_nag&quot;==e){return}d.toggleClass(&quot;closed&quot;);postboxes.save_state(c);if(e){if(!d.hasClass(&quot;closed&quot;)&amp;&amp;a.isFunction(postboxes.pbshow)){postboxes.pbshow(e)}else{if(d.hasClass(&quot;closed&quot;)&amp;&amp;a.isFunction(postboxes.pbhide)){postboxes.pbhide(e)}}}});a(&quot;.postbox h3 a&quot;).click(function(d){d.stopPropagation()});a(&quot;.postbox a.dismiss&quot;).click(function(f){var d=a(this).parents(&quot;.postbox&quot;).attr(&quot;id&quot;)+&quot;-hide&quot;;a(&quot;#&quot;+d).prop(&quot;checked&quot;,false).triggerHandler(&quot;click&quot;);return false});a(&quot;.hide-postbox-tog&quot;).click(function(){var d=a(this).val();if(a(this).prop(&quot;checked&quot;)){a(&quot;#&quot;+d).show();if(a.i
 sFunction(postboxes.pbshow)){postboxes.pbshow(d)}}else{a(&quot;#&quot;+d).hide();if(a.isFunction(postboxes.pbhide)){postboxes.pbhide(d)}}postboxes.save_state(c);postboxes._mark_area()});a('.columns-prefs input[type=&quot;radio&quot;]').click(function(){var f=a(this).val(),g,h,e,j=a(&quot;#poststuff&quot;),d;f=parseInt(f,10);if(j.length){if(f==2){a(&quot;.wrap&quot;).removeClass(&quot;columns-1&quot;).addClass(&quot;columns-2&quot;);j.addClass(&quot;has-right-sidebar&quot;);if(!a(&quot;#side-info-column #side-sortables&quot;).length){a(&quot;#side-info-column&quot;).append(a(&quot;#side-sortables&quot;))}}else{if(f==1){a(&quot;.wrap&quot;).removeClass(&quot;columns-2&quot;).addClass(&quot;columns-1&quot;);j.removeClass(&quot;has-right-sidebar&quot;);if(!a(&quot;#post-body-content #side-sortables&quot;).length){a(&quot;#normal-sortables&quot;).before(a(&quot;#side-sortables&quot;))}}}}else{for(g=4;(g&gt;f&amp;&amp;g&gt;1);g--){h=a(&quot;#&quot;+postboxes._colname(g)+&quot;-sor
 tables&quot;);a(&quot;#&quot;+postboxes._colname(g-1)+&quot;-sortables&quot;).append(h.children(&quot;.postbox&quot;));h.parent().hide()}for(g=f;g&gt;0;g--){h=a(&quot;#&quot;+postboxes._colname(g)+&quot;-sortables&quot;);e=false;if(h.parent().is(&quot;:hidden&quot;)){switch(g){case 4:d=a(&quot;.postbox:visible&quot;,a(&quot;#column3-sortables&quot;));if(d.length&gt;1){h.append(d.last());e=true}case 3:d=a(&quot;.postbox:visible&quot;,a(&quot;#side-sortables&quot;));if(!e&amp;&amp;d.length&gt;1){h.append(d.last());e=true}case 2:d=a(&quot;.postbox:visible&quot;,a(&quot;#normal-sortables&quot;));if(!e&amp;&amp;d.length&gt;1){h.append(d.last());e=true}default:if(!e){h.addClass(&quot;empty-container&quot;)}}h.parent().show()}}a(&quot;.postbox-container:visible&quot;).css(&quot;width&quot;,100/f+&quot;%&quot;)}postboxes.save_order(c)})},init:function(c,b){a.extend(this,b||{});a(&quot;#wpbody-content&quot;).css(&quot;overflow&quot;,&quot;hidden&quot;);a(&quot;.meta-box-sortables&quo
 t;).sortable({placeholder:&quot;sortable-placeholder&quot;,connectWith:&quot;.meta-box-sortables&quot;,items:&quot;.postbox&quot;,handle:&quot;.hndle&quot;,cursor:&quot;move&quot;,distance:2,tolerance:&quot;pointer&quot;,forcePlaceholderSize:true,helper:&quot;clone&quot;,opacity:0.65,stop:function(f,d){if(a(this).find(&quot;#dashboard_browser_nag&quot;).is(&quot;:visible&quot;)&amp;&amp;&quot;dashboard_browser_nag&quot;!=this.firstChild.id){a(this).sortable(&quot;cancel&quot;);return}postboxes.save_order(c);d.item.parent().removeClass(&quot;temp-border&quot;)},receive:function(f,d){if(&quot;dashboard_browser_nag&quot;==d.item[0].id){a(d.sender).sortable(&quot;cancel&quot;)}postboxes._mark_area()}});this._mark_area()},save_state:function(d){var b=a(&quot;.postbox&quot;).filter(&quot;.closed&quot;).map(function(){return this.id}).get().join(&quot;,&quot;),c=a(&quot;.postbox&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;);a.post(ajax
 url,{action:&quot;closed-postboxes&quot;,closed:b,hidden:c,closedpostboxesnonce:jQuery(&quot;#closedpostboxesnonce&quot;).val(),page:d})},save_order:function(c){var b,d=a(&quot;.columns-prefs input:checked&quot;).val()||0;b={action:&quot;meta-box-order&quot;,_ajax_nonce:a(&quot;#meta-box-order-nonce&quot;).val(),page_columns:d,page:c};a(&quot;.meta-box-sortables&quot;).each(function(){b[&quot;order[&quot;+this.id.split(&quot;-&quot;)[0]+&quot;]&quot;]=a(this).sortable(&quot;toArray&quot;).join(&quot;,&quot;)});a.post(ajaxurl,b)},_colname:function(b){switch(b){case 1:return&quot;normal&quot;;break;case 2:return&quot;side&quot;;break;case 3:return&quot;column3&quot;;break;case 4:return&quot;column4&quot;;break;default:return&quot;&quot;}},_mark_area:function(){a(&quot;#side-info-column .meta-box-sortables:visible, #dashboard-widgets .meta-box-sortables:visible&quot;).each(function(d,c){var b=a(this);if(!b.children(&quot;.postbox:visible&quot;).length){b.addClass(&quot;empty-co
 ntainer&quot;)}else{b.removeClass(&quot;empty-container&quot;)}})},pbshow:false,pbhide:false}}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+var postboxes,is_iPad=navigator.userAgent.match(/iPad/);(function(a){postboxes={add_postbox_toggles:function(c,b){this.init(c,b);a(&quot;.postbox h3, .postbox .handlediv&quot;).bind(&quot;click.postboxes&quot;,function(){var d=a(this).parent(&quot;.postbox&quot;),e=d.attr(&quot;id&quot;);if(&quot;dashboard_browser_nag&quot;==e){return}d.toggleClass(&quot;closed&quot;);postboxes.save_state(c);if(e){if(!d.hasClass(&quot;closed&quot;)&amp;&amp;a.isFunction(postboxes.pbshow)){postboxes.pbshow(e)}else{if(d.hasClass(&quot;closed&quot;)&amp;&amp;a.isFunction(postboxes.pbhide)){postboxes.pbhide(e)}}}});a(&quot;.postbox h3 a&quot;).click(function(d){d.stopPropagation()});a(&quot;.postbox a.dismiss&quot;).bind(&quot;click.postboxes&quot;,function(f){var d=a(this).parents(&quot;.postbox&quot;).attr(&quot;id&quot;)+&quot;-hide&quot;;a(&quot;#&quot;+d).prop(&quot;checked&quot;,false).triggerHandler(&quot;click&quot;);return false});a(&quot;.hide-postbox-tog&quot;).bind(&quot;
 click.postboxes&quot;,function(){var d=a(this).val();if(a(this).prop(&quot;checked&quot;)){a(&quot;#&quot;+d).show();if(a.isFunction(postboxes.pbshow)){postboxes.pbshow(d)}}else{a(&quot;#&quot;+d).hide();if(a.isFunction(postboxes.pbhide)){postboxes.pbhide(d)}}postboxes.save_state(c);postboxes._mark_area()});a('.columns-prefs input[type=&quot;radio&quot;]').bind(&quot;click.postboxes&quot;,function(){var e=parseInt(a(this).val(),10),d=postboxes;if(e){d._pb_edit(e);d.save_order(c)}})},init:function(c,b){a.extend(this,b||{});a(&quot;#wpbody-content&quot;).css(&quot;overflow&quot;,&quot;hidden&quot;);a(&quot;.meta-box-sortables&quot;).sortable({placeholder:&quot;sortable-placeholder&quot;,connectWith:&quot;.meta-box-sortables&quot;,items:&quot;.postbox&quot;,handle:&quot;.hndle&quot;,cursor:&quot;move&quot;,distance:2,tolerance:&quot;pointer&quot;,forcePlaceholderSize:true,helper:&quot;clone&quot;,opacity:0.65,stop:function(f,d){if(a(this).find(&quot;#dashboard_browser_nag&quot;
 ).is(&quot;:visible&quot;)&amp;&amp;&quot;dashboard_browser_nag&quot;!=this.firstChild.id){a(this).sortable(&quot;cancel&quot;);return}postboxes.save_order(c)},receive:function(f,d){if(&quot;dashboard_browser_nag&quot;==d.item[0].id){a(d.sender).sortable(&quot;cancel&quot;)}postboxes._mark_area()}});if(navigator.userAgent.match(/iPad/)){a(document.body).bind(&quot;orientationchange&quot;,function(){postboxes._pb_change()});this._pb_change()}this._mark_area()},save_state:function(d){var b=a(&quot;.postbox&quot;).filter(&quot;.closed&quot;).map(function(){return this.id}).get().join(&quot;,&quot;),c=a(&quot;.postbox&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;);a.post(ajaxurl,{action:&quot;closed-postboxes&quot;,closed:b,hidden:c,closedpostboxesnonce:jQuery(&quot;#closedpostboxesnonce&quot;).val(),page:d})},save_order:function(c){var b,d=a(&quot;.columns-prefs input:checked&quot;).val()||0;b={action:&quot;meta-box-order&quot;,_aja
 x_nonce:a(&quot;#meta-box-order-nonce&quot;).val(),page_columns:d,page:c};a(&quot;.meta-box-sortables&quot;).each(function(){b[&quot;order[&quot;+this.id.split(&quot;-&quot;)[0]+&quot;]&quot;]=a(this).sortable(&quot;toArray&quot;).join(&quot;,&quot;)});a.post(ajaxurl,b)},_colname:function(b){switch(b){case 1:return&quot;normal&quot;;break;case 2:return&quot;side&quot;;break;case 3:return&quot;column3&quot;;break;case 4:return&quot;column4&quot;;break;default:return&quot;&quot;}},_mark_area:function(){a(&quot;#side-info-column .meta-box-sortables:visible, #dashboard-widgets .meta-box-sortables:visible&quot;).each(function(d,c){var b=a(this);if(!b.children(&quot;.postbox:visible&quot;).length){b.addClass(&quot;empty-container&quot;)}else{b.removeClass(&quot;empty-container&quot;)}})},_pb_edit:function(h){var g=a(&quot;#poststuff&quot;),d,e,b,c=postboxes,f=a(&quot;.postbox-container:visible&quot;).length;if(h==f){return}if(g.length){if(h==2){a(&quot;.wrap&quot;).removeClass(&qu
 ot;columns-1&quot;).addClass(&quot;columns-2&quot;);g.addClass(&quot;has-right-sidebar&quot;);if(!a(&quot;#side-info-column #side-sortables&quot;).length){a(&quot;#side-info-column&quot;).append(a(&quot;#side-sortables&quot;))}}else{if(h==1){a(&quot;.wrap&quot;).removeClass(&quot;columns-2&quot;).addClass(&quot;columns-1&quot;);g.removeClass(&quot;has-right-sidebar&quot;);if(!a(&quot;#post-body-content #side-sortables&quot;).length){a(&quot;#normal-sortables&quot;).before(a(&quot;#side-sortables&quot;))}}}}else{for(d=4;(d&gt;h&amp;&amp;d&gt;1);d--){e=a(&quot;#&quot;+postboxes._colname(d)+&quot;-sortables&quot;);a(&quot;#&quot;+postboxes._colname(d-1)+&quot;-sortables&quot;).append(e.children(&quot;.postbox&quot;));e.parent().hide()}for(d=h;d&gt;0;d--){e=a(&quot;#&quot;+postboxes._colname(d)+&quot;-sortables&quot;);b=false;if(e.parent().is(&quot;:hidden&quot;)){switch(d){case 4:b=c._move_one(e,a(&quot;.postbox:visible&quot;,a(&quot;#column3-sortables&quot;)));case 3:if(!b){b=
 c._move_one(e,a(&quot;.postbox:visible&quot;,a(&quot;#side-sortables&quot;)))}case 2:if(!b){b=c._move_one(e,a(&quot;.postbox:visible&quot;,a(&quot;#normal-sortables&quot;)))}default:if(!b){e.addClass(&quot;empty-container&quot;)}}e.parent().show()}}a(&quot;.postbox-container:visible&quot;).css(&quot;width&quot;,100/h+&quot;%&quot;)}},_pb_change:function(){switch(window.orientation){case 90:case -90:this._pb_edit(2);break;case 0:case 180:if(a(&quot;#poststuff&quot;).length){this._pb_edit(1)}else{this._pb_edit(2)}break}},_move_one:function(c,b){if(b.length&gt;1){c.append(b.last());return true}return false},pbshow:false,pbhide:false}}(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 (18925 => 18926)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-10-09 17:30:51 UTC (rev 18925)
+++ trunk/wp-includes/script-loader.php        2011-10-10 04:19:05 UTC (rev 18926)
</span><span class="lines">@@ -61,7 +61,7 @@
</span><span class="cx"> 
</span><span class="cx">         $scripts-&gt;add( 'utils', &quot;/wp-admin/js/utils$suffix.js&quot;, false, '20101110' );
</span><span class="cx"> 
</span><del>-        $scripts-&gt;add( 'common', &quot;/wp-admin/js/common$suffix.js&quot;, array('jquery', 'hoverIntent', 'utils'), '20111005', 1 );
</del><ins>+        $scripts-&gt;add( 'common', &quot;/wp-admin/js/common$suffix.js&quot;, array('jquery', 'hoverIntent', 'utils'), '20111009', 1 );
</ins><span class="cx">         $scripts-&gt;add_script_data( 'common', 'commonL10n', array(
</span><span class="cx">                 'warnDelete' =&gt; __(&quot;You are about to permanently delete the selected items.\n  'Cancel' to stop, 'OK' to delete.&quot;)
</span><span class="cx">         ) );
</span><span class="lines">@@ -305,7 +305,7 @@
</span><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'xfn', &quot;/wp-admin/js/xfn$suffix.js&quot;, array('jquery'), '20110524', 1 );
</span><span class="cx"> 
</span><del>-                $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), '20111009', 1 );
</del><ins>+                $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), '20111009a', 1 );
</ins><span class="cx"> 
</span><span class="cx">                 $scripts-&gt;add( 'post', &quot;/wp-admin/js/post$suffix.js&quot;, array('suggest', 'wp-lists', 'postbox'), '20110524', 1 );
</span><span class="cx">                 $scripts-&gt;add_script_data( 'post', 'postL10n', array(
</span></span></pre>
</div>
</div>

</body>
</html>