<!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>[14340] trunk/wp-admin: Fix the nav menu ajax spinners (again).</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/14340">14340</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-05-02 21:05:55 +0000 (Sun, 02 May 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fix the nav menu ajax spinners (again).</pre>

<h3>Modified Paths</h3>
<ul>
<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="#trunkwpadminjsnavmenudevjs">trunk/wp-admin/js/nav-menu.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenujs">trunk/wp-admin/js/nav-menu.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincssnavmenucss"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/css/nav-menu.css (14339 => 14340)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu.css        2010-05-02 20:51:30 UTC (rev 14339)
+++ trunk/wp-admin/css/nav-menu.css        2010-05-02 21:05:55 UTC (rev 14340)
</span><span class="lines">@@ -1 +1 @@
</span><del>-#nav-menus-frame{margin-left:300px;}#menu-settings-column{display:block;width:281px;margin-left:-300px;clear:both;float:left;}#menu-settings-column .inside{padding:0 10px;}#menu-settings-column .handlediv{background:url(&quot;../images/menu-bits.gif&quot;) no-repeat scroll 0 -110px;}#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{background:url(&quot;../images/gray-grad.png&quot;) repeat-x scroll left top #dfdfdf;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:0 0 10px 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-content{position:relative;}.post-body-plain{padding:10px 10px 0 0;}#menu-management .menu-add-new abbr{font-weight:bold;}#menu-management .nav-tabs{padding-left:30px;}#menu-management .nav-tab{background:#f4f4f4;font-weight:bold;border-color:#dfdfdf;}#menu-management .nav-tab-active{background:#ececec;border-color:#ccc;border-bottom-color:#ececec;}#menu-management #major-publishing-actions #delete-action{float:right;margin-right:10px;}#menu-name-label{margin-top:-2px;}#wpbody .open-label{display:inline-block;}#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;}#menu-container .submit{margin:0 0 10px;padding:0;}.submitdelete,.submitclose{font-size:11px;}#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;}.add-to-menu{float:right;}.postbox img.waiting{display:none;vertical-align:middle;}form.processing .postbox img.waiting{display:inline;}.button-controls{margin:10px 0;}.show-all,.hide-all{cursor:pointer;}.hide-all{display:none;}#create-menu-name{width:159px;}#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;}.list li li .menu-item-title{margin-left:14px;}.list li li li .menu-item-title{margin-left:28px;}.list li li li li .menu-item-title{margin-left:42px;}.list li li li li li .menu-item-title{margin-left:56px;}.list li li li li li li .menu-item-title{margin-left:70px;}.list li li li li li li li .menu-item-title{margin-left:84px;}.list li li li li li li li li .menu-item-title{margin-left:98px;}.list li li li li li li li li li .menu-item-title{margin-left:112px;}#menu-container .inside{padding-bottom:10px;}.menu{padding-top:1em;}.menu ul{width:100%;}.menu li{margin-bottom:0;}.menu li dl{clear:both;line-height:1.5em;position:relative;margin-top:13px;}.menu li dl dt{background:url(&quot;../images/gray-grad.png&quot;) repeat-x scroll left top #DFDFDF;border:1px solid #E6E6E6;clear:both;position:relative;padding-left:10px;height:auto;width:400px;line-height:35px;text-shadow:0 1px 0 #FFF;font-weight:bold;overflow:hidden;}.menu li dl.menu-item-edit-inactive dt{border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-khtml-border-radius:6px;}.menu li dl.menu-item-edit-active dt{-moz-border-radius:6px 6px 0 0;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}.js .menu li dl dt{cursor:move;}.menu li.deleting dl dt{background-color:#faa;}.menu li .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&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-item-settings{background:#F9F9F9;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-settings.menu-item-edit-active{display:block;}.menu-item-settings.menu-item-edit-inactive{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;line-height:25px;}.save-menu-item{padding-left:10px;float:right;}#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{padding:5px 10px;border-bottom:1px solid #eee;}.major-publishing-actions .publishing-action{text-align:right;float:right;line-height:23px;}.major-publishing-actions .delete-action{line-height:25px;vertical-align:middle;text-align:left;float:right;padding-right:15px;}.menu-name-label span{font-size:11px;font-style:normal;}.submitbox .submitclose{color:#21759B;border-bottom:1px solid #21759B;padding:1px 2px;text-decoration:none;}.submitbox .submitclose:hover{background:#21759B;color:#fff;}.menu-item-settings:after,.button-controls:after,#menu-item-url-wrap:after,#menu-item-name-wrap:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden;}.menu-item-settings,.button-controls,#menu-item-url-wrap,#menu-item-name-wrap{display:block;}
</del><span class="cx">\ No newline at end of file
</span><ins>+#nav-menus-frame{margin-left:300px;}#menu-settings-column{display:block;width:281px;margin-left:-300px;clear:both;float:left;}#menu-settings-column .inside{padding:0 10px;}#menu-settings-column .handlediv{background:url(&quot;../images/menu-bits.gif&quot;) no-repeat scroll 0 -110px;}#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{background:url(&quot;../images/gray-grad.png&quot;) repeat-x scroll left top #dfdfdf;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:0 0 10px 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-content{position:relative;}.post-body-plain{padding:10px 10px 0 0;}#menu-management .menu-add-new abbr{font-weight:bold;}#menu-management .nav-tabs{padding-left:30px;}#menu-management .nav-tab{background:#f4f4f4;font-weight:bold;border-color:#dfdfdf;}#menu-management .nav-tab-active{background:#ececec;border-color:#ccc;border-bottom-color:#ececec;}#menu-management #major-publishing-actions #delete-action{float:right;margin-right:10px;}#menu-name-label{margin-top:-2px;}#wpbody .open-label{display:inline-block;}#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;}#menu-container .submit{margin:0 0 10px;padding:0;}.submitdelete,.submitclose{font-size:11px;}#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;}.add-to-menu{float:right;}.postbox img.waiting{display:none;vertical-align:middle;}.button-controls{margin:10px 0;}.show-all,.hide-all{cursor:pointer;}.hide-all{display:none;}#create-menu-name{width:159px;}#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;}.list li li .menu-item-title{margin-left:14px;}.list li li li .menu-item-title{margin-left:28px;}.list li li li li .menu-item-title{margin-left:42px;}.list li li li li li .menu-item-title{margin-left:56px;}.list li li li li li li .menu-item-title{margin-left:70px;}.list li li li li li li li .menu-item-title{margin-left:84px;}.list li li li li li li li li .menu-item-title{margin-left:98px;}.list li li li li li li li li li .menu-item-title{margin-left:112px;}#menu-container .inside{padding-bottom:10px;}.menu{padding-top:1em;}.menu ul{width:100%;}.menu li{margin-bottom:0;}.menu li dl{clear:both;line-height:1.5em;position:relative;margin-top:13px;}.menu li dl dt{background:url(&quot;../images/gray-grad.png&quot;) repeat-x scroll left top #DFDFDF;border:1px solid #E6E6E6;clear:both;position:relative;padding-left:10px;height:auto;width:400px;line-height:35px;text-shadow:0 1px 0 #FFF;font-weight:bold;overflow:hidden;}.menu li dl.menu-item-edit-inactive dt{border-radius:6px;-webkit-border-radius:6px;-moz-border-radius:6px;-khtml-border-radius:6px;}.menu li dl.menu-item-edit-active dt{-moz-border-radius:6px 6px 0 0;-webkit-border-top-right-radius:6px;-webkit-border-top-left-radius:6px;-khtml-border-top-right-radius:6px;-khtml-border-top-left-radius:6px;border-top-right-radius:6px;border-top-left-radius:6px;}.js .menu li dl dt{cursor:move;}.menu li.deleting dl dt{background-color:#faa;}.menu li .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&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-item-settings{background:#F9F9F9;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-settings.menu-item-edit-active{display:block;}.menu-item-settings.menu-item-edit-inactive{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;line-height:25px;}.save-menu-item{padding-left:10px;float:right;}#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{padding:5px 10px;border-bottom:1px solid #eee;}.major-publishing-actions .publishing-action{text-align:right;float:right;line-height:23px;}.major-publishing-actions .delete-action{line-height:25px;vertical-align:middle;text-align:left;float:right;padding-right:15px;}.menu-name-label span{font-size:11px;font-style:normal;}.submitbox .submitclose{color:#21759B;border-bottom:1px solid #21759B;padding:1px 2px;text-decoration:none;}.submitbox .submitclose:hover{background:#21759B;color:#fff;}.menu-item-settings:after,.button-controls:after,#menu-item-url-wrap:after,#menu-item-name-wrap:after{content:&quot;.&quot;;display:block;height:0;clear:both;visibility:hidden;}.menu-item-settings,.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 (14339 => 14340)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu.dev.css        2010-05-02 20:51:30 UTC (rev 14339)
+++ trunk/wp-admin/css/nav-menu.dev.css        2010-05-02 21:05:55 UTC (rev 14340)
</span><span class="lines">@@ -156,9 +156,6 @@
</span><span class="cx">         display: none;
</span><span class="cx">         vertical-align: middle;
</span><span class="cx"> }
</span><del>-form.processing .postbox img.waiting {
-        display: inline;
-}
</del><span class="cx"> 
</span><span class="cx"> .button-controls { margin: 10px 0; }
</span><span class="cx"> .show-all, .hide-all { cursor: pointer; }
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.dev.js (14339 => 14340)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.dev.js        2010-05-02 20:51:30 UTC (rev 14339)
+++ trunk/wp-admin/js/nav-menu.dev.js        2010-05-02 21:05:55 UTC (rev 14340)
</span><span class="lines">@@ -341,6 +341,9 @@
</span><span class="cx">                         $(formEL).bind('submit', function(e) {
</span><span class="cx">                                 return that.eventSubmitMetaForm.call(that, this, e);
</span><span class="cx">                         });
</span><ins>+                        $(formEL).find('input:submit').click(function() { 
+                                $(this).siblings('img.waiting').show(); 
+                        });
</ins><span class="cx">                 },
</span><span class="cx"> 
</span><span class="cx">                 attachTabsPanelListeners : function() {
</span><span class="lines">@@ -500,7 +503,6 @@
</span><span class="cx">                         processMethod = function(){},
</span><span class="cx">                         re = new RegExp('menu-item\\[(\[^\\]\]*)');
</span><span class="cx"> 
</span><del>-                        thisForm.className = thisForm.className + ' processing',
</del><span class="cx">                         that = this;
</span><span class="cx">                         params['action'] = '';
</span><span class="cx"> 
</span><span class="lines">@@ -548,7 +550,7 @@
</span><span class="cx"> 
</span><span class="cx">                         $.post( ajaxurl, params, function(menuMarkup) {
</span><span class="cx">                                 processMethod.call(that, menuMarkup, params);        
</span><del>-                                thisForm.className = thisForm.className.replace(/processing/g, '');
</del><ins>+                                $(thisForm).find('img.waiting').hide();
</ins><span class="cx">                         });
</span><span class="cx"> 
</span><span class="cx">                         return false;
</span></span></pre></div>
<a id="trunkwpadminjsnavmenujs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.js (14339 => 14340)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.js        2010-05-02 20:51:30 UTC (rev 14339)
+++ trunk/wp-admin/js/nav-menu.js        2010-05-02 21:05:55 UTC (rev 14340)
</span><span class="lines">@@ -1 +1 @@
</span><del>-var WPNavMenuHandler=function(d){var h={},f=30,c=11,j=function(l,p,m,o){if(l&amp;&amp;l[0]){var n=d.parseJSON(l[0]);if(n.post_title){if(n.ID&amp;&amp;n.post_type){h[n.post_title]={ID:n.ID,object_type:n.post_type}}return n.post_title}}},k=function(l,p,m,o){if(l&amp;&amp;l[0]){var n=d.parseJSON(l[0]);if(n.post_title){return n.post_title}}},b=function(r,q){if(!r){return false}q=q||document;var m=[&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-append&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;],l={},n=q.getElementsByTagName(&quot;input&quot;),p=n.length,o,s=document.getElementById(&quot;nav-menu-meta-object-id&quot;).value;while(p--){o=m.length;while(o--){if(n[p]&amp;&amp;n[p].name&amp;&amp;&quot;menu-item[&quot;+r+&quot;][&quot;+m[o]+&quot;]&quot;==n[p].name){l[m[o]]=n[p].value}}}return l},a=function(){g.find(&quot;.menu-item-data-position&quot;).val(function(l){return l+1})},e=function(l){return l*f},i=function(l){return Math.floor(l/f)},g;d.fn.extend({menuItemDepth:function(){return i(this.eq(0).css(&quot;margin-left&quot;).slice(0,-2))},updateDepthClass:function(m,l){return this.each(function(){var n=d(this);l=l||n.menuItemDepth();d(this).removeClass(&quot;menu-item-depth-&quot;+l).addClass(&quot;menu-item-depth-&quot;+m)})},shiftDepthClass:function(l){return this.each(function(){var m=d(this),n=m.menuItemDepth();d(this).removeClass(&quot;menu-item-depth-&quot;+n).addClass(&quot;menu-item-depth-&quot;+(n+l))})},childMenuItems:function(){var l=d();this.each(function(){var m=d(this),o=m.menuItemDepth(),n=m.next();while(n.length&amp;&amp;n.menuItemDepth()&gt;o){l=l.add(n);n=n.next()}});return l},updateParentMenuItemDBId:function(){return this.each(function(){var n=d(this),l=n.find(&quot;.menu-item-data-parent-id&quot;),o=n.menuItemDepth(),m=n.prev();if(o==0){l.val(0)}else{while(m.menuItemDepth()!=o-1){m=m.prev()}l.val(m.find(&quot;.menu-item-data-object-id&quot;).val())}})},hideAdvancedMenuItemFields:function(){return this.each(function(){var l=d(this);d(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).each(function(){l.find(&quot;.field-&quot;+d(this).val()).addClass(&quot;hidden-field&quot;)})})},});return{init:function(){g=d(&quot;#menu-to-edit&quot;);this.attachMenuEditListeners();this.attachMenuMetaListeners(document.getElementById(&quot;nav-menu-meta&quot;));this.attachTabsPanelListeners();if(g.length){this.initSortables()}this.initToggles()},initToggles:function(){postboxes.add_postbox_toggles(&quot;nav-menus&quot;);columns.useCheckboxesForHidden();columns.checked=function(l){d(&quot;.field-&quot;+l).removeClass(&quot;hidden-field&quot;)};columns.unchecked=function(l){d(&quot;.field-&quot;+l).addClass(&quot;hidden-field&quot;)};g.hideAdvancedMenuItemFields()},initSortables:function(){var o=0,m,p,r,n=g.offset().left;g.sortable({handle:&quot; &gt; dl&quot;,placeholder:&quot;sortable-placeholder&quot;,start:function(w,x){var v,z,s,y,t,A,u=x.item.children(&quot;.menu-item-transport&quot;);m=x.item.menuItemDepth();l(x,m);y=(x.item.next()[0]==x.placeholder[0])?x.item.next():x.item;t=y.childMenuItems();u.append(t);q(x);z=u.outerHeight();z+=(z&gt;0)?(x.placeholder.css(&quot;margin-top&quot;).slice(0,-2)*1):0;z+=x.item.outerHeight();z-=2;x.placeholder.height(z);A=m;t.each(function(){var B=d(this).menuItemDepth();A=(B&gt;A)?B:A});s=x.item.find(&quot;dl dt&quot;).outerWidth();s+=e(A-m);s-=2;x.placeholder.width(s)},stop:function(v,u){var t,s=o-m;t=u.item.children(&quot;.menu-item-transport&quot;).children().insertAfter(u.item);if(s!=0){u.item.updateDepthClass(o);t.shiftDepthClass(s)}u.item.updateParentMenuItemDBId();a()},change:function(t,s){if(!s.placeholder.parent().hasClass(&quot;menu&quot;)){s.placeholder.appendTo(g)}q(s)},sort:function(t,s){var u=i(s.item.offset().left-n);if(u&lt;p){u=p}else{if(u&gt;r){u=r}}if(u!=o){l(s,u)}}});function q(u){var t=u.placeholder.prev(),s=u.placeholder.next(),v;if(t[0]==u.item[0]){t=t.prev()}if(s[0]==u.item[0]){s=s.next()}p=(s.length)?s.menuItemDepth():0;if(t.length){r=((v=t.menuItemDepth()+1)&gt;c)?c:v}else{r=0}}function l(s,t){s.placeholder.updateDepthClass(t,o);o=t}},attachMenuEditListeners:function(){var l=this;d(&quot;#update-nav-menu&quot;).bind(&quot;click&quot;,function(m){if(m.target&amp;&amp;m.target.className){if(-1!=m.target.className.indexOf(&quot;item-edit&quot;)){return l.eventOnClickEditLink(m.target)}else{if(-1!=m.target.className.indexOf(&quot;menu-delete&quot;)){return l.eventOnClickMenuDelete(m.target)}else{if(-1!=m.target.className.indexOf(&quot;item-delete&quot;)){return l.eventOnClickMenuItemDelete(m.target)}else{if(-1!=m.target.className.indexOf(&quot;item-close&quot;)){return l.eventOnClickCloseLink(m.target)}}}}}})},setupInputWithDefaultTitle:function(){var l=&quot;input-with-default-title&quot;;d(&quot;.&quot;+l).each(function(){var o=d(this),n=o.attr(&quot;title&quot;),m=o.val();o.data(l,n);if(&quot;&quot;==m){o.val(n)}else{if(n==m){return}else{o.removeClass(l)}}}).focus(function(){var m=d(this);if(m.val()==m.data(l)){m.val(&quot;&quot;).removeClass(l)}}).blur(function(){var m=d(this);if(&quot;&quot;==m.val()){m.val(m.data(l)).addClass(l)}})},attachMenuMetaListeners:function(l){if(!l){return}var m=this;this.setupInputWithDefaultTitle();d(&quot;input.quick-search&quot;).each(function(n,o){m.setupQuickSearchEventListeners(o)});d(l).bind(&quot;submit&quot;,function(n){return m.eventSubmitMetaForm.call(m,this,n)})},attachTabsPanelListeners:function(){d(&quot;#menu-settings-column&quot;).bind(&quot;click&quot;,function(q){if(q.target&amp;&amp;q.target.className&amp;&amp;-1!=q.target.className.indexOf(&quot;nav-tab-link&quot;)){var r,m=/#(.*)$/.exec(q.target.href),p,s=d(q.target).parents(&quot;.inside&quot;).first()[0],l=s?s.getElementsByTagName(&quot;input&quot;):[],n=l.length;while(n--){l[n].checked=false}d(&quot;.tabs-panel&quot;,s).each(function(){if(this.className){this.className=this.className.replace(&quot;tabs-panel-active&quot;,&quot;tabs-panel-inactive&quot;)}});d(&quot;.tabs&quot;,s).each(function(){this.className=this.className.replace(&quot;tabs&quot;,&quot;&quot;)});q.target.parentNode.className+=&quot; tabs&quot;;if(m&amp;&amp;m[1]){r=document.getElementById(m[1]);if(r){r.className=r.className.replace(&quot;tabs-panel-inactive&quot;,&quot;tabs-panel-active&quot;)}}return false}else{if(q.target&amp;&amp;q.target.className&amp;&amp;-1!=q.target.className.indexOf(&quot;select-all&quot;)){var o=/#(.*)$/.exec(q.target.href);if(o&amp;&amp;o[1]){d(&quot;#&quot;+o[1]+&quot; .tabs-panel-active input[type=checkbox]&quot;).attr(&quot;checked&quot;,&quot;checked&quot;);return false}}}})},setupQuickSearchEventListeners:function(l){var m=this;d(l).autocomplete(ajaxurl+&quot;?action=menu-quick-search&amp;type=&quot;+l.name,{delay:500,formatItem:j,formatResult:k,minchars:2,multiple:false}).bind(&quot;blur&quot;,function(p){var n=h[this.value],o=this;if(n){d.post(ajaxurl+&quot;?action=menu-quick-search&amp;type=get-post-item&amp;response-format=markup&quot;,n,function(q){m.processQuickSearchQueryResponse.call(m,q,n);h[o.value]=false})}})},eventOnClickEditLink:function(l){var n,m=/#(.*)$/.exec(l.href);if(m&amp;&amp;m[1]){n=d(&quot;#&quot;+m[1]);if(0!=n.length){if(n.hasClass(&quot;menu-item-edit-inactive&quot;)){n.slideDown(&quot;fast&quot;).siblings(&quot;dl&quot;).andSelf().removeClass(&quot;menu-item-edit-inactive&quot;).addClass(&quot;menu-item-edit-active&quot;)}else{n.slideUp(&quot;fast&quot;).siblings(&quot;dl&quot;).andSelf().removeClass(&quot;menu-item-edit-active&quot;).addClass(&quot;menu-item-edit-inactive&quot;)}return false}}},eventOnClickCloseLink:function(l){d(l).closest(&quot;.menu-item-settings&quot;).siblings(&quot;dl&quot;).find(&quot;.item-edit&quot;).click();return false},eventOnClickMenuDelete:function(l){if(confirm(navMenuL10n.warnDeleteMenu)){return true}else{return false}},eventOnClickMenuItemDelete:function(l){var o,n,m=this;if(confirm(navMenuL10n.warnDeleteMenuItem)){n=/_wpnonce=([a-zA-Z0-9]*)$/.exec(l.href);if(n&amp;&amp;n[1]){o=parseInt(l.id.replace(&quot;delete-&quot;,&quot;&quot;),10);d.post(ajaxurl,{action:&quot;delete-menu-item&quot;,&quot;menu-item&quot;:o,_wpnonce:n[1]},function(p){if(&quot;1&quot;==p){m.removeMenuItem(document.getElementById(&quot;menu-item-&quot;+o))}});return false}return true}else{return false}},eventSubmitMetaForm:function(m,s){var q=m.getElementsByTagName(&quot;input&quot;),p=q.length,o,u,l,r,n={},t=function(){},v=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;);m.className=m.className+&quot; processing&quot;,that=this;n.action=&quot;&quot;;while(p--){if(q[p].name&amp;&amp;-1!=q[p].name.indexOf(&quot;menu-item-object-id&quot;)&amp;&amp;q[p].checked||(&quot;undefined&quot;!=typeof q[p].id&amp;&amp;&quot;custom-menu-item-url&quot;==q[p].id&amp;&amp;&quot;&quot;!=q[p].value&amp;&amp;&quot;http://&quot;!=q[p].value)){n.action=&quot;add-menu-item&quot;;t=that.processAddMenuItemResponse;r=v.exec(q[p].name);l=&quot;undefined&quot;==typeof r[1]?0:parseInt(r[1],10);u=b(l);for(o in u){n[&quot;menu-item[&quot;+l+&quot;][&quot;+o+&quot;]&quot;]=u[o]}q[p].checked=false}else{if(&quot;&quot;==n.action&amp;&amp;&quot;&quot;!=q[p].value&amp;&amp;q[p].className&amp;&amp;-1!=q[p].className.search(/quick-search\b[^-]/)){n.action=&quot;menu-quick-search&quot;;n.q=q[p].value;n[&quot;response-format&quot;]=&quot;markup&quot;;n.type=q[p].name;t=that.processQuickSearchQueryResponse}}}n.menu=m.elements.menu.value;n[&quot;menu-settings-column-nonce&quot;]=m.elements[&quot;menu-settings-column-nonce&quot;].value;d.post(ajaxurl,n,function(w){t.call(that,w,n);m.className=m.className.replace(/processing/g,&quot;&quot;)});return false},processAddMenuItemResponse:function(l,m){d(l).hideAdvancedMenuItemFields().appendTo(g);d(&quot;#custom-menu-item-name&quot;).val(&quot;&quot;).blur();d(&quot;#custom-menu-item-url&quot;).val(&quot;http://&quot;)},processQuickSearchQueryResponse:function(p,u){if(!u){u={}}var m=document.createElement(&quot;ul&quot;),l=document.getElementById(&quot;nav-menu-meta&quot;),q,t,n,v,r,s=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;),o;n=s.exec(p);if(n&amp;&amp;n[1]){r=n[1];while(l.elements[&quot;menu-item[&quot;+r+&quot;][menu-item-type]&quot;]){r--}if(r!=n[1]){p=p.replace(new RegExp(&quot;menu-item\\[&quot;+n[1]+&quot;\\]&quot;,&quot;g&quot;),&quot;menu-item[&quot;+r+&quot;]&quot;)}}m.innerHTML=p;t=m.getElementsByTagName(&quot;li&quot;);if(t[0]&amp;&amp;u.object_type){o=document.getElementById(u.object_type+&quot;-search-checklist&quot;);if(o){o.appendChild(t[0])}}else{if(u.type){n=/quick-search-(posttype|taxonomy)-([a-zA-Z_-]*)/.exec(u.type);if(n&amp;&amp;n[2]){o=document.getElementById(n[2]+&quot;-search-checklist&quot;);if(o){q=t.length;if(!q){v=document.createElement(&quot;li&quot;);v.appendChild(document.createTextNode(navMenuL10n.noResultsFound));o.appendChild(v)}while(q--){o.appendChild(t[q])}}}}}},removeMenuItem:function(m){m=d(m);var l=m.childMenuItems();m.addClass(&quot;deleting&quot;).fadeOut(350,function(){m.remove();l.shiftDepthClass(-1).updateParentMenuItemDBId();a()})}}};var wpNavMenu=new WPNavMenuHandler(jQuery);jQuery(function(){wpNavMenu.init()});
</del><span class="cx">\ No newline at end of file
</span><ins>+var WPNavMenuHandler=function(d){var h={},f=30,c=11,j=function(l,p,m,o){if(l&amp;&amp;l[0]){var n=d.parseJSON(l[0]);if(n.post_title){if(n.ID&amp;&amp;n.post_type){h[n.post_title]={ID:n.ID,object_type:n.post_type}}return n.post_title}}},k=function(l,p,m,o){if(l&amp;&amp;l[0]){var n=d.parseJSON(l[0]);if(n.post_title){return n.post_title}}},b=function(r,q){if(!r){return false}q=q||document;var m=[&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-append&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;],l={},n=q.getElementsByTagName(&quot;input&quot;),p=n.length,o,s=document.getElementById(&quot;nav-menu-meta-object-id&quot;).value;while(p--){o=m.length;while(o--){if(n[p]&amp;&amp;n[p].name&amp;&amp;&quot;menu-item[&quot;+r+&quot;][&quot;+m[o]+&quot;]&quot;==n[p].name){l[m[o]]=n[p].value}}}return l},a=function(){g.find(&quot;.menu-item-data-position&quot;).val(function(l){return l+1})},e=function(l){return l*f},i=function(l){return Math.floor(l/f)},g;d.fn.extend({menuItemDepth:function(){return i(this.eq(0).css(&quot;margin-left&quot;).slice(0,-2))},updateDepthClass:function(m,l){return this.each(function(){var n=d(this);l=l||n.menuItemDepth();d(this).removeClass(&quot;menu-item-depth-&quot;+l).addClass(&quot;menu-item-depth-&quot;+m)})},shiftDepthClass:function(l){return this.each(function(){var m=d(this),n=m.menuItemDepth();d(this).removeClass(&quot;menu-item-depth-&quot;+n).addClass(&quot;menu-item-depth-&quot;+(n+l))})},childMenuItems:function(){var l=d();this.each(function(){var m=d(this),o=m.menuItemDepth(),n=m.next();while(n.length&amp;&amp;n.menuItemDepth()&gt;o){l=l.add(n);n=n.next()}});return l},updateParentMenuItemDBId:function(){return this.each(function(){var n=d(this),l=n.find(&quot;.menu-item-data-parent-id&quot;),o=n.menuItemDepth(),m=n.prev();if(o==0){l.val(0)}else{while(m.menuItemDepth()!=o-1){m=m.prev()}l.val(m.find(&quot;.menu-item-data-object-id&quot;).val())}})},hideAdvancedMenuItemFields:function(){return this.each(function(){var l=d(this);d(&quot;.hide-column-tog&quot;).not(&quot;:checked&quot;).each(function(){l.find(&quot;.field-&quot;+d(this).val()).addClass(&quot;hidden-field&quot;)})})},});return{init:function(){g=d(&quot;#menu-to-edit&quot;);this.attachMenuEditListeners();this.attachMenuMetaListeners(document.getElementById(&quot;nav-menu-meta&quot;));this.attachTabsPanelListeners();if(g.length){this.initSortables()}this.initToggles()},initToggles:function(){postboxes.add_postbox_toggles(&quot;nav-menus&quot;);columns.useCheckboxesForHidden();columns.checked=function(l){d(&quot;.field-&quot;+l).removeClass(&quot;hidden-field&quot;)};columns.unchecked=function(l){d(&quot;.field-&quot;+l).addClass(&quot;hidden-field&quot;)};g.hideAdvancedMenuItemFields()},initSortables:function(){var o=0,m,p,r,n=g.offset().left;g.sortable({handle:&quot; &gt; dl&quot;,placeholder:&quot;sortable-placeholder&quot;,start:function(w,x){var v,z,s,y,t,A,u=x.item.children(&quot;.menu-item-transport&quot;);m=x.item.menuItemDepth();l(x,m);y=(x.item.next()[0]==x.placeholder[0])?x.item.next():x.item;t=y.childMenuItems();u.append(t);q(x);z=u.outerHeight();z+=(z&gt;0)?(x.placeholder.css(&quot;margin-top&quot;).slice(0,-2)*1):0;z+=x.item.outerHeight();z-=2;x.placeholder.height(z);A=m;t.each(function(){var B=d(this).menuItemDepth();A=(B&gt;A)?B:A});s=x.item.find(&quot;dl dt&quot;).outerWidth();s+=e(A-m);s-=2;x.placeholder.width(s)},stop:function(v,u){var t,s=o-m;t=u.item.children(&quot;.menu-item-transport&quot;).children().insertAfter(u.item);if(s!=0){u.item.updateDepthClass(o);t.shiftDepthClass(s)}u.item.updateParentMenuItemDBId();a()},change:function(t,s){if(!s.placeholder.parent().hasClass(&quot;menu&quot;)){s.placeholder.appendTo(g)}q(s)},sort:function(t,s){var u=i(s.item.offset().left-n);if(u&lt;p){u=p}else{if(u&gt;r){u=r}}if(u!=o){l(s,u)}}});function q(u){var t=u.placeholder.prev(),s=u.placeholder.next(),v;if(t[0]==u.item[0]){t=t.prev()}if(s[0]==u.item[0]){s=s.next()}p=(s.length)?s.menuItemDepth():0;if(t.length){r=((v=t.menuItemDepth()+1)&gt;c)?c:v}else{r=0}}function l(s,t){s.placeholder.updateDepthClass(t,o);o=t}},attachMenuEditListeners:function(){var l=this;d(&quot;#update-nav-menu&quot;).bind(&quot;click&quot;,function(m){if(m.target&amp;&amp;m.target.className){if(-1!=m.target.className.indexOf(&quot;item-edit&quot;)){return l.eventOnClickEditLink(m.target)}else{if(-1!=m.target.className.indexOf(&quot;menu-delete&quot;)){return l.eventOnClickMenuDelete(m.target)}else{if(-1!=m.target.className.indexOf(&quot;item-delete&quot;)){return l.eventOnClickMenuItemDelete(m.target)}else{if(-1!=m.target.className.indexOf(&quot;item-close&quot;)){return l.eventOnClickCloseLink(m.target)}}}}}})},setupInputWithDefaultTitle:function(){var l=&quot;input-with-default-title&quot;;d(&quot;.&quot;+l).each(function(){var o=d(this),n=o.attr(&quot;title&quot;),m=o.val();o.data(l,n);if(&quot;&quot;==m){o.val(n)}else{if(n==m){return}else{o.removeClass(l)}}}).focus(function(){var m=d(this);if(m.val()==m.data(l)){m.val(&quot;&quot;).removeClass(l)}}).blur(function(){var m=d(this);if(&quot;&quot;==m.val()){m.val(m.data(l)).addClass(l)}})},attachMenuMetaListeners:function(l){if(!l){return}var m=this;this.setupInputWithDefaultTitle();d(&quot;input.quick-search&quot;).each(function(n,o){m.setupQuickSearchEventListeners(o)});d(l).bind(&quot;submit&quot;,function(n){return m.eventSubmitMetaForm.call(m,this,n)});d(l).find(&quot;input:submit&quot;).click(function(){d(this).siblings(&quot;img.waiting&quot;).show()})},attachTabsPanelListeners:function(){d(&quot;#menu-settings-column&quot;).bind(&quot;click&quot;,function(q){if(q.target&amp;&amp;q.target.className&amp;&amp;-1!=q.target.className.indexOf(&quot;nav-tab-link&quot;)){var r,m=/#(.*)$/.exec(q.target.href),p,s=d(q.target).parents(&quot;.inside&quot;).first()[0],l=s?s.getElementsByTagName(&quot;input&quot;):[],n=l.length;while(n--){l[n].checked=false}d(&quot;.tabs-panel&quot;,s).each(function(){if(this.className){this.className=this.className.replace(&quot;tabs-panel-active&quot;,&quot;tabs-panel-inactive&quot;)}});d(&quot;.tabs&quot;,s).each(function(){this.className=this.className.replace(&quot;tabs&quot;,&quot;&quot;)});q.target.parentNode.className+=&quot; tabs&quot;;if(m&amp;&amp;m[1]){r=document.getElementById(m[1]);if(r){r.className=r.className.replace(&quot;tabs-panel-inactive&quot;,&quot;tabs-panel-active&quot;)}}return false}else{if(q.target&amp;&amp;q.target.className&amp;&amp;-1!=q.target.className.indexOf(&quot;select-all&quot;)){var o=/#(.*)$/.exec(q.target.href);if(o&amp;&amp;o[1]){d(&quot;#&quot;+o[1]+&quot; .tabs-panel-active input[type=checkbox]&quot;).attr(&quot;checked&quot;,&quot;checked&quot;);return false}}}})},setupQuickSearchEventListeners:function(l){var m=this;d(l).autocomplete(ajaxurl+&quot;?action=menu-quick-search&amp;type=&quot;+l.name,{delay:500,formatItem:j,formatResult:k,minchars:2,multiple:false}).bind(&quot;blur&quot;,function(p){var n=h[this.value],o=this;if(n){d.post(ajaxurl+&quot;?action=menu-quick-search&amp;type=get-post-item&amp;response-format=markup&quot;,n,function(q){m.processQuickSearchQueryResponse.call(m,q,n);h[o.value]=false})}})},eventOnClickEditLink:function(l){var n,m=/#(.*)$/.exec(l.href);if(m&amp;&amp;m[1]){n=d(&quot;#&quot;+m[1]);if(0!=n.length){if(n.hasClass(&quot;menu-item-edit-inactive&quot;)){n.slideDown(&quot;fast&quot;).siblings(&quot;dl&quot;).andSelf().removeClass(&quot;menu-item-edit-inactive&quot;).addClass(&quot;menu-item-edit-active&quot;)}else{n.slideUp(&quot;fast&quot;).siblings(&quot;dl&quot;).andSelf().removeClass(&quot;menu-item-edit-active&quot;).addClass(&quot;menu-item-edit-inactive&quot;)}return false}}},eventOnClickCloseLink:function(l){d(l).closest(&quot;.menu-item-settings&quot;).siblings(&quot;dl&quot;).find(&quot;.item-edit&quot;).click();return false},eventOnClickMenuDelete:function(l){if(confirm(navMenuL10n.warnDeleteMenu)){return true}else{return false}},eventOnClickMenuItemDelete:function(l){var o,n,m=this;if(confirm(navMenuL10n.warnDeleteMenuItem)){n=/_wpnonce=([a-zA-Z0-9]*)$/.exec(l.href);if(n&amp;&amp;n[1]){o=parseInt(l.id.replace(&quot;delete-&quot;,&quot;&quot;),10);d.post(ajaxurl,{action:&quot;delete-menu-item&quot;,&quot;menu-item&quot;:o,_wpnonce:n[1]},function(p){if(&quot;1&quot;==p){m.removeMenuItem(document.getElementById(&quot;menu-item-&quot;+o))}});return false}return true}else{return false}},eventSubmitMetaForm:function(m,s){var q=m.getElementsByTagName(&quot;input&quot;),p=q.length,o,u,l,r,n={},t=function(){},v=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;);that=this;n.action=&quot;&quot;;while(p--){if(q[p].name&amp;&amp;-1!=q[p].name.indexOf(&quot;menu-item-object-id&quot;)&amp;&amp;q[p].checked||(&quot;undefined&quot;!=typeof q[p].id&amp;&amp;&quot;custom-menu-item-url&quot;==q[p].id&amp;&amp;&quot;&quot;!=q[p].value&amp;&amp;&quot;http://&quot;!=q[p].value)){n.action=&quot;add-menu-item&quot;;t=that.processAddMenuItemResponse;r=v.exec(q[p].name);l=&quot;undefined&quot;==typeof r[1]?0:parseInt(r[1],10);u=b(l);for(o in u){n[&quot;menu-item[&quot;+l+&quot;][&quot;+o+&quot;]&quot;]=u[o]}q[p].checked=false}else{if(&quot;&quot;==n.action&amp;&amp;&quot;&quot;!=q[p].value&amp;&amp;q[p].className&amp;&amp;-1!=q[p].className.search(/quick-search\b[^-]/)){n.action=&quot;menu-quick-search&quot;;n.q=q[p].value;n[&quot;response-format&quot;]=&quot;markup&quot;;n.type=q[p].name;t=that.processQuickSearchQueryResponse}}}n.menu=m.elements.menu.value;n[&quot;menu-settings-column-nonce&quot;]=m.elements[&quot;menu-settings-column-nonce&quot;].value;d.post(ajaxurl,n,function(w){t.call(that,w,n);d(m).find(&quot;img.waiting&quot;).hide()});return false},processAddMenuItemResponse:function(l,m){d(l).hideAdvancedMenuItemFields().appendTo(g);d(&quot;#custom-menu-item-name&quot;).val(&quot;&quot;).blur();d(&quot;#custom-menu-item-url&quot;).val(&quot;http://&quot;)},processQuickSearchQueryResponse:function(p,u){if(!u){u={}}var m=document.createElement(&quot;ul&quot;),l=document.getElementById(&quot;nav-menu-meta&quot;),q,t,n,v,r,s=new RegExp(&quot;menu-item\\[([^\\]]*)&quot;),o;n=s.exec(p);if(n&amp;&amp;n[1]){r=n[1];while(l.elements[&quot;menu-item[&quot;+r+&quot;][menu-item-type]&quot;]){r--}if(r!=n[1]){p=p.replace(new RegExp(&quot;menu-item\\[&quot;+n[1]+&quot;\\]&quot;,&quot;g&quot;),&quot;menu-item[&quot;+r+&quot;]&quot;)}}m.innerHTML=p;t=m.getElementsByTagName(&quot;li&quot;);if(t[0]&amp;&amp;u.object_type){o=document.getElementById(u.object_type+&quot;-search-checklist&quot;);if(o){o.appendChild(t[0])}}else{if(u.type){n=/quick-search-(posttype|taxonomy)-([a-zA-Z_-]*)/.exec(u.type);if(n&amp;&amp;n[2]){o=document.getElementById(n[2]+&quot;-search-checklist&quot;);if(o){q=t.length;if(!q){v=document.createElement(&quot;li&quot;);v.appendChild(document.createTextNode(navMenuL10n.noResultsFound));o.appendChild(v)}while(q--){o.appendChild(t[q])}}}}}},removeMenuItem:function(m){m=d(m);var l=m.childMenuItems();m.addClass(&quot;deleting&quot;).fadeOut(350,function(){m.remove();l.shiftDepthClass(-1).updateParentMenuItemDBId();a()})}}};var wpNavMenu=new WPNavMenuHandler(jQuery);jQuery(function(){wpNavMenu.init()});
</ins><span class="cx">\ No newline at end of file
</span></span></pre>
</div>
</div>

</body>
</html>