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

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15214">15214</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-06-11 05:19:36 +0000 (Fri, 11 Jun 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Horizontal scrolling/resizing fixes for nav menu UI. Also some RTL fixes. props koopersmith, see <a href="http://trac.wordpress.org/ticket/13525">#13525</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadmincssnavmenurtlcss">trunk/wp-admin/css/nav-menu-rtl.css</a></li>
<li><a href="#trunkwpadmincssnavmenurtldevcss">trunk/wp-admin/css/nav-menu-rtl.dev.css</a></li>
<li><a href="#trunkwpadmincssnavmenucss">trunk/wp-admin/css/nav-menu.css</a></li>
<li><a href="#trunkwpadmincssnavmenudevcss">trunk/wp-admin/css/nav-menu.dev.css</a></li>
<li><a href="#trunkwpadminincludesnavmenuphp">trunk/wp-admin/includes/nav-menu.php</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="#trunkwpadminnavmenusphp">trunk/wp-admin/nav-menus.php</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincssnavmenurtlcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/nav-menu-rtl.css (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu-rtl.css        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/css/nav-menu-rtl.css        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -1 +1 @@
</span><del>-#nav-menus-frame{margin-right:300px;margin-left:0;}#wpbody-content #menu-settings-column{margin-right:-300px;margin-left:0;float:right;}#menu-management-liquid{float:right;}#menu-management{margin-left:20px;margin-right:0;}#post-body{padding:0 10px 10px 0;}.post-body-plain{padding:10px 0 0 10px;}#menu-management .nav-tabs-arrow-left{right:0;left:auto;}#menu-management .nav-tabs-arrow-right{left:0;right:auto;text-align:left;}#menu-management .nav-tabs{padding-right:20px;padding-left:10px;}.js #menu-management .nav-tabs{float:right;margin-right:0;margin-left:-400px;}#select-nav-menu-container{text-align:left;}#wpbody .open-label{float:right;}#wpbody .open-label span{padding-left:10px;padding-right:0;}.js .input-with-default-title{font-style:normal;font-weight:bold;}.postbox .howto input{float:left;}#nav-menu-theme-locations .button-controls{text-align:left;}.meta-sep,.submitdelete,.submitcancel{float:right;}#cancel-save{margin-right:20px;margin-left:0;}.list-controls{float:right;}.add-to-menu{float:left;}#add-custom-link label span{float:right;padding-left:5px;padding-right:0;}.howto span{float:right;}.list li .menu-item-title input{margin-left:3px;margin-right:0;}.menu-item-handle{padding-right:10px;padding-left:0;}.menu-item-edit-active .menu-item-handle{-moz-border-radius:6px 0 0 6px;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;}.menu-item-handle .item-title{margin-left:13em;margin-right:0;}.menu-item-depth-0{margin-right:0;margin-left:0;}.menu-item-depth-1{margin-right:30px;margin-left:0;}.menu-item-depth-2{margin-right:60px;margin-left:0;}.menu-item-depth-3{margin-right:90px;margin-left:0;}.menu-item-depth-4{margin-right:120px;margin-left:0;}.menu-item-depth-5{margin-right:150px;margin-left:0;}.menu-item-depth-6{margin-right:180px;margin-left:0;}.menu-item-depth-7{margin-right:210px;margin-left:0;}.menu-item-depth-8{margin-right:240px;margin-left:0;}.menu-item-depth-9{margin-right:270px;margin-left:0;}.menu-item-depth-10{margin-right:300px;margin-left:0;}.menu-item-depth-11{margin-right:330px;margin-left:0;}.menu-item-depth-0 .menu-item-transport{margin-right:0;margin-left:0;}.menu-item-depth-1 .menu-item-transport{margin-right:-30px;margin-left:0;}.menu-item-depth-2 .menu-item-transport{margin-right:-60px;margin-left:0;}.menu-item-depth-3 .menu-item-transport{margin-right:-90px;margin-left:0;}.menu-item-depth-4 .menu-item-transport{margin-right:-120px;margin-left:0;}.menu-item-depth-5 .menu-item-transport{margin-right:-150px;margin-left:0;}.menu-item-depth-6 .menu-item-transport{margin-right:-180px;margin-left:0;}.menu-item-depth-7 .menu-item-transport{margin-right:-210px;margin-left:0;}.menu-item-depth-8 .menu-item-transport{margin-right:-240px;margin-left:0;}.menu-item-depth-9 .menu-item-transport{margin-right:-270px;margin-left:0;}.menu-item-depth-10 .menu-item-transport{margin-right:-300px;margin-left:0;}.menu-item-depth-11 .menu-item-transport{margin-right:-330px;margin-left:0;}.item-type{padding-left:10px;padding-right:0;}.item-controls{left:20px;right:auto;}.item-controls .item-order{padding-left:10px;padding-right:0;}.item-edit{background-image:url(&quot;../images/menu-bits-rtl.gif?ver=20100531&quot;);background-position:100% -105px;left:-20px;right:auto;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:0;-webkit-border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:3px;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:3px;border-bottom-left-radius:0;}.menu-item-settings{padding:10px 10px 10px 0;border-width:0 1px 1px 1px;}.link-to-original{font-style:normal;font-weight:bold;}.link-to-original a{padding-right:4px;padding-left:0;}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-left:10px;margin-right:0;float:right;}.major-publishing-actions .publishing-action{text-align:left;float:left;}.major-publishing-actions .delete-action{text-align:right;float:right;padding-left:15px;padding-right:0;}.menu-name-label{margin-left:15px;margin-right:0;}.auto-add-pages{float:right;}
</del><span class="cx">\ No newline at end of file
</span><ins>+#nav-menus-frame{margin-right:300px;margin-left:0;}#wpbody-content #menu-settings-column{margin-right:-300px;margin-left:0;float:right;}#menu-management-liquid{float:right;}#menu-management{margin-left:20px;margin-right:0;}#post-body{padding:0 10px 10px 0;}.post-body-plain{padding:10px 0 0 10px;}#menu-management .nav-tabs-arrow-left{right:0;left:auto;}#menu-management .nav-tabs-arrow-right{left:0;right:auto;text-align:left;}#menu-management .nav-tabs{padding-right:20px;padding-left:10px;}.js #menu-management .nav-tabs{float:right;margin-right:0;margin-left:-400px;}#select-nav-menu-container{text-align:left;}#wpbody .open-label{float:right;}#wpbody .open-label span{padding-left:10px;padding-right:0;}.js .input-with-default-title{font-style:normal;font-weight:bold;}.postbox .howto input{float:left;}#nav-menu-theme-locations .button-controls{text-align:left;}.meta-sep,.submitdelete,.submitcancel{float:right;}#cancel-save{margin-right:20px;margin-left:0;}.list-controls{float:right;}.add-to-menu{float:left;}#add-custom-link label span{float:right;padding-left:5px;padding-right:0;}.howto span{float:right;}.list li .menu-item-title input{margin-left:3px;margin-right:0;}.menu-item-handle{padding-right:10px;padding-left:0;}.menu-item-edit-active .menu-item-handle{-moz-border-radius:6px 6px 0 0;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;}.menu-item-handle .item-title{margin-left:13em;margin-right:0;}.menu-item-depth-0{margin-right:0;margin-left:0;}.menu-item-depth-1{margin-right:30px;margin-left:0;}.menu-item-depth-2{margin-right:60px;margin-left:0;}.menu-item-depth-3{margin-right:90px;margin-left:0;}.menu-item-depth-4{margin-right:120px;margin-left:0;}.menu-item-depth-5{margin-right:150px;margin-left:0;}.menu-item-depth-6{margin-right:180px;margin-left:0;}.menu-item-depth-7{margin-right:210px;margin-left:0;}.menu-item-depth-8{margin-right:240px;margin-left:0;}.menu-item-depth-9{margin-right:270px;margin-left:0;}.menu-item-depth-10{margin-right:300px;margin-left:0;}.menu-item-depth-11{margin-right:330px;margin-left:0;}.menu-item-depth-0 .menu-item-transport{margin-right:0;margin-left:0;}.menu-item-depth-1 .menu-item-transport{margin-right:-30px;margin-left:0;}.menu-item-depth-2 .menu-item-transport{margin-right:-60px;margin-left:0;}.menu-item-depth-3 .menu-item-transport{margin-right:-90px;margin-left:0;}.menu-item-depth-4 .menu-item-transport{margin-right:-120px;margin-left:0;}.menu-item-depth-5 .menu-item-transport{margin-right:-150px;margin-left:0;}.menu-item-depth-6 .menu-item-transport{margin-right:-180px;margin-left:0;}.menu-item-depth-7 .menu-item-transport{margin-right:-210px;margin-left:0;}.menu-item-depth-8 .menu-item-transport{margin-right:-240px;margin-left:0;}.menu-item-depth-9 .menu-item-transport{margin-right:-270px;margin-left:0;}.menu-item-depth-10 .menu-item-transport{margin-right:-300px;margin-left:0;}.menu-item-depth-11 .menu-item-transport{margin-right:-330px;margin-left:0;}.item-type{padding-left:10px;padding-right:0;}.item-controls{left:20px;right:auto;}.item-controls .item-order{padding-left:10px;padding-right:0;}.item-edit{background-image:url(&quot;../images/menu-bits-rtl.gif?ver=20100531&quot;);background-position:100% -105px;left:-20px;right:auto;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:0;-webkit-border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:3px;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:3px;border-bottom-left-radius:0;}.menu-item-settings{padding:10px 10px 10px 0;border-width:0 1px 1px 1px;}.link-to-original{font-style:normal;font-weight:bold;}.link-to-original a{padding-right:4px;padding-left:0;}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-left:10px;margin-right:0;float:right;}.major-publishing-actions .publishing-action{text-align:left;float:left;}.major-publishing-actions .delete-action{text-align:right;float:right;padding-left:15px;padding-right:0;}.menu-name-label{margin-left:15px;margin-right:0;}.auto-add-pages{float:right;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincssnavmenurtldevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/nav-menu-rtl.dev.css (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu-rtl.dev.css        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/css/nav-menu-rtl.dev.css        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx">         padding-left: 0;
</span><span class="cx"> }
</span><span class="cx"> .menu-item-edit-active .menu-item-handle {
</span><del>-        -moz-border-radius: 6px 0 0 6px;
</del><ins>+        -moz-border-radius: 6px 6px 0 0;
</ins><span class="cx">         -webkit-border-bottom-left-radius: 0;
</span><span class="cx">         -webkit-border-bottom-right-radius: 0;
</span><span class="cx">         -khtml-border-bottom-left-radius: 0;
</span></span></pre></div>
<a id="trunkwpadmincssnavmenucss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/nav-menu.css (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu.css        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/css/nav-menu.css        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -1 +1 @@
</span><del>-html,body{min-width:950px;}#nav-menus-frame{margin-left:300px;}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-left:-300px;clear:both;float:left;padding-top:24px;}.no-js #wpbody-content #menu-settings-column{padding-top:31px;}#menu-settings-column .inside{clear:both;padding:0 10px;}.metabox-holder-disabled .postbox{opacity:.5;filter:alpha(opacity=50);}.metabox-holder-disabled .button-controls .select-all{display:none;}#wpbody{position:relative;}#menu-management-liquid{float:left;min-width:100%;}#menu-management{position:relative;margin-right:20px;margin-top:-3px;width:100%;}#menu-management .menu-edit{margin-bottom:20px;}#nav-menu-header,#post-body{border-color:#ccc;border-style:solid;}#nav-menu-header{border-width:1px 1px 0 1px;-moz-border-radius-topleft:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-topright:6px;-webkit-border-top-right-radius:6px;-khtml-border-top-right-radius:6px;border-top-right-radius:6px;}#post-body{background:#fff;padding:10px;border-width:0 1px 1px 1px;-moz-border-radius-bottomleft:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-moz-border-radius-bottomright:6px;-webkit-border-bottom-right-radius:6px;-khtml-border-bottom-right-radius:6px;border-bottom-right-radius:6px;}#post-body div.updated{margin:0;}#post-body-content{position:relative;}#menu-management .menu-add-new abbr{font-weight:bold;}#menu-management .nav-tabs-nav{margin:0 20px;}#menu-management .nav-tabs-arrow{width:10px;padding:0 5px 4px;cursor:pointer;position:absolute;top:0;line-height:22px;font-size:18px;text-shadow:0 1px 0 #fff;}#menu-management .nav-tabs-arrow a{color:#C1C1C1;}#menu-management .nav-tabs-arrow a:hover{color:#D54E21;}#menu-management .nav-tabs-arrow a:active{color:#464646;}#menu-management .nav-tabs-arrow-left{left:0;}#menu-management .nav-tabs-arrow-right{right:0;text-align:right;}#menu-management .nav-tabs-wrapper{width:100%;height:28px;margin-bottom:-1px;overflow:hidden;}#menu-management .nav-tabs{padding-left:20px;padding-right:10px;}.js #menu-management .nav-tabs{float:left;margin-left:0;margin-right:-400px;}#menu-management .nav-tab{margin-bottom:0;background:#f4f4f4;font-weight:bold;border-color:#dfdfdf;}#menu-management .nav-tab-active{border-color:#ccc;}#select-nav-menu-container{text-align:right;padding:0 10px 3px 10px;margin-bottom:5px;}#select-nav-menu{width:100px;display:inline;}#menu-name-label{margin-top:-2px;}#wpbody .open-label{display:block;float:left;}#wpbody .open-label span{padding-right:10px;}.js .input-with-default-title{color:#aaa;font-style:italic;}#menu-management .inside{padding:0 10px;}.postbox .howto input{width:180px;float:right;}.customlinkdiv .howto input{width:210px;}#nav-menu-theme-locations .howto select{width:100%;}#nav-menu-theme-locations .button-controls{text-align:right;}.add-menu-item-view-all{height:400px;}#menu-container .submit{margin:0 0 10px;padding:0;}.meta-sep,.submitdelete,.submitcancel{display:block;float:left;font-size:11px;margin:4px 0;line-height:15px;}.meta-sep{padding:0 2px;}#cancel-save{color:#f00;text-decoration:underline;font-size:11px;margin-left:20px;margin-top:5px;}#cancel-save:hover{background-color:#F00;color:#fff;}.list-controls{float:left;margin-top:5px;}.add-to-menu{float:right;}.postbox img.waiting{display:none;vertical-align:middle;}.button-controls{clear:both;margin:10px 0;}.show-all,.hide-all{cursor:pointer;}.hide-all{display:none;}#menu-name{width:270px;}#manage-menu .inside{padding:0;}#available-links dt{display:block;}#add-custom-link .howto{font-size:11px;}#add-custom-link label span{display:block;float:left;margin-top:5px;padding-right:5px;}.menu-item-textbox{width:180px;}.howto span{margin-top:4px;display:block;float:left;}.quick-search{width:190px;}.list-wrap{display:none;clear:both;margin-bottom:10px;}.list-container{max-height:200px;overflow-y:auto;padding:10px 10px 5px;border:1px solid #DFDFDF;-moz-border-radius:4px;}.postbox p.submit{margin-bottom:0;}.list li{display:none;margin:0;margin-bottom:5px;}.list li .menu-item-title{cursor:pointer;display:block;}.list li .menu-item-title input{margin-right:3px;margin-top:-3px;}#menu-container .inside{padding-bottom:10px;}.menu{padding-top:1em;}#menu-to-edit{padding:1em 0;}.menu ul{width:100%;}.menu li{margin-bottom:0;position:relative;}.menu-item-bar{clear:both;line-height:1.5em;position:relative;margin-top:13px;}.menu-item-handle{border:1px solid #E6E6E6;position:relative;padding-left:10px;height:auto;width:400px;line-height:35px;text-shadow:0 1px 0 #FFF;font-weight:bold;overflow:hidden;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-khtml-border-radius:6px;word-wrap:break-word;}.menu-item-edit-active .menu-item-handle{-moz-border-radius:6px 6px 0 0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;}.no-js .menu-item-edit-active .item-edit{display:none;}.js .menu-item-handle{cursor:move;}.menu li.deleting .menu-item-handle{background-color:#f66;background-image:none;text-shadow:0 0 0 #ccc;}.menu-item-handle .item-title{padding:7px 0;line-height:20px;display:block;margin-right:13em;}li.menu-item.ui-sortable-helper dl{margin-top:0;}li.menu-item.ui-sortable-helper .menu-item-transport dl{margin-top:13px;}.menu .sortable-placeholder{height:35px;width:410px;margin-top:13px;}.menu-item-depth-0{margin-left:0;}.menu-item-depth-1{margin-left:30px;}.menu-item-depth-2{margin-left:60px;}.menu-item-depth-3{margin-left:90px;}.menu-item-depth-4{margin-left:120px;}.menu-item-depth-5{margin-left:150px;}.menu-item-depth-6{margin-left:180px;}.menu-item-depth-7{margin-left:210px;}.menu-item-depth-8{margin-left:240px;}.menu-item-depth-9{margin-left:270px;}.menu-item-depth-10{margin-left:300px;}.menu-item-depth-11{margin-left:330px;}.menu-item-depth-0 .menu-item-transport{margin-left:0;}.menu-item-depth-1 .menu-item-transport{margin-left:-30px;}.menu-item-depth-2 .menu-item-transport{margin-left:-60px;}.menu-item-depth-3 .menu-item-transport{margin-left:-90px;}.menu-item-depth-4 .menu-item-transport{margin-left:-120px;}.menu-item-depth-5 .menu-item-transport{margin-left:-150px;}.menu-item-depth-6 .menu-item-transport{margin-left:-180px;}.menu-item-depth-7 .menu-item-transport{margin-left:-210px;}.menu-item-depth-8 .menu-item-transport{margin-left:-240px;}.menu-item-depth-9 .menu-item-transport{margin-left:-270px;}.menu-item-depth-10 .menu-item-transport{margin-left:-300px;}.menu-item-depth-11 .menu-item-transport{margin-left:-330px;}.item-type{text-transform:uppercase;font-size:11px;color:#999;padding-right:10px;}.item-controls{font-size:11px;position:absolute;right:20px;top:-1px;}.item-controls a{text-decoration:none;}.item-controls a:hover{cursor:pointer;}.item-controls .item-order{padding-right:10px;}.item-controls .item-order a{font-weight:bold;}body.js .item-order{display:none;}.item-controls .menu-item-delete:hover{color:#f00;}.item-edit{background:url(&quot;../images/menu-bits.gif?ver=20100610&quot;) no-repeat scroll 0 -105px;position:absolute;right:-20px;top:0;display:block;width:23px;height:36px;overflow:hidden;text-indent:-999em;border-bottom:1px solid #eee;-moz-border-radius-bottomleft:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-bottom-left-radius:3px;}.menu-instructions-inactive{display:none;}.menu-item-settings{background:#F9F9F9;display:block;width:400px;padding:10px 0 10px 10px;border:solid #E6E6E6;border-width:0 1px 1px 1px;-moz-border-radius:0 0 6px 6px;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;}.menu-item-edit-active .menu-item-settings{display:block;}.menu-item-edit-inactive .menu-item-settings{display:none;}.add-menu-item-pagelinks{margin:.5em auto;text-align:center;}.link-to-original{display:block;margin:0 0 10px;padding:3px 5px 5px;font-size:11px;color:#777;font-style:italic;border:1px solid #dfdfdf;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-khtml-border-radius:6px;}.link-to-original a{padding-left:4px;font-style:normal;}.hidden-field{display:none;}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-right:10px;float:left;}.description-thin{width:190px;height:40px;}.description-wide{width:390px;}.menu-item-actions{padding-top:15px;}#cancel-save{cursor:pointer;}#cancel-save:hover{color:#fff!important;}#update-menu-item{color:#fff!important;}#update-menu-item:hover,#update-menu-item:active,#update-menu-item:focus{color:#eaf2fa!important;border-color:#13455b!important;}.major-publishing-actions{clear:both;padding:5px 10px;}.major-publishing-actions .publishing-action{text-align:right;float:right;line-height:23px;margin:5px 0 1px;}.major-publishing-actions .delete-action{vertical-align:middle;text-align:left;float:left;padding-right:15px;margin-top:5px;}.menu-name-label span,.auto-add-pages label{font-size:11px;font-style:normal;}.menu-name-label{margin-right:15px;}.auto-add-pages input{margin-top:0;}.auto-add-pages{margin-top:4px;float:left;}.submitbox .submitcancel{color:#21759B;border-bottom:1px solid #21759B;padding:1px 2px;text-decoration:none;}.submitbox .submitcancel:hover{background:#21759B;color:#fff;}.major-publishing-actions .form-invalid{border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;-khtml-border-radius:4px;padding-left:4px;margin-left:-4px;}#menu-item-name-wrap:after,#menu-item-url-wrap:after,#menu-name-label:after,#menu-settings-column .inside:after,#nav-menus-frame:after,#post-body-content:after,.button-controls:after,.major-publishing-actions:after,.menu-item-settings:after{clear:both;content:&quot;.&quot;;display:block;height:0;visibility:hidden;}#nav-menus-frame,.button-controls,#menu-item-url-wrap,#menu-item-name-wrap{display:block;}
</del><span class="cx">\ No newline at end of file
</span><ins>+html,body{min-width:950px;}#nav-menus-frame{margin-left:300px;}#wpbody-content #menu-settings-column{display:inline;width:281px;margin-left:-300px;clear:both;float:left;padding-top:24px;}.no-js #wpbody-content #menu-settings-column{padding-top:31px;}#menu-settings-column .inside{clear:both;padding:0 10px;}.metabox-holder-disabled .postbox{opacity:.5;filter:alpha(opacity=50);}.metabox-holder-disabled .button-controls .select-all{display:none;}#wpbody{position:relative;}#menu-management-liquid{float:left;min-width:100%;}#menu-management{position:relative;margin-right:20px;margin-top:-3px;width:100%;}#menu-management .menu-edit{margin-bottom:20px;}#nav-menu-header,#post-body{border-color:#ccc;border-style:solid;}#nav-menu-header{border-width:1px 1px 0 1px;-moz-border-radius-topleft:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-left-radius:6px;border-top-left-radius:6px;-moz-border-radius-topright:6px;-webkit-border-top-right-radius:6px;-khtml-border-top-right-radius:6px;border-top-right-radius:6px;}#post-body{background:#fff;padding:10px;border-width:0 1px 1px 1px;-moz-border-radius-bottomleft:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-left-radius:6px;border-bottom-left-radius:6px;-moz-border-radius-bottomright:6px;-webkit-border-bottom-right-radius:6px;-khtml-border-bottom-right-radius:6px;border-bottom-right-radius:6px;}#post-body div.updated{margin:0;}#post-body-content{position:relative;}#menu-management .menu-add-new abbr{font-weight:bold;}#menu-management .nav-tabs-nav{margin:0 20px;}#menu-management .nav-tabs-arrow{width:10px;padding:0 5px 4px;cursor:pointer;position:absolute;top:0;line-height:22px;font-size:18px;text-shadow:0 1px 0 #fff;}#menu-management .nav-tabs-arrow a{color:#C1C1C1;}#menu-management .nav-tabs-arrow a:hover{color:#D54E21;}#menu-management .nav-tabs-arrow a:active{color:#464646;}#menu-management .nav-tabs-arrow-left{left:0;}#menu-management .nav-tabs-arrow-right{right:0;text-align:right;}#menu-management .nav-tabs-wrapper{width:100%;height:28px;margin-bottom:-1px;overflow:hidden;}#menu-management .nav-tabs{padding-left:20px;padding-right:10px;}.js #menu-management .nav-tabs{float:left;margin-left:0;margin-right:-400px;}#menu-management .nav-tab{margin-bottom:0;background:#f4f4f4;font-weight:bold;border-color:#dfdfdf;}#menu-management .nav-tab-active{border-color:#ccc;}#select-nav-menu-container{text-align:right;padding:0 10px 3px 10px;margin-bottom:5px;}#select-nav-menu{width:100px;display:inline;}#menu-name-label{margin-top:-2px;}#wpbody .open-label{display:block;float:left;}#wpbody .open-label span{padding-right:10px;}.js .input-with-default-title{color:#aaa;font-style:italic;}#menu-management .inside{padding:0 10px;}.postbox .howto input{width:180px;float:right;}.customlinkdiv .howto input{width:210px;}#nav-menu-theme-locations .howto select{width:100%;}#nav-menu-theme-locations .button-controls{text-align:right;}.add-menu-item-view-all{height:400px;}#menu-container .submit{margin:0 0 10px;padding:0;}.meta-sep,.submitdelete,.submitcancel{display:block;float:left;font-size:11px;margin:4px 0;line-height:15px;}.meta-sep{padding:0 2px;}#cancel-save{color:#f00;text-decoration:underline;font-size:11px;margin-left:20px;margin-top:5px;}#cancel-save:hover{background-color:#F00;color:#fff;}.list-controls{float:left;margin-top:5px;}.add-to-menu{float:right;}.postbox img.waiting{display:none;vertical-align:middle;}.button-controls{clear:both;margin:10px 0;}.show-all,.hide-all{cursor:pointer;}.hide-all{display:none;}#menu-name{width:270px;}#manage-menu .inside{padding:0;}#available-links dt{display:block;}#add-custom-link .howto{font-size:11px;}#add-custom-link label span{display:block;float:left;margin-top:5px;padding-right:5px;}.menu-item-textbox{width:180px;}.howto span{margin-top:4px;display:block;float:left;}.quick-search{width:190px;}.list-wrap{display:none;clear:both;margin-bottom:10px;}.list-container{max-height:200px;overflow-y:auto;padding:10px 10px 5px;border:1px solid #DFDFDF;-moz-border-radius:4px;}.postbox p.submit{margin-bottom:0;}.list li{display:none;margin:0;margin-bottom:5px;}.list li .menu-item-title{cursor:pointer;display:block;}.list li .menu-item-title input{margin-right:3px;margin-top:-3px;}#menu-container .inside{padding-bottom:10px;}.menu{padding-top:1em;}#menu-to-edit{padding:1em 0;}.menu ul{width:100%;}.menu li{margin-bottom:0;position:relative;}.menu-item-bar{clear:both;line-height:1.5em;position:relative;margin-top:13px;}.menu-item-handle{border:1px solid #E6E6E6;position:relative;padding-left:10px;height:auto;width:400px;line-height:35px;text-shadow:0 1px 0 #FFF;font-weight:bold;overflow:hidden;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-khtml-border-radius:6px;word-wrap:break-word;}.menu-item-edit-active .menu-item-handle{-moz-border-radius:6px 6px 0 0;-webkit-border-bottom-right-radius:0;-webkit-border-bottom-left-radius:0;-khtml-border-bottom-right-radius:0;-khtml-border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0;}.no-js .menu-item-edit-active .item-edit{display:none;}.js .menu-item-handle{cursor:move;}.menu li.deleting .menu-item-handle{background-color:#f66;background-image:none;text-shadow:0 0 0 #ccc;}.menu-item-handle .item-title{padding:7px 0;line-height:20px;display:block;margin-right:13em;}li.menu-item.ui-sortable-helper dl{margin-top:0;}li.menu-item.ui-sortable-helper .menu-item-transport dl{margin-top:13px;}.menu .sortable-placeholder{height:35px;width:410px;margin-top:13px;}.menu-item-depth-0{margin-left:0;}.menu-item-depth-1{margin-left:30px;}.menu-item-depth-2{margin-left:60px;}.menu-item-depth-3{margin-left:90px;}.menu-item-depth-4{margin-left:120px;}.menu-item-depth-5{margin-left:150px;}.menu-item-depth-6{margin-left:180px;}.menu-item-depth-7{margin-left:210px;}.menu-item-depth-8{margin-left:240px;}.menu-item-depth-9{margin-left:270px;}.menu-item-depth-10{margin-left:300px;}.menu-item-depth-11{margin-left:330px;}.menu-item-depth-0 .menu-item-transport{margin-left:0;}.menu-item-depth-1 .menu-item-transport{margin-left:-30px;}.menu-item-depth-2 .menu-item-transport{margin-left:-60px;}.menu-item-depth-3 .menu-item-transport{margin-left:-90px;}.menu-item-depth-4 .menu-item-transport{margin-left:-120px;}.menu-item-depth-5 .menu-item-transport{margin-left:-150px;}.menu-item-depth-6 .menu-item-transport{margin-left:-180px;}.menu-item-depth-7 .menu-item-transport{margin-left:-210px;}.menu-item-depth-8 .menu-item-transport{margin-left:-240px;}.menu-item-depth-9 .menu-item-transport{margin-left:-270px;}.menu-item-depth-10 .menu-item-transport{margin-left:-300px;}.menu-item-depth-11 .menu-item-transport{margin-left:-330px;}body.menu-max-depth-0{min-width:950px!important;}body.menu-max-depth-1{min-width:980px!important;}body.menu-max-depth-2{min-width:1010px!important;}body.menu-max-depth-3{min-width:1040px!important;}body.menu-max-depth-4{min-width:1070px!important;}body.menu-max-depth-5{min-width:1100px!important;}body.menu-max-depth-6{min-width:1130px!important;}body.menu-max-depth-7{min-width:1160px!important;}body.menu-max-depth-8{min-width:1190px!important;}body.menu-max-depth-9{min-width:1220px!important;}body.menu-max-depth-10{min-width:1250px!important;}body.menu-max-depth-11{min-width:1280px!important;}.item-type{text-transform:uppercase;font-size:11px;color:#999;padding-right:10px;}.item-controls{font-size:11px;position:absolute;right:20px;top:-1px;}.item-controls a{text-decoration:none;}.item-controls a:hover{cursor:pointer;}.item-controls .item-order{padding-right:10px;}.item-controls .item-order a{font-weight:bold;}body.js .item-order{display:none;}.item-controls .menu-item-delete:hover{color:#f00;}.item-edit{background:url(&quot;../images/menu-bits.gif?ver=20100610&quot;) no-repeat scroll 0 -105px;position:absolute;right:-20px;top:0;display:block;width:23px;height:36px;overflow:hidden;text-indent:-999em;border-bottom:1px solid #eee;-moz-border-radius-bottomleft:3px;-webkit-border-bottom-left-radius:3px;-khtml-border-bottom-left-radius:3px;border-bottom-left-radius:3px;}.menu-instructions-inactive{display:none;}.menu-item-settings{background:#F9F9F9;display:block;width:400px;padding:10px 0 10px 10px;border:solid #E6E6E6;border-width:0 1px 1px 1px;-moz-border-radius:0 0 6px 6px;-webkit-border-bottom-right-radius:6px;-webkit-border-bottom-left-radius:6px;-khtml-border-bottom-right-radius:6px;-khtml-border-bottom-left-radius:6px;}.menu-item-edit-active .menu-item-settings{display:block;}.menu-item-edit-inactive .menu-item-settings{display:none;}.add-menu-item-pagelinks{margin:.5em auto;text-align:center;}.link-to-original{display:block;margin:0 0 10px;padding:3px 5px 5px;font-size:11px;color:#777;font-style:italic;border:1px solid #dfdfdf;border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-khtml-border-radius:6px;}.link-to-original a{padding-left:4px;font-style:normal;}.hidden-field{display:none;}.menu-item-settings .description-thin,.menu-item-settings .description-wide{margin-right:10px;float:left;}.description-thin{width:190px;height:40px;}.description-wide{width:390px;}.menu-item-actions{padding-top:15px;}#cancel-save{cursor:pointer;}#cancel-save:hover{color:#fff!important;}#update-menu-item{color:#fff!important;}#update-menu-item:hover,#update-menu-item:active,#update-menu-item:focus{color:#eaf2fa!important;border-color:#13455b!important;}.major-publishing-actions{clear:both;padding:5px 10px;}.major-publishing-actions .publishing-action{text-align:right;float:right;line-height:23px;margin:5px 0 1px;}.major-publishing-actions .delete-action{vertical-align:middle;text-align:left;float:left;padding-right:15px;margin-top:5px;}.menu-name-label span,.auto-add-pages label{font-size:11px;font-style:normal;}.menu-name-label{margin-right:15px;}.auto-add-pages input{margin-top:0;}.auto-add-pages{margin-top:4px;float:left;}.submitbox .submitcancel{color:#21759B;border-bottom:1px solid #21759B;padding:1px 2px;text-decoration:none;}.submitbox .submitcancel:hover{background:#21759B;color:#fff;}.major-publishing-actions .form-invalid{border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;-khtml-border-radius:4px;padding-left:4px;margin-left:-4px;}#menu-item-name-wrap:after,#menu-item-url-wrap:after,#menu-name-label:after,#menu-settings-column .inside:after,#nav-menus-frame:after,#post-body-content:after,.button-controls:after,.major-publishing-actions:after,.menu-item-settings:after{clear:both;content:&quot;.&quot;;display:block;height:0;visibility:hidden;}#nav-menus-frame,.button-controls,#menu-item-url-wrap,#menu-item-name-wrap{display:block;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincssnavmenudevcss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/nav-menu.dev.css (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu.dev.css        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/css/nav-menu.dev.css        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -377,6 +377,19 @@
</span><span class="cx"> .menu-item-depth-10 .menu-item-transport { margin-left: -300px; }
</span><span class="cx"> .menu-item-depth-11 .menu-item-transport { margin-left: -330px; }
</span><span class="cx"> 
</span><ins>+body.menu-max-depth-0 { min-width: 950px !important; }
+body.menu-max-depth-1 { min-width: 980px !important; }
+body.menu-max-depth-2 { min-width: 1010px !important; }
+body.menu-max-depth-3 { min-width: 1040px !important; }
+body.menu-max-depth-4 { min-width: 1070px !important; }
+body.menu-max-depth-5 { min-width: 1100px !important; }
+body.menu-max-depth-6 { min-width: 1130px !important; }
+body.menu-max-depth-7 { min-width: 1160px !important; }
+body.menu-max-depth-8 { min-width: 1190px !important; }
+body.menu-max-depth-9 { min-width: 1220px !important; }
+body.menu-max-depth-10 { min-width: 1250px !important; }
+body.menu-max-depth-11 { min-width: 1280px !important; }
+
</ins><span class="cx"> /* Menu item controls */
</span><span class="cx"> .item-type { text-transform: uppercase; font-size: 11px; color: #999999; padding-right: 10px; }
</span><span class="cx"> .item-controls { font-size: 11px; position: absolute; right: 20px; top: -1px; }
</span></span></pre></div>
<a id="trunkwpadminincludesnavmenuphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/includes/nav-menu.php (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/includes/nav-menu.php        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/includes/nav-menu.php        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -38,6 +38,9 @@
</span><span class="cx">          * @param object $args
</span><span class="cx">          */
</span><span class="cx">         function start_el(&amp;$output, $item, $depth, $args) {
</span><ins>+                global $_wp_nav_menu_max_depth;
+                $_wp_nav_menu_max_depth = $depth &gt; $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
+
</ins><span class="cx">                 $indent = ( $depth ) ? str_repeat( &quot;\t&quot;, $depth ) : '';
</span><span class="cx"> 
</span><span class="cx">                 ob_start();
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.dev.js (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.dev.js        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/js/nav-menu.dev.js        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -242,13 +242,18 @@
</span><span class="cx">                 initSortables : function() {
</span><span class="cx">                         var currentDepth = 0, originalDepth, minDepth, maxDepth,
</span><span class="cx">                                 prev, next, prevBottom, nextThreshold, helperHeight, transport,
</span><del>-                                menuLeft = api.menuList.offset().left;
</del><ins>+                                menuEdge = api.menuList.offset().left,
+                                body = $('body'), maxChildDepth,
+                                menuMaxDepth = initialMenuMaxDepth();
</ins><span class="cx"> 
</span><ins>+                        // Use the right edge if RTL.
+                        menuEdge += api.isRTL ? api.menuList.width() : 0;
+
</ins><span class="cx">                         api.menuList.sortable({
</span><span class="cx">                                 handle: '.menu-item-handle',
</span><span class="cx">                                 placeholder: 'sortable-placeholder',
</span><span class="cx">                                 start: function(e, ui) {
</span><del>-                                        var height, width, parent, children, maxChildDepth, tempHolder;
</del><ins>+                                        var height, width, parent, children, tempHolder;
</ins><span class="cx"> 
</span><span class="cx">                                         // handle placement for rtl orientation
</span><span class="cx">                                         if ( api.isRTL )
</span><span class="lines">@@ -307,8 +312,10 @@
</span><span class="cx">                                         if( depthChange != 0 ) {
</span><span class="cx">                                                 ui.item.updateDepthClass( currentDepth );
</span><span class="cx">                                                 children.shiftDepthClass( depthChange );
</span><del>-                                                api.registerChange();
</del><ins>+                                                updateMenuMaxDepth( depthChange );
</ins><span class="cx">                                         }
</span><ins>+                                        // Register a change
+                                        api.registerChange();
</ins><span class="cx">                                         // Update the item data.
</span><span class="cx">                                         ui.item.updateParentMenuItemDBId();
</span><span class="cx"> 
</span><span class="lines">@@ -321,6 +328,8 @@
</span><span class="cx">                                                 ui.item[0].style.right = 0;
</span><span class="cx">                                         }
</span><span class="cx"> 
</span><ins>+                                        // The width of the tab bar might have changed. Just in case.
+                                        api.refreshMenuTabs( true );
</ins><span class="cx">                                 },
</span><span class="cx">                                 change: function(e, ui) {
</span><span class="cx">                                         // Make sure the placeholder is inside the menu.
</span><span class="lines">@@ -332,7 +341,8 @@
</span><span class="cx">                                 },
</span><span class="cx">                                 sort: function(e, ui) {
</span><span class="cx">                                         var offset = ui.helper.offset(),
</span><del>-                                                depth = api.negateIfRTL * api.pxToDepth( offset.left - menuLeft );
</del><ins>+                                                edge = api.isRTL ? offset.left + ui.helper.width() : offset.left,
+                                                depth = api.negateIfRTL * api.pxToDepth( edge - menuEdge );
</ins><span class="cx">                                         // Check and correct if depth is not within range.
</span><span class="cx">                                         // Also, if the dragged element is dragged upwards over
</span><span class="cx">                                         // an item, shift the placeholder to a child position.
</span><span class="lines">@@ -348,9 +358,6 @@
</span><span class="cx">                                                 updateSharedVars( ui );
</span><span class="cx">                                                 $(this).sortable( &quot;refreshPositions&quot; );
</span><span class="cx">                                         }
</span><del>-                                },
-                                update: function(e, ui) {
-                                        api.registerChange();
</del><span class="cx">                                 }
</span><span class="cx">                         });
</span><span class="cx"> 
</span><span class="lines">@@ -378,6 +385,29 @@
</span><span class="cx">                                 ui.placeholder.updateDepthClass( depth, currentDepth );
</span><span class="cx">                                 currentDepth = depth;
</span><span class="cx">                         }
</span><ins>+
+                        function initialMenuMaxDepth() {
+                                if( ! body[0].className ) return 0;
+                                var match = body[0].className.match(/menu-max-depth-(\d+)/);
+                                return match &amp;&amp; match[1] ? parseInt(match[1]) : 0;
+                        }
+
+                        function updateMenuMaxDepth( depthChange ) {
+                                var depth, newDepth = menuMaxDepth;
+                                if ( depthChange === 0 ) {
+                                        return;
+                                } else if ( depthChange &gt; 0 ) {
+                                        depth = maxChildDepth + depthChange;
+                                        if( depth &gt; menuMaxDepth )
+                                                newDepth = depth;
+                                } else if ( depthChange &lt; 0 &amp;&amp; maxChildDepth == menuMaxDepth ) {
+                                        while( ! $('.menu-item-depth-' + newDepth, api.menuList).length &amp;&amp; newDepth &gt; 0 )
+                                                newDepth--;
+                                }
+                                // Update the depth class.
+                                body.removeClass( 'menu-max-depth-' + menuMaxDepth ).addClass( 'menu-max-depth-' + newDepth );
+                                menuMaxDepth = newDepth;
+                        }
</ins><span class="cx">                 },
</span><span class="cx"> 
</span><span class="cx">                 attachMenuEditListeners : function() {
</span><span class="lines">@@ -664,13 +694,23 @@
</span><span class="cx">                                 marginFixed = api.isRTL ? 'margin-left' : 'margin-right',
</span><span class="cx">                                 msPerPx = 2;
</span><span class="cx"> 
</span><del>-                        function resetMenuTabs() {
</del><ins>+                        /**
+                         * Refreshes the menu tabs.
+                         * Will show and hide arrows where necessary.
+                         * Scrolls to the active tab by default.
+                         * 
+                         * @param savePosition {boolean} Optional. Prevents scrolling so
+                         *                   that the current position is maintained. Default false. 
+                         **/
+                        api.refreshMenuTabs = function( savePosition ) {
</ins><span class="cx">                                 var fixedWidth = fixed.width(),
</span><span class="cx">                                         margin = 0, css = {};
</span><span class="cx">                                 fixedLeft = fixed.offset().left;
</span><span class="cx">                                 fixedRight = fixedLeft + fixedWidth;
</span><del>-                                active.makeTabVisible();
</del><span class="cx"> 
</span><ins>+                                if( !savePosition )
+                                        active.makeTabVisible();
+
</ins><span class="cx">                                 // Prevent space from building up next to the last tab if there's more to show
</span><span class="cx">                                 if( tabs.last().isTabVisible() ) {
</span><span class="cx">                                         margin = fixed.width() - tabsWidth;
</span><span class="lines">@@ -731,11 +771,11 @@
</span><span class="cx">                         fixed.wrap('&lt;div class=&quot;nav-tabs-nav&quot;/&gt;').parent().prepend( arrowLeft ).append( arrowRight );
</span><span class="cx"> 
</span><span class="cx">                         // Set the menu tabs
</span><del>-                        resetMenuTabs();
</del><ins>+                        api.refreshMenuTabs();
</ins><span class="cx">                         // Make sure the tabs reset on resize
</span><span class="cx">                         $(window).resize(function() {
</span><span class="cx">                                 if( resizeTimer ) clearTimeout(resizeTimer);
</span><del>-                                resizeTimer = setTimeout( resetMenuTabs, 200);
</del><ins>+                                resizeTimer = setTimeout( api.refreshMenuTabs, 200);
</ins><span class="cx">                         });
</span><span class="cx"> 
</span><span class="cx">                         // Build arrow functions
</span></span></pre></div>
<a id="trunkwpadminjsnavmenujs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.js (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.js        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/js/nav-menu.js        2010-06-11 05:19:36 UTC (rev 15214)
</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-object-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 m=0,l,j,e,h,n,k,o,d,g,i=a.menuList.offset().left;a.menuList.sortable({handle:&quot;.menu-item-handle&quot;,placeholder:&quot;sortable-placeholder&quot;,start:function(w,v){var p,t,s,q,r,u;if(a.isRTL){v.item[0].style.right=&quot;auto&quot;}g=v.item.children(&quot;.menu-item-transport&quot;);l=v.item.menuItemDepth();f(v,l);s=(v.item.next()[0]==v.placeholder[0])?v.item.next():v.item;q=s.childMenuItems();g.append(q);p=g.outerHeight();p+=(p&gt;0)?(v.placeholder.css(&quot;margin-top&quot;).slice(0,-2)*1):0;p+=v.helper.outerHeight();d=p;p-=2;v.placeholder.height(p);r=l;q.each(function(){var x=b(this).menuItemDepth();r=(x&gt;r)?x:r});t=v.helper.find(&quot;.menu-item-handle&quot;).outerWidth();t+=a.depthToPx(r-l);t-=2;v.placeholder.width(t);u=v.placeholder.next();u.css(&quot;margin-top&quot;,d+&quot;px&quot;);v.placeholder.detach();b(this).sortable(&quot;refresh&quot;);v.item.after(v.placeholder);u.css(&quot;margin-top&quot;,0);c(v)},stop:function(s,r){var q,p=m-l;q=g.children().insertAfter(r.item);if(p!=0){r.item.updateDepthClass(m);q.shiftDepthClass(p);a.registerChange()}r.item.updateParentMenuItemDBId();r.item[0].style.top=0;if(a.isRTL){r.item[0].style.left=&quot;auto&quot;;r.item[0].style.right=0}},change:function(q,p){if(!p.placeholder.parent().hasClass(&quot;menu&quot;)){(h.length)?h.after(p.placeholder):a.menuList.prepend(p.placeholder)}c(p)},sort:function(q,p){var s=p.helper.offset(),r=a.negateIfRTL*a.pxToDepth(s.left-i);if(r&gt;e||s.top&lt;k){r=e}else{if(r&lt;j){r=j}}if(r!=m){f(p,r)}if(o&amp;&amp;s.top+d&gt;o){n.after(p.placeholder);c(p);b(this).sortable(&quot;refreshPositions&quot;)}},update:function(q,p){a.registerChange()}});function c(p){var q;h=p.placeholder.prev();n=p.placeholder.next();if(h[0]==p.item[0]){h=h.prev()}if(n[0]==p.item[0]){n=n.next()}k=(h.length)?h.offset().top+h.height():0;o=(n.length)?n.offset().top+n.height()/3:0;j=(n.length)?n.menuItemDepth():0;if(h.length){e=((q=h.menuItemDepth()+1)&gt;a.options.globalMaxDepth)?a.options.globalMaxDepth:q}else{e=0}}function f(p,q){p.placeholder.updateDepthClass(q,m);m=q}},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){clearTimeout(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)},attachUnsavedChangesListener: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;tabs-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.hasClass(&quot;page-numbers&quot;)){b.post(ajaxurl,h.target.href.replace(/.*\?/,&quot;&quot;).replace(/action=([^&amp;]*)/,&quot;&quot;)+&quot;&amp;action=menu-get-metabox&quot;,function(m){if(-1==m.indexOf(&quot;replace-id&quot;)){return}var l=b.parseJSON(m),e=document.getElementById(l[&quot;replace-id&quot;]),k=document.createElement(&quot;div&quot;),j=document.createElement(&quot;div&quot;);if(!l.markup||!e){return}j.innerHTML=l.markup?l.markup:&quot;&quot;;e.parentNode.insertBefore(k,e);k.parentNode.removeChild(e);k.parentNode.insertBefore(j,k);k.parentNode.removeChild(k)});return false}}}}})},initTabManager:function(){var i=b(&quot;.nav-tabs-wrapper&quot;),k=i.children(&quot;.nav-tabs&quot;),h=k.children(&quot;.nav-tab-active&quot;),n=k.children(&quot;.nav-tab&quot;),f=0,p,g,m,e,l,j={},d=a.isRTL?&quot;margin-right&quot;:&quot;margin-left&quot;,q=a.isRTL?&quot;margin-left&quot;:&quot;margin-right&quot;,o=2;function c(){var t=i.width(),s=0,r={};g=i.offset().left;p=g+t;h.makeTabVisible();if(n.last().isTabVisible()){s=i.width()-f;s=s&gt;0?0:s;r[d]=s+&quot;px&quot;;k.animate(r,100,&quot;linear&quot;)}if(t&gt;f){m.add(e).hide()}else{m.add(e).show()}}b.fn.extend({makeTabVisible:function(){var v=this.eq(0),w,u,s={},r=0;if(!v.length){return this}w=v.offset().left;u=w+v.outerWidth();if(u&gt;p){r=p-u}else{if(w&lt;g){r=g-w}}if(!r){return this}s[d]=&quot;+=&quot;+a.negateIfRTL*r+&quot;px&quot;;k.animate(s,Math.abs(r)*o,&quot;linear&quot;);return this},isTabVisible:function(){var s=this.eq(0),u=s.offset().left,r=u+s.outerWidth();return(r&lt;=p&amp;&amp;u&gt;=g)?true:false}});n.each(function(){f+=b(this).outerWidth(true)});j.padding=0;j[q]=(-1*f)+&quot;px&quot;;k.css(j);m=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;');e=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;');i.wrap('&lt;div class=&quot;nav-tabs-nav&quot;/&gt;').parent().prepend(m).append(e);c();b(window).resize(function(){if(l){clearTimeout(l)}l=setTimeout(c,200)});b.each([{arrow:m,next:&quot;next&quot;,last:&quot;first&quot;,operator:&quot;+=&quot;},{arrow:e,next:&quot;prev&quot;,last:&quot;last&quot;,operator:&quot;-=&quot;}],function(){var r=this;this.arrow.mousedown(function(){var u=Math.abs(parseInt(k.css(d))),s=u,t={};if(&quot;-=&quot;==r.operator){s=Math.abs(f-i.width())-u}if(!s){return}t[d]=r.operator+s+&quot;px&quot;;k.animate(t,s*o,&quot;linear&quot;)}).mouseup(function(){var t,s;k.stop(true);t=n[r.last]();while((s=t[r.next]())&amp;&amp;s.length&amp;&amp;!s.isTabVisible()){t=s}t.makeTabVisible()})})},eventOnClickEditLink:function(d){var c,e,f=/#(.*)$/.exec(d.href);if(f&amp;&amp;f[1]){c=b(&quot;#&quot;+f[1]);e=c.parent();if(0!=e.length){if(e.hasClass(&quot;menu-item-edit-inactive&quot;)){if(!c.data(&quot;menu-item-data&quot;)){c.data(&quot;menu-item-data&quot;,c.getItemData())}c.slideDown(&quot;fast&quot;);e.removeClass(&quot;menu-item-edit-inactive&quot;).addClass(&quot;menu-item-edit-active&quot;)}else{c.slideUp(&quot;fast&quot;);e.removeClass(&quot;menu-item-edit-active&quot;).addClass(&quot;menu-item-edit-inactive&quot;)}return false}}},eventOnClickCancelLink:function(d){var c=b(d).closest(&quot;.menu-item-settings&quot;);c.setItemData(c.data(&quot;menu-item-data&quot;));return false},eventOnClickMenuSave:function(e){var f=&quot;&quot;,c=b(&quot;#menu-name&quot;),d=c.val();if(!d||d==c.attr(&quot;title&quot;)||!d.replace(/\s+/,&quot;&quot;)){c.parent().addClass(&quot;form-invalid&quot;);return false}b(&quot;#nav-menu-theme-locations select&quot;).each(function(){f+='&lt;input type=&quot;hidden&quot; name=&quot;'+this.name+'&quot; value=&quot;'+b(this).val()+'&quot; /&gt;'});b(&quot;#update-nav-menu&quot;).append(f);a.menuList.find(&quot;.menu-item-data-position&quot;).val(function(g){return g+1});window.onbeforeunload=null;return true},eventOnClickMenuDelete:function(c){if(confirm(navMenuL10n.warnDeleteMenu)){window.onbeforeunload=null;return true}return false},eventOnClickMenuItemDelete:function(c){var d=parseInt(c.id.replace(&quot;delete-&quot;,&quot;&quot;),10);a.removeMenuItem(b(&quot;#menu-item-&quot;+d));a.registerChange();return false},processQuickSearchQueryResponse:function(g,m,c){var h,e,j,f={},d=document.getElementById(&quot;nav-menu-meta&quot;),l=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;,&quot;g&quot;),k=g.match(/&lt;li&gt;.*&lt;\/li&gt;/g);if(!k){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=k.length;while(h--){e=l.exec(k[h]);if(e&amp;&amp;e[1]){j=e[1];while(d.elements[&quot;menu-item[&quot;+j+&quot;][menu-item-type]&quot;]||f[j]){j--}f[j]=true;if(j!=e[1]){k[h]=k[h].replace(new RegExp(&quot;menu-item\\[&quot;+e[1]+&quot;\\]&quot;,&quot;g&quot;),&quot;menu-item[&quot;+j+&quot;]&quot;)}}}b(&quot;.categorychecklist&quot;,c).html(k.join(&quot;&quot;));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-object-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.item.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){clearTimeout(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)},attachUnsavedChangesListener: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;tabs-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.hasClass(&quot;page-numbers&quot;)){b.post(ajaxurl,h.target.href.replace(/.*\?/,&quot;&quot;).replace(/action=([^&amp;]*)/,&quot;&quot;)+&quot;&amp;action=menu-get-metabox&quot;,function(m){if(-1==m.indexOf(&quot;replace-id&quot;)){return}var l=b.parseJSON(m),e=document.getElementById(l[&quot;replace-id&quot;]),k=document.createElement(&quot;div&quot;),j=document.createElement(&quot;div&quot;);if(!l.markup||!e){return}j.innerHTML=l.markup?l.markup:&quot;&quot;;e.parentNode.insertBefore(k,e);k.parentNode.removeChild(e);k.parentNode.insertBefore(j,k);k.parentNode.removeChild(k)});return false}}}}})},initTabManager:function(){var h=b(&quot;.nav-tabs-wrapper&quot;),j=h.children(&quot;.nav-tabs&quot;),g=j.children(&quot;.nav-tab-active&quot;),m=j.children(&quot;.nav-tab&quot;),e=0,o,f,l,d,k,i={},c=a.isRTL?&quot;margin-right&quot;:&quot;margin-left&quot;,p=a.isRTL?&quot;margin-left&quot;:&quot;margin-right&quot;,n=2;a.refreshMenuTabs=function(q){var t=h.width(),s=0,r={};f=h.offset().left;o=f+t;if(!q){g.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},eventOnClickMenuDelete:function(c){if(confirm(navMenuL10n.warnDeleteMenu)){window.onbeforeunload=null;return true}return false},eventOnClickMenuItemDelete:function(c){var d=parseInt(c.id.replace(&quot;delete-&quot;,&quot;&quot;),10);a.removeMenuItem(b(&quot;#menu-item-&quot;+d));a.registerChange();return false},processQuickSearchQueryResponse:function(g,m,c){var h,e,j,f={},d=document.getElementById(&quot;nav-menu-meta&quot;),l=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;,&quot;g&quot;),k=g.match(/&lt;li&gt;.*&lt;\/li&gt;/g);if(!k){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=k.length;while(h--){e=l.exec(k[h]);if(e&amp;&amp;e[1]){j=e[1];while(d.elements[&quot;menu-item[&quot;+j+&quot;][menu-item-type]&quot;]||f[j]){j--}f[j]=true;if(j!=e[1]){k[h]=k[h].replace(new RegExp(&quot;menu-item\\[&quot;+e[1]+&quot;\\]&quot;,&quot;g&quot;),&quot;menu-item[&quot;+j+&quot;]&quot;)}}}b(&quot;.categorychecklist&quot;,c).html(k.join(&quot;&quot;));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="trunkwpadminnavmenusphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/nav-menus.php (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/nav-menus.php        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-admin/nav-menus.php        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -430,6 +430,22 @@
</span><span class="cx">         $nav_menus[$key]-&gt;truncated_name = $_nav_menu-&gt;truncated_name;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+// Ensure the user will be able to scroll horizontally
+// by adding a class for the max menu depth.
+global $_wp_nav_menu_max_depth;
+$_wp_nav_menu_max_depth = 0;
+
+// Calling wp_get_nav_menu_to_edit generates $_wp_nav_menu_max_depth
+if ( is_nav_menu( $nav_menu_selected_id ) )
+        $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id  );
+
+function wp_nav_menu_max_depth() {
+        global $_wp_nav_menu_max_depth;
+        return &quot;menu-max-depth-$_wp_nav_menu_max_depth&quot;;
+}
+
+add_action('admin_body_class','wp_nav_menu_max_depth');
+
</ins><span class="cx"> wp_nav_menu_setup();
</span><span class="cx"> wp_initial_nav_menu_meta_boxes();
</span><span class="cx"> 
</span><span class="lines">@@ -564,18 +580,16 @@
</span><span class="cx">                                         &lt;div id=&quot;post-body&quot;&gt;
</span><span class="cx">                                                 &lt;div id=&quot;post-body-content&quot;&gt;
</span><span class="cx">                                                         &lt;?php
</span><del>-                                                        if ( is_nav_menu( $nav_menu_selected_id ) ) :
-                                                                $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id  );
-                                                                if ( ! is_wp_error( $edit_markup ) ) :
</del><ins>+                                                        if ( isset( $edit_markup ) ) {
+                                                                if ( ! is_wp_error( $edit_markup ) )
</ins><span class="cx">                                                                         echo $edit_markup;
</span><del>-                                                                endif;
-                                                        elseif ( empty( $nav_menu_selected_id ) ) :
</del><ins>+                                                        } else if ( empty( $nav_menu_selected_id ) ) {
</ins><span class="cx">                                                                 echo '&lt;div class=&quot;post-body-plain&quot;&gt;';
</span><span class="cx">                                                                 echo '&lt;p&gt;' . __('To create a custom menu, give it a name above and click Create Menu. Then choose items like pages, categories or custom links from the left column to add to this menu.') . '&lt;/p&gt;';
</span><span class="cx">                                                                 echo '&lt;p&gt;' . __('After you have added your items, drag and drop to put them in the order you want. You can also click each item to reveal additional configuration options.') . '&lt;/p&gt;';
</span><span class="cx">                                                                 echo '&lt;p&gt;' . __('When you have finished building your custom menu, make sure you click the Save Menu button.') . '&lt;/p&gt;';
</span><span class="cx">                                                                 echo '&lt;/div&gt;';
</span><del>-                                                        endif;
</del><ins>+                                                        }
</ins><span class="cx">                                                         ?&gt;
</span><span class="cx">                                                 &lt;/div&gt;&lt;!-- /#post-body-content --&gt;
</span><span class="cx">                                         &lt;/div&gt;&lt;!-- /#post-body --&gt;
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (15213 => 15214)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-06-11 04:21:39 UTC (rev 15213)
+++ trunk/wp-includes/script-loader.php        2010-06-11 05:19:36 UTC (rev 15214)
</span><span class="lines">@@ -384,12 +384,9 @@
</span><span class="cx">                         'done' =&gt; __( 'Done' )
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><del>-                // Custom Navigation
-                $scripts-&gt;add( 'nav-menu', &quot;/wp-admin/js/nav-menu$suffix.js&quot;, false, '20100603' );
</del><ins>+                // Navigation Menus
+                $scripts-&gt;add( 'nav-menu', &quot;/wp-admin/js/nav-menu$suffix.js&quot;, false, '20100611' );
</ins><span class="cx">                 $scripts-&gt;localize( 'nav-menu', 'navMenuL10n', array(
</span><del>-                        'custom' =&gt; _x('Custom', 'menu nav item type'),
-                        'thickbox' =&gt; _x('Edit Menu Item', 'Thickbox Title'),
-                        'edit' =&gt; _x('Edit', 'menu item edit text'),
</del><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 class="cx">                         'saveAlert' =&gt; __('The changes you made will be lost if you navigate away from this page.'),
</span><span class="lines">@@ -463,7 +460,7 @@
</span><span class="cx">         $styles-&gt;add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
</span><span class="cx">         $styles-&gt;add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
</span><span class="cx">         $styles-&gt;add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
</span><del>-        $styles-&gt;add( 'nav-menu', &quot;/wp-admin/css/nav-menu$suffix.css&quot;, array(), '20100610' );
</del><ins>+        $styles-&gt;add( 'nav-menu', &quot;/wp-admin/css/nav-menu$suffix.css&quot;, array(), '20100611' );
</ins><span class="cx"> 
</span><span class="cx">         foreach ( $rtl_styles as $rtl_style ) {
</span><span class="cx">                 $styles-&gt;add_data( $rtl_style, 'rtl', true );
</span></span></pre>
</div>
</div>

</body>
</html>