<!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>[18694] trunk: The rest of add missing var in postbox.js, see #18198</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/18694">18694</a></dd>
<dt>Author</dt> <dd>azaozz</dd>
<dt>Date</dt> <dd>2011-09-16 23:28:40 +0000 (Fri, 16 Sep 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>The rest of add missing var in postbox.js, see <a href="http://core.trac.wordpress.org/ticket/18198">#18198</a></pre>

<h3>Modified Paths</h3>
<ul>
<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="trunkwpadminjspostboxjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/postbox.js (18693 => 18694)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/postbox.js        2011-09-16 23:26:42 UTC (rev 18693)
+++ trunk/wp-admin/js/postbox.js        2011-09-16 23:28:40 UTC (rev 18694)
</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)});a('.columns-prefs input[type=&quot;radio&quot;]').click(function(){var d=a(this).val(),e=a(&quot;#poststuff&quot;);if(d==&quot;auto&quot;){setUserSetting(&quot;responsive&quot;,&quot;1&quot;);a(document.body).addClass(&quot;responsive&quot;);a(window).bind(&quot;resize.responsive&quot;,function(){postboxes.auto_columns()});if(e.length){wrap.removeClass(&quot;columns-1&quot;).removeClass(&quot;columns-2&quot;)}postboxes.auto_columns()}else{d=parseInt(d,10);deleteUserSetting(&quot;responsive&quot;);a(document.body).removeClass(&quot;responsive&quot;);if(e.length){if(d==2){wrap.removeClass(&quot;columns-1&quot;).addClass(&quot;columns-2&quot;);e.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;))}}e
 lse{if(d==1){wrap.removeClass(&quot;columns-2&quot;).addClass(&quot;columns-1&quot;);e.removeClass(&quot;has-right-sidebar&quot;);a(&quot;#normal-sortables&quot;).before(a(&quot;#side-sortables&quot;))}}}else{postboxes._dash_columns(d)}}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&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);d.item.parent().removeClass(&quot;temp-border&quot;)},receive:fun
 ction(f,d){if(&quot;dashboard_browser_nag&quot;==d.item[0].id){a(d.sender).sortable(&quot;cancel&quot;)}}})},save_state:function(d){var b=a(&quot;.postbox&quot;).filter(&quot;.closed&quot;).map(function(){return this.id}).get().join(&quot;,&quot;),c=a(&quot;.postbox&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;);a.post(ajaxurl,{action:&quot;closed-postboxes&quot;,closed:b,hidden:c,closedpostboxesnonce:jQuery(&quot;#closedpostboxesnonce&quot;).val(),page:d})},save_order:function(c){var b,d=a(&quot;.columns-prefs input:checked&quot;).val()||0;b={action:&quot;meta-box-order&quot;,_ajax_nonce:a(&quot;#meta-box-order-nonce&quot;).val(),page_columns:d,page:c};a(&quot;.meta-box-sortables&quot;).each(function(){b[&quot;order[&quot;+this.id.split(&quot;-&quot;)[0]+&quot;]&quot;]=a(this).sortable(&quot;toArray&quot;).join(&quot;,&quot;)});a.post(ajaxurl,b)},auto_columns:function(){var c,b;if(!a(document.body).hasClass(&quot;responsive&quot
 ;)){return}if(adminpage==&quot;post-php&quot;){c=a(&quot;#post-body&quot;).width();if(c&lt;800){a(&quot;#poststuff&quot;).removeClass(&quot;has-right-sidebar&quot;);a(&quot;#normal-sortables&quot;).before(a(&quot;#side-sortables&quot;))}if(c&gt;=800&amp;&amp;c&lt;1150){a(&quot;#poststuff&quot;).addClass(&quot;has-right-sidebar&quot;);a(&quot;#side-info-column&quot;).append(a(&quot;#side-sortables&quot;));a(document.body).removeClass(&quot;wide-window&quot;)}if(c&gt;=1150){a(document.body).addClass(&quot;wide-window&quot;)}}else{if(adminpage==&quot;index-php&quot;){b=a(&quot;#dashboard-widgets-wrap&quot;).width();if(b&lt;700){this._dash_columns(1)}if(b&gt;=700&amp;&amp;b&lt;1100){this._dash_columns(2)}if(b&gt;=1100&amp;&amp;b&lt;1500){this._dash_columns(3)}if(b&gt;=1500){this._dash_columns(4)}}}},_dash_columns:function(b){switch(b){case 1:a(&quot;#postbox-container-1&quot;).append(a(&quot;#side-sortables, #column3-sortables, #column4-sortables&quot;));a(&quot;#postbox-contain
 er-2, #postbox-container-3, #postbox-container-4&quot;).hide();break;case 2:a(&quot;#postbox-container-2&quot;).append(a(&quot;#side-sortables, #column3-sortables, #column4-sortables&quot;)).show();a(&quot;#postbox-container-3, #postbox-container-4&quot;).hide();break;case 3:a(&quot;#postbox-container-2&quot;).append(a(&quot;#side-sortables&quot;)).show();a(&quot;#postbox-container-3&quot;).append(a(&quot;#column3-sortables, #column4-sortables&quot;)).show();a(&quot;#postbox-container-4&quot;).hide();break;case 4:a(&quot;#postbox-container-2&quot;).append(a(&quot;#side-sortables&quot;)).show();a(&quot;#postbox-container-3&quot;).append(a(&quot;#column3-sortables&quot;)).show();a(&quot;#postbox-container-4&quot;).append(a(&quot;#column4-sortables&quot;)).show();break;default:return}a(&quot;.postbox-container:visible&quot;).css(&quot;width&quot;,100/b+&quot;%&quot;)},_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;}},pbshow:false,pbhide:false};a(document).ready(function(){if(a(&quot;#wp_auto_columns&quot;).prop(&quot;checked&quot;)){setUserSetting(&quot;responsive&quot;,&quot;1&quot;);a(document.body).addClass(&quot;responsive&quot;)}if(a(document.body).hasClass(&quot;responsive&quot;)){a(window).bind(&quot;resize.responsive&quot;,function(){postboxes.auto_columns()});postboxes.auto_columns()}})}(jQuery));
</del><span class="cx">\ No newline at end of file
</span><ins>+var postboxes;(function(a){postboxes={add_postbox_toggles:function(c,b){this.init(c,b);a(&quot;.postbox h3, .postbox .handlediv&quot;).click(function(){var 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)});a('.columns-prefs input[type=&quot;radio&quot;]').click(function(){var d=a(this).val(),f=a(&quot;#poststuff&quot;),e=a(&quot;.wrap&quot;).first();if(d==&quot;auto&quot;){setUserSetting(&quot;responsive&quot;,&quot;1&quot;);a(document.body).addClass(&quot;responsive&quot;);a(window).bind(&quot;resize.responsive&quot;,function(){postboxes.auto_columns()});if(f.length){e.removeClass(&quot;columns-1&quot;).removeClass(&quot;columns-2&quot;)}postboxes.auto_columns()}else{d=parseInt(d,10);deleteUserSetting(&quot;responsive&quot;);a(document.body).removeClass(&quot;responsive&quot;);if(f.length){if(d==2){e.removeClass(&quot;columns-1&quot;).addClass(&quot;columns-2&quot;);f.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(d==1){e.removeClass(&quot;columns-2&quot;).addClass(&quot;columns-1&quot;);f.removeClass(&quot;has-right-sidebar&quot;);a(&quot;#normal-sortables&quot;).before(a(&quot;#side-sortables&quot;))}}}else{postboxes._dash_columns(d)}}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&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);d.item.parent().removeClass(&quot;temp-bord
 er&quot;)},receive:function(f,d){if(&quot;dashboard_browser_nag&quot;==d.item[0].id){a(d.sender).sortable(&quot;cancel&quot;)}}})},save_state:function(d){var b=a(&quot;.postbox&quot;).filter(&quot;.closed&quot;).map(function(){return this.id}).get().join(&quot;,&quot;),c=a(&quot;.postbox&quot;).filter(&quot;:hidden&quot;).map(function(){return this.id}).get().join(&quot;,&quot;);a.post(ajaxurl,{action:&quot;closed-postboxes&quot;,closed:b,hidden:c,closedpostboxesnonce:jQuery(&quot;#closedpostboxesnonce&quot;).val(),page:d})},save_order:function(c){var b,d=a(&quot;.columns-prefs input:checked&quot;).val()||0;b={action:&quot;meta-box-order&quot;,_ajax_nonce:a(&quot;#meta-box-order-nonce&quot;).val(),page_columns:d,page:c};a(&quot;.meta-box-sortables&quot;).each(function(){b[&quot;order[&quot;+this.id.split(&quot;-&quot;)[0]+&quot;]&quot;]=a(this).sortable(&quot;toArray&quot;).join(&quot;,&quot;)});a.post(ajaxurl,b)},auto_columns:function(){var c,b;if(!a(document.body).hasClass
 (&quot;responsive&quot;)){return}if(adminpage==&quot;post-php&quot;){c=a(&quot;#post-body&quot;).width();if(c&lt;800){a(&quot;#poststuff&quot;).removeClass(&quot;has-right-sidebar&quot;);a(&quot;#normal-sortables&quot;).before(a(&quot;#side-sortables&quot;))}if(c&gt;=800&amp;&amp;c&lt;1150){a(&quot;#poststuff&quot;).addClass(&quot;has-right-sidebar&quot;);a(&quot;#side-info-column&quot;).append(a(&quot;#side-sortables&quot;));a(document.body).removeClass(&quot;wide-window&quot;)}if(c&gt;=1150){a(document.body).addClass(&quot;wide-window&quot;)}}else{if(adminpage==&quot;index-php&quot;){b=a(&quot;#dashboard-widgets-wrap&quot;).width();if(b&lt;700){this._dash_columns(1)}if(b&gt;=700&amp;&amp;b&lt;1100){this._dash_columns(2)}if(b&gt;=1100&amp;&amp;b&lt;1500){this._dash_columns(3)}if(b&gt;=1500){this._dash_columns(4)}}}},_dash_columns:function(b){switch(b){case 1:a(&quot;#postbox-container-1&quot;).append(a(&quot;#side-sortables, #column3-sortables, #column4-sortables&quot;));a(
 &quot;#postbox-container-2, #postbox-container-3, #postbox-container-4&quot;).hide();break;case 2:a(&quot;#postbox-container-2&quot;).append(a(&quot;#side-sortables, #column3-sortables, #column4-sortables&quot;)).show();a(&quot;#postbox-container-3, #postbox-container-4&quot;).hide();break;case 3:a(&quot;#postbox-container-2&quot;).append(a(&quot;#side-sortables&quot;)).show();a(&quot;#postbox-container-3&quot;).append(a(&quot;#column3-sortables, #column4-sortables&quot;)).show();a(&quot;#postbox-container-4&quot;).hide();break;case 4:a(&quot;#postbox-container-2&quot;).append(a(&quot;#side-sortables&quot;)).show();a(&quot;#postbox-container-3&quot;).append(a(&quot;#column3-sortables&quot;)).show();a(&quot;#postbox-container-4&quot;).append(a(&quot;#column4-sortables&quot;)).show();break;default:return}a(&quot;.postbox-container:visible&quot;).css(&quot;width&quot;,100/b+&quot;%&quot;)},_colname:function(b){switch(b){case 1:return&quot;normal&quot;;break;case 2:return&quot;s
 ide&quot;;break;case 3:return&quot;column3&quot;;break;case 4:return&quot;column4&quot;;break;default:return&quot;&quot;}},pbshow:false,pbhide:false};a(document).ready(function(){if(a(&quot;#wp_auto_columns&quot;).prop(&quot;checked&quot;)){setUserSetting(&quot;responsive&quot;,&quot;1&quot;);a(document.body).addClass(&quot;responsive&quot;)}if(a(document.body).hasClass(&quot;responsive&quot;)){a(window).bind(&quot;resize.responsive&quot;,function(){postboxes.auto_columns()});postboxes.auto_columns()}})}(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 (18693 => 18694)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2011-09-16 23:26:42 UTC (rev 18693)
+++ trunk/wp-includes/script-loader.php        2011-09-16 23:28:40 UTC (rev 18694)
</span><span class="lines">@@ -279,7 +279,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'), '20110913', 1 );
</del><ins>+                $scripts-&gt;add( 'postbox', &quot;/wp-admin/js/postbox$suffix.js&quot;, array('jquery-ui-sortable'), '20110916', 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>