<!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>[13402] trunk: move nav menu css/js to nav-menu prefix, See #11817</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13402">13402</a></dd>
<dt>Author</dt> <dd>wpmuguru</dd>
<dt>Date</dt> <dd>2010-02-25 17:10:00 +0000 (Thu, 25 Feb 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>move nav menu css/js to nav-menu prefix, See <a href="http://trac.wordpress.org/ticket/11817">#11817</a></pre>
<h3>Modified Paths</h3>
<ul>
<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>
<h3>Added 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="#trunkwpadminjsnavmenudefaultitemsdevjs">trunk/wp-admin/js/nav-menu-default-items.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenudefaultitemsjs">trunk/wp-admin/js/nav-menu-default-items.js</a></li>
<li><a href="#trunkwpadminjsnavmenudynamicfunctionsdevjs">trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenudynamicfunctionsjs">trunk/wp-admin/js/nav-menu-dynamic-functions.js</a></li>
<li><a href="#trunkwpadminjsnavmenuphpfunctionsdevjs">trunk/wp-admin/js/nav-menu-php-functions.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenuphpfunctionsjs">trunk/wp-admin/js/nav-menu-php-functions.js</a></li>
</ul>
<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkwpadmincsscustomnavigationcss">trunk/wp-admin/css/custom-navigation.css</a></li>
<li><a href="#trunkwpadmincsscustomnavigationdevcss">trunk/wp-admin/css/custom-navigation.dev.css</a></li>
<li><a href="#trunkwpadminjscustomnavigationdefaultitemsdevjs">trunk/wp-admin/js/custom-navigation-default-items.dev.js</a></li>
<li><a href="#trunkwpadminjscustomnavigationdefaultitemsjs">trunk/wp-admin/js/custom-navigation-default-items.js</a></li>
<li><a href="#trunkwpadminjscustomnavigationdynamicfunctionsdevjs">trunk/wp-admin/js/custom-navigation-dynamic-functions.dev.js</a></li>
<li><a href="#trunkwpadminjscustomnavigationdynamicfunctionsjs">trunk/wp-admin/js/custom-navigation-dynamic-functions.js</a></li>
<li><a href="#trunkwpadminjscustomnavigationphpfunctionsdevjs">trunk/wp-admin/js/custom-navigation-php-functions.dev.js</a></li>
<li><a href="#trunkwpadminjscustomnavigationphpfunctionsjs">trunk/wp-admin/js/custom-navigation-php-functions.js</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadmincsscustomnavigationcss"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/css/custom-navigation.css (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/custom-navigation.css        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/css/custom-navigation.css        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-.maintitle{margin:0 0 20px 0!important;}.logo{vertical-align:middle;margin:0 10px 0 0;}h2.heading{margin:32px 0 10px 0;}.checkboxes{float:right;margin:10px 12px 0 0;}#menus-container{clear:both;}#nav-container .inside{padding:0 10px 10px;}#menus-container .submit{padding:0;}#menu-settings-column .inside{padding:10px;}#custom-nav ul{width:100%;}#custom-nav li{margin:0;}.ui-draggable-dragging{width:500px;}#custom-nav li dl dt{-webkit-border-bottom-left-radius:6px;-webkit-border-bottom-right-radius:6px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:6px;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-bottomright:6px;-moz-border-radius-topleft:6px;-moz-border-radius-topright:6px;border:1px solid #E6E6E6;position:relative;padding-left:10px;background-color:#f1f1f1;height:35px;line-height:35px;}#custom-nav li dl dt:hover{cursor:move;}#custom-nav li dl dt .controls{position:absolute;right:15px;top:-1px;}#custom-nav li dl dt img{vertical-align:middle;}#custom-nav li .title{background:url(../images/ico-arrow.png) no-repeat 4px 5px;background-position:center left;padding-left:15px;}#custom-nav li ul li{margin-left:20px;opacity:.7;}#custom-nav li ul li ul li{opacity:.9;}#custom-nav li ul li ul li ul li{opacity:.9;}#custom-nav li ul li ul li ul li ul li{opacity:.95;}#add-custom-link .howto{font-size:11px;}#add-custom-link .widefat{width:85%;margin-right:5px;}.list-container{max-height:203px;overflow-y:auto;padding-left:2px;padding-right:5px;}.list{zoom:1;}.list li{margin:0;}.list dt{display:none;margin:0;border-bottom:1px solid #e3e3e3;overflow:hidden;}.list dt{background:url(../images/ico-add.png) no-repeat right;}.list li .title{cursor:pointer;display:block;width:95%;padding:5px 0;}.list li .title{background:url(../images/ico-arrow.png) no-repeat 4px 13px;background-position:center left;padding-left:5%;}.list li ul li .title{margin-left:14px;}.list li ul li ul li .title{margin-left:28px;}.list li ul li ul li ul li .title{margin-left:42px;}.list li ul li ul li ul li ul li .title{margin-left:56px;}.list li ul li ul li ul li ul li ul li .title{margin-left:70px;}.list li ul li ul li ul li ul li ul li ul li .title{margin-left:84px;}.list li ul li ul li ul li ul li ul li ul li ul li .title{margin-left:98px;}.list li ul li ul li ul li ul li ul li ul li ul li ul li .title{margin-left:112px;}img.remove,img.edit{cursor:pointer;margin:0 5px 0 0;}.dropzone{height:7px;margin:3px 0 3px 0;}.hide{display:none;}.type{text-transform:uppercase;font-size:11px;color:#999;padding-right:10px;}#menu_select{width:170px;}#dialog-confirm label{padding-left:10px;}.ui-dialog{background:#fff;border:1px solid #555;-moz-box-shadow:0 4px 30px #000;}.ui-dialog-titlebar{color:#CFCFCF;font-family:"Lucida Grande",Verdana,Arial,sans-serif;padding:6px 10px 6px;background-color:#222!important;border:none!important;-moz-border-radius:none!important;}#dialog-confirm{height:168px!important;padding:20px 10px 10px;}#dialog-confirm input{margin:0 0 15px 0;width:280px;}#dialog-confirm select{margin:0 0 15px 0;}.ui-dialog-buttonpane{padding:10px;}.ui-dialog-buttonpane button{margin:0 10px 0 0;background:#F2F2F2;text-shadow:0 1px 0 #FFF;border-color:#BBB;color:#464646;-moz-border-radius-bottomleft:11px;-moz-border-radius-bottomright:11px;-moz-border-radius-topleft:11px;-moz-border-radius-topright:11px;border-style:solid;border-width:1px;cursor:pointer;font-size:11px!important;line-height:14px;padding:2px 8px;text-decoration:none;}.ui-dialog-buttonpane button:hover{color:#000;border-color:#666;}.ui-icon{display:none;}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%;}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.60;filter:Alpha(Opacity=60);}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.60;filter:Alpha(Opacity=60);-moz-border-radius:8px;-webkit-border-radius:8px;}
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincsscustomnavigationdevcss"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/css/custom-navigation.dev.css (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/custom-navigation.dev.css        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/css/custom-navigation.dev.css        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1,81 +0,0 @@
</span><del>-/**
- * WordPress Administration Custom Navigation
- * Interface CSS
- *
- * @version 1.1.0
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-.maintitle { margin: 0 0 20px 0!important;}
-.logo { vertical-align: middle; margin: 0 10px 0 0; }
-h2.heading { margin: 32px 0 10px 0; }
-.checkboxes { float: right; margin: 10px 12px 0 0; }
-
-#menus-container { clear: both; }
-#nav-container .inside { padding: 0px 10px 10px; }
-#menus-container .submit { padding: 0px; }
-#menu-settings-column .inside { padding: 10px; }
-
-#custom-nav ul { width: 100%; }
-#custom-nav li { margin: 0; }
-.ui-draggable-dragging { width: 500px; }
-#custom-nav li dl dt { -webkit-border-bottom-left-radius: 6px; -webkit-border-bottom-right-radius: 6px; -webkit-border-top-left-radius: 6px; -webkit-border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-top-left-radius: 6px; border-top-right-radius: 6px; -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; border: 1px solid #E6E6E6;position: relative; padding-left:10px; background-color: #f1f1f1; height: 35px; line-height: 35px; }
-#custom-nav li dl dt:hover { cursor: move; }
-#custom-nav li dl dt .controls { position: absolute; right: 15px; top: -1px; }
-#custom-nav li dl dt img { vertical-align: middle; }
-#custom-nav li dl dt a {}
-#custom-nav li .title { background:url(../images/ico-arrow.png) no-repeat 4px 5px; background-position: center left; padding-left: 15px; }
-#custom-nav li ul li { margin-left: 20px; opacity: .7;}
-#custom-nav li ul li ul li { opacity: .9;}
-#custom-nav li ul li ul li ul li { opacity: .9;}
-#custom-nav li ul li ul li ul li ul li { opacity: .95; }
-
-#add-custom-link .howto { font-size: 11px; }
-#add-custom-link .widefat { width: 85%; margin-right: 5px; }
-
-.list-container { max-height: 203px; overflow-y: auto; padding-left: 2px; padding-right: 5px; }
-
-.list { zoom: 1; }
-.list li { margin: 0; }
-.list dt { display: none; margin: 0; border-bottom: 1px solid #e3e3e3; overflow: hidden; }
-.list dt { background: url(../images/ico-add.png) no-repeat right; }
-
-.list li .title { cursor: pointer; display: block; width: 95%; padding: 5px 0px; }
-.list li .title { background: url(../images/ico-arrow.png) no-repeat 4px 13px; background-position: center left; padding-left: 5%; }
-
-/* Visually shows the menu item hierarchy. */
-.list li ul li .title { margin-left: 14px; }
-.list li ul li ul li .title { margin-left: 28px; }
-.list li ul li ul li ul li .title { margin-left: 42px; }
-.list li ul li ul li ul li ul li .title { margin-left: 56px; }
-.list li ul li ul li ul li ul li ul li .title { margin-left: 70px; }
-.list li ul li ul li ul li ul li ul li ul li .title { margin-left: 84px; }
-.list li ul li ul li ul li ul li ul li ul li ul li .title { margin-left: 98px; }
-.list li ul li ul li ul li ul li ul li ul li ul li ul li .title { margin-left: 112px; }
-
-img.remove, img.edit { cursor: pointer; margin: 0 5px 0 0; }
-.dropzone { height: 7px; margin: 3px 0 3px 0; }
-#custom-nav li dl { }
-.hide { display: none; }
-.type { text-transform: uppercase; font-size: 11px; color: #999999; padding-right: 10px; }
-
-#menu_select { width: 170px; }
-#dialog-confirm label { padding-left: 10px; }
-
-/* EDIT LINK BOX */
-.ui-dialog { background: #fff; border: 1px solid #555555; -moz-box-shadow:0 4px 30px #000000; }
-.ui-dialog-titlebar { color: #CFCFCF; font-family: "Lucida Grande", Verdana, Arial, sans-serif; padding: 6px 10px 6px; background-color: #222222 !important; border: none !important; -moz-border-radius: none !important; }
-#dialog-confirm { height: 168px !important; padding: 20px 10px 10px; }
-#dialog-confirm input { margin: 0 0 15px 0; width: 280px; }
-#dialog-confirm select { margin: 0 0 15px 0; }
-.ui-dialog-buttonpane { padding: 10px; }
-.ui-dialog-buttonpane button { margin: 0 10px 0 0; background: #F2F2F2; text-shadow: 0 1px 0 #FFFFFF; border-color: #BBBBBB; color: #464646; -moz-border-radius-bottomleft: 11px; -moz-border-radius-bottomright: 11px; -moz-border-radius-topleft: 11px; -moz-border-radius-topright: 11px; border-style: solid; border-width: 1px; cursor: pointer; font-size: 11px !important; line-height: 14px; padding: 2px 8px; text-decoration: none; }
-.ui-dialog-buttonpane button:hover { color: #000; border-color: #666; }
-.ui-icon { display: none; }
-
-/* Overlays */
-.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
-.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .60; filter:Alpha(Opacity=60); }
-.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .60; filter: Alpha(Opacity=60); -moz-border-radius: 8px; -webkit-border-radius: 8px; }
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincssnavmenucssfromrev13399trunkwpadmincsscustomnavigationcss"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/css/nav-menu.css (from rev 13399, trunk/wp-admin/css/custom-navigation.css) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu.css         (rev 0)
+++ trunk/wp-admin/css/nav-menu.css        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+.maintitle{margin:0 0 20px 0!important;}.logo{vertical-align:middle;margin:0 10px 0 0;}h2.heading{margin:32px 0 10px 0;}.checkboxes{float:right;margin:10px 12px 0 0;}#menus-container{clear:both;}#nav-container .inside{padding:0 10px 10px;}#menus-container .submit{padding:0;}#menu-settings-column .inside{padding:10px;}#custom-nav ul{width:100%;}#custom-nav li{margin:0;}.ui-draggable-dragging{width:500px;}#custom-nav li dl dt{-webkit-border-bottom-left-radius:6px;-webkit-border-bottom-right-radius:6px;-webkit-border-top-left-radius:6px;-webkit-border-top-right-radius:6px;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top-left-radius:6px;border-top-right-radius:6px;-moz-border-radius-bottomleft:6px;-moz-border-radius-bottomright:6px;-moz-border-radius-topleft:6px;-moz-border-radius-topright:6px;border:1px solid #E6E6E6;position:relative;padding-left:10px;background-color:#f1f1f1;height:35px;line-height:35px;}#custom-nav li dl dt:hover{cursor:move;}#custom-nav li dl dt .controls{position:absolute;right:15px;top:-1px;}#custom-nav li dl dt img{vertical-align:middle;}#custom-nav li .title{background:url(../images/ico-arrow.png) no-repeat 4px 5px;background-position:center left;padding-left:15px;}#custom-nav li ul li{margin-left:20px;opacity:.7;}#custom-nav li ul li ul li{opacity:.9;}#custom-nav li ul li ul li ul li{opacity:.9;}#custom-nav li ul li ul li ul li ul li{opacity:.95;}#add-custom-link .howto{font-size:11px;}#add-custom-link .widefat{width:85%;margin-right:5px;}.list-container{max-height:203px;overflow-y:auto;padding-left:2px;padding-right:5px;}.list{zoom:1;}.list li{margin:0;}.list dt{display:none;margin:0;border-bottom:1px solid #e3e3e3;overflow:hidden;}.list dt{background:url(../images/ico-add.png) no-repeat right;}.list li .title{cursor:pointer;display:block;width:95%;padding:5px 0;}.list li .title{background:url(../images/ico-arrow.png) no-repeat 4px 13px;background-position:center left;padding-left:5%;}.list li ul li .title{margin-left:14px;}.list li ul li ul li .title{margin-left:28px;}.list li ul li ul li ul li .title{margin-left:42px;}.list li ul li ul li ul li ul li .title{margin-left:56px;}.list li ul li ul li ul li ul li ul li .title{margin-left:70px;}.list li ul li ul li ul li ul li ul li ul li .title{margin-left:84px;}.list li ul li ul li ul li ul li ul li ul li ul li .title{margin-left:98px;}.list li ul li ul li ul li ul li ul li ul li ul li ul li .title{margin-left:112px;}img.remove,img.edit{cursor:pointer;margin:0 5px 0 0;}.dropzone{height:7px;margin:3px 0 3px 0;}.hide{display:none;}.type{text-transform:uppercase;font-size:11px;color:#999;padding-right:10px;}#menu_select{width:170px;}#dialog-confirm label{padding-left:10px;}.ui-dialog{background:#fff;border:1px solid #555;-moz-box-shadow:0 4px 30px #000;}.ui-dialog-titlebar{color:#CFCFCF;font-family:"Lucida Grande",Verdana,Arial,sans-serif;padding:6px 10px 6px;background-color:#222!important;border:none!important;-moz-border-radius:none!important;}#dialog-confirm{height:168px!important;padding:20px 10px 10px;}#dialog-confirm input{margin:0 0 15px 0;width:280px;}#dialog-confirm select{margin:0 0 15px 0;}.ui-dialog-buttonpane{padding:10px;}.ui-dialog-buttonpane button{margin:0 10px 0 0;background:#F2F2F2;text-shadow:0 1px 0 #FFF;border-color:#BBB;color:#464646;-moz-border-radius-bottomleft:11px;-moz-border-radius-bottomright:11px;-moz-border-radius-topleft:11px;-moz-border-radius-topright:11px;border-style:solid;border-width:1px;cursor:pointer;font-size:11px!important;line-height:14px;padding:2px 8px;text-decoration:none;}.ui-dialog-buttonpane button:hover{color:#000;border-color:#666;}.ui-icon{display:none;}.ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%;}.ui-widget-overlay{background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.60;filter:Alpha(Opacity=60);}.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.60;filter:Alpha(Opacity=60);-moz-border-radius:8px;-webkit-border-radius:8px;}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincssnavmenucss"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/css/nav-menu.css</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadmincssnavmenudevcssfromrev13399trunkwpadmincsscustomnavigationdevcss"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/css/nav-menu.dev.css (from rev 13399, trunk/wp-admin/css/custom-navigation.dev.css) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/css/nav-menu.dev.css         (rev 0)
+++ trunk/wp-admin/css/nav-menu.dev.css        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1,81 @@
</span><ins>+/**
+ * WordPress Administration Custom Navigation
+ * Interface CSS
+ *
+ * @version 1.1.0
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+.maintitle { margin: 0 0 20px 0!important;}
+.logo { vertical-align: middle; margin: 0 10px 0 0; }
+h2.heading { margin: 32px 0 10px 0; }
+.checkboxes { float: right; margin: 10px 12px 0 0; }
+
+#menus-container { clear: both; }
+#nav-container .inside { padding: 0px 10px 10px; }
+#menus-container .submit { padding: 0px; }
+#menu-settings-column .inside { padding: 10px; }
+
+#custom-nav ul { width: 100%; }
+#custom-nav li { margin: 0; }
+.ui-draggable-dragging { width: 500px; }
+#custom-nav li dl dt { -webkit-border-bottom-left-radius: 6px; -webkit-border-bottom-right-radius: 6px; -webkit-border-top-left-radius: 6px; -webkit-border-top-right-radius: 6px; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-top-left-radius: 6px; border-top-right-radius: 6px; -moz-border-radius-bottomleft: 6px; -moz-border-radius-bottomright: 6px; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; border: 1px solid #E6E6E6;position: relative; padding-left:10px; background-color: #f1f1f1; height: 35px; line-height: 35px; }
+#custom-nav li dl dt:hover { cursor: move; }
+#custom-nav li dl dt .controls { position: absolute; right: 15px; top: -1px; }
+#custom-nav li dl dt img { vertical-align: middle; }
+#custom-nav li dl dt a {}
+#custom-nav li .title { background:url(../images/ico-arrow.png) no-repeat 4px 5px; background-position: center left; padding-left: 15px; }
+#custom-nav li ul li { margin-left: 20px; opacity: .7;}
+#custom-nav li ul li ul li { opacity: .9;}
+#custom-nav li ul li ul li ul li { opacity: .9;}
+#custom-nav li ul li ul li ul li ul li { opacity: .95; }
+
+#add-custom-link .howto { font-size: 11px; }
+#add-custom-link .widefat { width: 85%; margin-right: 5px; }
+
+.list-container { max-height: 203px; overflow-y: auto; padding-left: 2px; padding-right: 5px; }
+
+.list { zoom: 1; }
+.list li { margin: 0; }
+.list dt { display: none; margin: 0; border-bottom: 1px solid #e3e3e3; overflow: hidden; }
+.list dt { background: url(../images/ico-add.png) no-repeat right; }
+
+.list li .title { cursor: pointer; display: block; width: 95%; padding: 5px 0px; }
+.list li .title { background: url(../images/ico-arrow.png) no-repeat 4px 13px; background-position: center left; padding-left: 5%; }
+
+/* Visually shows the menu item hierarchy. */
+.list li ul li .title { margin-left: 14px; }
+.list li ul li ul li .title { margin-left: 28px; }
+.list li ul li ul li ul li .title { margin-left: 42px; }
+.list li ul li ul li ul li ul li .title { margin-left: 56px; }
+.list li ul li ul li ul li ul li ul li .title { margin-left: 70px; }
+.list li ul li ul li ul li ul li ul li ul li .title { margin-left: 84px; }
+.list li ul li ul li ul li ul li ul li ul li ul li .title { margin-left: 98px; }
+.list li ul li ul li ul li ul li ul li ul li ul li ul li .title { margin-left: 112px; }
+
+img.remove, img.edit { cursor: pointer; margin: 0 5px 0 0; }
+.dropzone { height: 7px; margin: 3px 0 3px 0; }
+#custom-nav li dl { }
+.hide { display: none; }
+.type { text-transform: uppercase; font-size: 11px; color: #999999; padding-right: 10px; }
+
+#menu_select { width: 170px; }
+#dialog-confirm label { padding-left: 10px; }
+
+/* EDIT LINK BOX */
+.ui-dialog { background: #fff; border: 1px solid #555555; -moz-box-shadow:0 4px 30px #000000; }
+.ui-dialog-titlebar { color: #CFCFCF; font-family: "Lucida Grande", Verdana, Arial, sans-serif; padding: 6px 10px 6px; background-color: #222222 !important; border: none !important; -moz-border-radius: none !important; }
+#dialog-confirm { height: 168px !important; padding: 20px 10px 10px; }
+#dialog-confirm input { margin: 0 0 15px 0; width: 280px; }
+#dialog-confirm select { margin: 0 0 15px 0; }
+.ui-dialog-buttonpane { padding: 10px; }
+.ui-dialog-buttonpane button { margin: 0 10px 0 0; background: #F2F2F2; text-shadow: 0 1px 0 #FFFFFF; border-color: #BBBBBB; color: #464646; -moz-border-radius-bottomleft: 11px; -moz-border-radius-bottomright: 11px; -moz-border-radius-topleft: 11px; -moz-border-radius-topright: 11px; border-style: solid; border-width: 1px; cursor: pointer; font-size: 11px !important; line-height: 14px; padding: 2px 8px; text-decoration: none; }
+.ui-dialog-buttonpane button:hover { color: #000; border-color: #666; }
+.ui-icon { display: none; }
+
+/* Overlays */
+.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
+.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .60; filter:Alpha(Opacity=60); }
+.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .60; filter: Alpha(Opacity=60); -moz-border-radius: 8px; -webkit-border-radius: 8px; }
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadmincssnavmenudevcss"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/css/nav-menu.dev.css</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadminjscustomnavigationdefaultitemsdevjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/custom-navigation-default-items.dev.js (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-navigation-default-items.dev.js        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/js/custom-navigation-default-items.dev.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1,146 +0,0 @@
</span><del>-/**
- * WordPress Administration Custom Navigation
- * Interface JQuery functions
- *
- * @version 1.1.0
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/*
- * Init Functions
-*/
-jQuery(function($)
-        {
-                //Makes dialog box
-                $("#dialog-confirm").dialog({
-                        autoOpen: false,
-                        resizable: false,
-                        height: 210,
-                        width: 400,
-                        modal: true,
-                        buttons: {
-                                'Save': function() {
-
-                                        titletosave = $('#edittitle').attr('value');
-                                        linktosave = $('#editlink').attr('value');
-                                        anchortitletosave = $('#editanchortitle').attr('value');
-                                        newwindowtosave = $('#editnewwindow').attr('value');
-                                        desctosave = $('#editdescription').attr('value');
-
-                                        $('#title' + $(this).dialog('option', 'itemID')).attr('value',titletosave);
-                                        $('#linkurl' + $(this).dialog('option', 'itemID')).attr('value',linktosave);
-                                        $('#anchortitle' + $(this).dialog('option', 'itemID')).attr('value',anchortitletosave);
-                                        $('#newwindow' + $(this).dialog('option', 'itemID')).attr('value',newwindowtosave);
-                                        $('#description' + $(this).dialog('option', 'itemID')).attr('value',desctosave);
-
-                                        $('#menu-' + $(this).dialog('option', 'itemID') + ' > dl > dt > span.title').text(titletosave);
-
-                                        $('#view' + + $(this).dialog('option', 'itemID')).attr('href', linktosave);
-
-                                        $(this).dialog('close');
-
-                                },
-                                Cancel: function() {
-                                        $(this).dialog('close');
-                                }
-                        }
-                });
-
-                // $('#message').animate({ opacity: 1.0 },2000).fadeOut(300, function(){ $(this).remove();});
-
-                //Add dropzone
-         $('#custom-nav li').prepend('<div class="dropzone"></div>');
-
-                //Make li items draggable
-                $('#custom-nav li').draggable({
-                         handle: ' > dl',
-                         opacity: .8,
-                         addClasses: false,
-                         helper: 'clone',
-                         zIndex: 100
-                });
-
-                //Make items droppable
-                $('#custom-nav dl, #custom-nav .dropzone').droppable(
-                {
-                 accept: '#custom-nav li',
-                 tolerance: 'pointer',
-                 drop: function(e, ui)
-                 {
-                 var li = $(this).parent();
-                 var child = !$(this).hasClass('dropzone');
-                 //Add UL to first child
-                 if (child && li.children('ul').length == 0)
-                 {
-                 li.append('<ul id="sub-menu" />');
-                 }
-                 //Make it draggable
-                 if (child)
-                 {
-                 li.children('ul').append(ui.draggable);
-                 }
-                 else
-                 {
-                 li.before(ui.draggable);
-                 }
-
-                 li.find('dl,.dropzone').css({ backgroundColor: '', borderColor: '' });
-
-                 var draggablevalue = ui.draggable.attr('value');
-                 var droppablevalue = li.attr('value');
-                 li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
-                 $(this).parent().find("dt").removeAttr('style');
-                 $(this).parent().find("div:first").removeAttr('style');
-
-
-                 },
-                 over: function()
-                 {
-                         //Add child
-                         if ($(this).attr('class') == 'dropzone ui-droppable')
-                         {
-                                 $(this).parent().find("div:first").css('background', 'none').css('height', '50px');
-                         }
-                         //Add above
-                         else if ($(this).attr('class') == 'ui-droppable')
-                         {
-                                 $(this).parent().find("dt:first").css('background', '#d8d8d8');
-                         }
-                         //do nothing
-                         else {
-
-                         }
-                         var parentid = $(this).parent().attr('id');
-
-                 },
-                 out: function()
-                 {
-                 $(this).parent().find("dt").removeAttr('style');
-                 $(this).parent().find("div:first").removeAttr('style');
-                 $(this).filter('.dropzone').css({ borderColor: '' });
-                 },
-                 deactivate: function()
-                 {
-
-
-                 }
-
-
-                });
-
-                //Handle Save Button Clicks
-                $('#save_top').click(function()
-                {
-                        updatepostdata();
-                });
-                $('#save_bottom').click(function()
-                {
-                        updatepostdata();
-                });
-
-
-        });
-
-
</del></span></pre></div>
<a id="trunkwpadminjscustomnavigationdefaultitemsjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/custom-navigation-default-items.js (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-navigation-default-items.js        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/js/custom-navigation-default-items.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-jQuery(function($){$("#dialog-confirm").dialog({autoOpen:false,resizable:false,height:210,width:400,modal:true,buttons:{Save:function(){titletosave=$("#edittitle").attr("value");linktosave=$("#editlink").attr("value");anchortitletosave=$("#editanchortitle").attr("value");newwindowtosave=$("#editnewwindow").attr("value");desctosave=$("#editdescription").attr("value");$("#title"+$(this).dialog("option","itemID")).attr("value",titletosave);$("#linkurl"+$(this).dialog("option","itemID")).attr("value",linktosave);$("#anchortitle"+$(this).dialog("option","itemID")).attr("value",anchortitletosave);$("#newwindow"+$(this).dialog("option","itemID")).attr("value",newwindowtosave);$("#description"+$(this).dialog("option","itemID")).attr("value",desctosave);$("#menu-"+$(this).dialog("option","itemID")+" > dl > dt > span.title").text(titletosave);$("#view"+ +$(this).dialog("option","itemID")).attr("href",linktosave);$(this).dialog("close")},Cancel:function(){$(this).dialog("close")}}});$("#custom-nav li").prepend('<div class="dropzone"></div>');$("#custom-nav li").draggable({handle:" > dl",opacity:0.8,addClasses:false,helper:"clone",zIndex:100});$("#custom-nav dl, #custom-nav .dropzone").droppable({accept:"#custom-nav li",tolerance:"pointer",drop:function(e,ui){var li=$(this).parent();var child=!$(this).hasClass("dropzone");if(child&&li.children("ul").length==0){li.append('<ul id="sub-menu" />')}if(child){li.children("ul").append(ui.draggable)}else{li.before(ui.draggable)}li.find("dl,.dropzone").css({backgroundColor:"",borderColor:""});var draggablevalue=ui.draggable.attr("value");var droppablevalue=li.attr("value");li.find("#menu-"+draggablevalue).find("#parent"+draggablevalue).val(droppablevalue);$(this).parent().find("dt").removeAttr("style");$(this).parent().find("div:first").removeAttr("style")},over:function(){if($(this).attr("class")=="dropzone ui-droppable"){$(this).parent().find("div:first").css("background","none").css("height","50px")}else{if($(this).attr("class")=="ui-droppable"){$(this).parent().find("dt:first").css("background","#d8d8d8")}else{}}var parentid=$(this).parent().attr("id")},out:function(){$(this).parent().find("dt").removeAttr("style");$(this).parent().find("div:first").removeAttr("style");$(this).filter(".dropzone").css({borderColor:""})},deactivate:function(){}});$("#save_top").click(function(){updatepostdata()});$("#save_bottom").click(function(){updatepostdata()})});
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjscustomnavigationdynamicfunctionsdevjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/custom-navigation-dynamic-functions.dev.js (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-navigation-dynamic-functions.dev.js        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/js/custom-navigation-dynamic-functions.dev.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1,293 +0,0 @@
</span><del>-/**
- * WordPress Administration Custom Navigation
- * Interface JS functions
- *
- * @version 1.1.0
- *
- * @package WordPress
- * @subpackage Administration
- */
-
-/*
- * Removes menu items from current menu
- * @param int o - the id of the menu li to remove.
-*/
-function removeitem(o)
-{
-
-        var todelete = document.getElementById('menu-' + o);
-
-        if (todelete)
-        {
-                var parenttodelete = document.getElementById('menu-' + o).parentNode;
- throwaway_node = parenttodelete.removeChild(todelete);
-        }
-
-        updatepostdata();
-};
-
-/*
- * Loads dialog window to edit menu items from current menu
- * @param int o - the id of the menu li to edit.
-*/
-function edititem(o)
-{
-
-                itemTitle = jQuery('#title' + o).val();
-                itemURL = jQuery('#linkurl' + o).val();
-                itemAnchorTitle = jQuery('#anchortitle' + o).val();
-                itemNewWindow = jQuery('#newwindow' + o).val();
-                itemDesc = jQuery('#description' + o).val();
-
-                jQuery('#dialog-confirm').dialog( 'option' , 'itemID' , o )
-
-                jQuery('#dialog-confirm').dialog('open');
-
-                jQuery('#edittitle').val( itemTitle );
-                if ( 'custom' == jQuery( '#linktype' + o ).val() ) {
-                        jQuery( '#editlink-wrap' ).css( 'display', 'inline' );
-                } else {
-                        jQuery( '#editlink-wrap' ).css( 'display', 'none' );
-                }
-                jQuery('#editlink').val( itemURL );
-                jQuery('#editanchortitle').val( itemAnchorTitle );
-                jQuery("#editnewwindow option[value='" + itemNewWindow + "']").attr('selected', 'selected');
-                jQuery('#editdescription').val( itemDesc );
-
-};
-
-/*
- * Prepares menu items for POST
-*/
-function updatepostdata()
-{
-
-        var i = 0;
-         jQuery("#custom-nav").find("li").each(function(i) {
-                i = i + 1;
-         var j = jQuery(this).attr('value');
-
-         jQuery(this).find('#position' + j).attr('value', i);
-         jQuery(this).attr('id','menu-' + i);
-         jQuery(this).attr('value', i);
-
-         jQuery(this).find('#dbid' + j).attr('name','dbid' + i);
-         jQuery(this).find('#dbid' + j).attr('id','dbid' + i);
-
-                jQuery(this).find('#postmenu' + j).attr('name','postmenu' + i);
-         jQuery(this).find('#postmenu' + j).attr('id','postmenu' + i);
-
-         var p = jQuery(this).find('#parent' + j).parent().parent().parent().attr('value');
-
-         jQuery(this).find('#parent' + j).attr('name','parent' + i);
-         jQuery(this).find('#parent' + j).attr('id','parent' + i);
-         if (p) {
-                 //Do nothing
-         }
-         else {
-                 //reset p to be top level
-                 p = 0;
-         }
-
-         jQuery(this).find('#parent' + j).attr('value', p);
-
-         jQuery(this).find('#title' + j).attr('name','title' + i);
-         jQuery(this).find('#title' + j).attr('id','title' + i);
-
-         jQuery(this).find('#linkurl' + j).attr('name','linkurl' + i);
-         jQuery(this).find('#linkurl' + j).attr('id','linkurl' + i);
-
-         jQuery(this).find('#description' + j).attr('name','description' + i);
-         jQuery(this).find('#description' + j).attr('id','description' + i);
-
-         jQuery(this).find('#icon' + j).attr('name','icon' + i);
-         jQuery(this).find('#icon' + j).attr('id','icon' + i);
-
-         jQuery(this).find('#position' + j).attr('name','position' + i);
-         jQuery(this).find('#position' + j).attr('id','position' + i);
-
-         jQuery(this).find('#linktype' + j).attr('name','linktype' + i);
-         jQuery(this).find('#linktype' + j).attr('id','linktype' + i);
-
-         jQuery(this).find('#anchortitle' + j).attr('name','anchortitle' + i);
-         jQuery(this).find('#anchortitle' + j).attr('id','anchortitle' + i);
-
-         jQuery(this).find('#newwindow' + j).attr('name','newwindow' + i);
-         jQuery(this).find('#newwindow' + j).attr('id','newwindow' + i);
-
-         jQuery(this).find('dl > dt > span > #remove' + j).attr('value', i);
-         jQuery(this).find('dl > dt > span > #remove' + j).attr('onClick', 'removeitem(' + i + ')');
-         jQuery(this).find('dl > dt > span > #remove' + j).attr('id','remove' + i);
-
-         jQuery('#li-count').attr('value',i);
-
- });
-
-
-
-};
-
-/*
- * Adds item from Page, Category, or Custom options menu
- * @param string templatedir - directory of the add, edit, view images.
- * @param string additemtype - Page, Category, or Custom.
- * @param string itemtext - menu text.
- * @param string itemurl - url of the menu.
- * @param int itemid - menu id.
- * @param int itemparentid - default 0.
- * @param string itemdescription - the description of the menu item.
-*/
-function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparentid,itemdescription)
-{
-        var inputvaluevarname = '';
-        var inputvaluevarurl = '';
-        var inputitemid = '';
-        var inputparentid= '';
-        var inputdescription = '';
-        var inputicon = '';
-
-        if (additemtype == navMenuL10n.custom)
-        {
-                inputvaluevarname = document.getElementById('custom-menu-item-name').value;
-                inputvaluevarurl = document.getElementById('custom-menu-item-url').value;
-                inputitemid = '';
-                inputparentid = '';
-                inputlinktype = 'custom';
-                inputdescription = '';
-        }
-        else if (additemtype == navMenuL10n.page)
-        {
-                inputvaluevarname = htmlentities(itemtext.toString());
-                inputvaluevarurl = itemurl.toString();
-                inputitemid = itemid.toString();
-                inputparentid = '0';
-                inputlinktype = 'page';
-                inputdescription = htmlentities(itemdescription.toString());
-
-        }
-        else if (additemtype == navMenuL10n.category)
-        {
-                inputvaluevarname = htmlentities(itemtext.toString());
-                inputvaluevarurl = itemurl.toString();
-                inputitemid = itemid.toString();
-                inputparentid = '0';
-                inputlinktype = 'category';
-                inputdescription = htmlentities(itemdescription.toString());
-        }
-        else
-        {
-                inputvaluevarname = '';
-                inputvaluevarname = '';
-                inputitemid = '';
-                inputparentid = '';
-                inputlinktype = 'custom';
-                inputdescription = '';
-        }
-
-        var count=document.getElementById('custom-nav').getElementsByTagName('li').length + 1;
-
-        var randomnumber = count;
-
-        var validatetest = 0;
-
-        try
-        {
-                var test=document.getElementById("menu-" + randomnumber.toString()).value;
-        }
-        catch (err)
-        {
-                validatetest = 1;
-        }
-
-        while (validatetest == 0)
-        {
-                randomnumber = randomnumber + 1;
-
-                try
-                {
-                        var test2=document.getElementById("menu-" + randomnumber.toString()).value;
-                }
-                catch (err)
-                {
-                        validatetest = 1;
-                }
-        }
-
-        //Notification Message
-        jQuery('.maintitle').after('<div id="message" class="updated fade below-h2"><p>Menu Item added!</p></div>');
-        jQuery('#message').animate({ opacity: 1.0 },2000).fadeOut(300, function(){ jQuery(this).remove();});
-
-        //Appends HTML to the menu
-        jQuery('#custom-nav').append('<li id="menu-' + randomnumber + '" value="' + randomnumber + '"><div class="dropzone ui-droppable"></div><dl class="ui-droppable"><dt><span class="title">' + inputvaluevarname + '</span><span class="controls"><span class="type">' + additemtype + '</span><a id="edit' + randomnumber + '" onclick="edititem(' + randomnumber + ')" value="' + randomnumber +'"><img class="edit" alt="Edit Menu Item" title="Edit Menu Item" src="' + templatedir + '/wp-admin/images/ico-edit.png" /></a> <a id="remove' + randomnumber + '" onclick="removeitem(' + randomnumber + ')" value="' + randomnumber +'"><img class="remove" alt="Remove from Custom Menu" title="Remove from Custom Menu" src="' + templatedir + '/wp-admin/images/ico-close.png" /></a> <a href="' + inputvaluevarurl + '" target="_blank"><img alt="View Custom Link" title="View Custom Link" src="' + templatedir + '/wp-admin/images/ico-viewpage.png" /></a></span></dt></dl><a class="hide" href="' + inputvaluevarurl + '">' + inputvaluevarname + '</a><input type="hidden" name="postmenu' + randomnumber + '" id="postmenu' + randomnumber + '" value="' + inputitemid + '" /><input type="hidden" name="parent' + randomnumber + '" id="parent' + randomnumber + '" value="' + inputparentid + '" /><input type="hidden" name="title' + randomnumber + '" id="title' + randomnumber + '" value="' + inputvaluevarname + '" /><input type="hidden" name="linkurl' + randomnumber + '" id="linkurl' + randomnumber + '" value="' + inputvaluevarurl + '" /><input type="hidden" name="description' + randomnumber + '" id="description' + randomnumber + '" value="' + inputdescription + '" /><input type="hidden" name="icon' + randomnumber + '" id="icon' + randomnumber + '" value="' + inputicon + '" /><input type="hidden" name="position' + randomnumber + '" id="position' + randomnumber + '" value="' + randomnumber + '" /><input type="hidden" name="linktype' + randomnumber + '" id="linktype' + randomnumber + '" value="' + inputlinktype + '" /><input type="hidden" name="anchortitle' + randomnumber + '" id="anchortitle' + randomnumber + '" value="' + inputvaluevarname + '" /><input type="hidden" name="newwindow' + randomnumber + '" id="newwindow' + randomnumber + '" value="0" /></li>');
-
-        //make menu item draggable
-        jQuery('#menu-' + randomnumber + '').draggable(
-        {
-                handle: ' > dl',
-                opacity: .8,
-                addClasses: false,
-                helper: 'clone',
-                zIndex: 100
-        });
-
-        //make menu item droppable
-        jQuery('#menu-' + randomnumber + ' dl, #menu-' + randomnumber + ' .dropzone').droppable({
-                accept: '#' + randomnumber + ', #custom-nav li',
-                tolerance: 'pointer',
-                drop: function(e, ui)
-                {
-                        var li = jQuery(this).parent();
-                        var child = !jQuery(this).hasClass('dropzone');
-                        //Append UL to first child
-                        if (child && li.children('ul').length == 0)
-                        {
-                                li.append('<ul/>');
-                        }
-                        //Make it draggable
-                        if (child)
-                        {
-                                li.children('ul').append(ui.draggable);
-                        }
-                        else
-                        {
-                                li.before(ui.draggable);
-                        }
-
-                        li.find('dl,.dropzone').css({ backgroundColor: '', borderColor: '' });
-
-                        var draggablevalue = ui.draggable.attr('value');
-                 var droppablevalue = li.attr('value');
-                 li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
-         jQuery(this).parent().find("dt").removeAttr('style');
-         jQuery(this).parent().find("div:first").removeAttr('style');
-
-                },
-                over: function()
-                 {
-                         //Add child
-                         if (jQuery(this).attr('class') == 'dropzone ui-droppable')
-                         {
-                                 jQuery(this).parent().find("div:first").css('background', 'none').css('height', '50px');
-                         }
-                         //Add above
-                         else if (jQuery(this).attr('class') == 'ui-droppable')
-                         {
-                                 jQuery(this).parent().find("dt:first").css('background', '#d8d8d8');
-                         }
-                         //do nothing
-                         else {
-
-                         }
-                         var parentid = jQuery(this).parent().attr('id');
-
-                 },
-                 out: function()
-                 {
-                 jQuery(this).parent().find("dt").removeAttr('style');
-                 jQuery(this).parent().find("div:first").removeAttr('style');
-                 jQuery(this).filter('.dropzone').css({ borderColor: '' });
-                 }
-        });
-
-        updatepostdata();
-};
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjscustomnavigationdynamicfunctionsjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/custom-navigation-dynamic-functions.js (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-navigation-dynamic-functions.js        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/js/custom-navigation-dynamic-functions.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-function removeitem(c){var b=document.getElementById("menu-"+c);if(b){var a=document.getElementById("menu-"+c).parentNode;throwaway_node=a.removeChild(b)}updatepostdata()}function edititem(a){itemTitle=jQuery("#title"+a).attr("value");itemURL=jQuery("#linkurl"+a).attr("value");itemAnchorTitle=jQuery("#anchortitle"+a).attr("value");itemNewWindow=jQuery("#newwindow"+a).attr("value");itemDesc=jQuery("#description"+a).attr("value");jQuery("#dialog-confirm").dialog("option","itemID",a);jQuery("#dialog-confirm").dialog("open");jQuery("#edittitle").attr("value",itemTitle);jQuery("#editlink").attr("value",itemURL);jQuery("#editanchortitle").attr("value",itemAnchorTitle);jQuery("#editnewwindow option[value='"+itemNewWindow+"']").attr("selected","selected");jQuery("#editdescription").attr("value",itemDesc)}function updatepostdata(){var a=0;jQuery("#custom-nav").find("li").each(function(c){c=c+1;var b=jQuery(this).attr("value");jQuery(this).find("#position"+b).attr("value",c);jQuery(this).attr("id","menu-"+c);jQuery(this).attr("value",c);jQuery(this).find("#dbid"+b).attr("name","dbid"+c);jQuery(this).find("#dbid"+b).attr("id","dbid"+c);jQuery(this).find("#postmenu"+b).attr("name","postmenu"+c);jQuery(this).find("#postmenu"+b).attr("id","postmenu"+c);var d=jQuery(this).find("#parent"+b).parent().parent().parent().attr("value");jQuery(this).find("#parent"+b).attr("name","parent"+c);jQuery(this).find("#parent"+b).attr("id","parent"+c);if(d){}else{d=0}jQuery(this).find("#parent"+b).attr("value",d);jQuery(this).find("#title"+b).attr("name","title"+c);jQuery(this).find("#title"+b).attr("id","title"+c);jQuery(this).find("#linkurl"+b).attr("name","linkurl"+c);jQuery(this).find("#linkurl"+b).attr("id","linkurl"+c);jQuery(this).find("#description"+b).attr("name","description"+c);jQuery(this).find("#description"+b).attr("id","description"+c);jQuery(this).find("#icon"+b).attr("name","icon"+c);jQuery(this).find("#icon"+b).attr("id","icon"+c);jQuery(this).find("#position"+b).attr("name","position"+c);jQuery(this).find("#position"+b).attr("id","position"+c);jQuery(this).find("#linktype"+b).attr("name","linktype"+c);jQuery(this).find("#linktype"+b).attr("id","linktype"+c);jQuery(this).find("#anchortitle"+b).attr("name","anchortitle"+c);jQuery(this).find("#anchortitle"+b).attr("id","anchortitle"+c);jQuery(this).find("#newwindow"+b).attr("name","newwindow"+c);jQuery(this).find("#newwindow"+b).attr("id","newwindow"+c);jQuery(this).find("dl > dt > span > #remove"+b).attr("value",c);jQuery(this).find("dl > dt > span > #remove"+b).attr("onClick","removeitem("+c+")");jQuery(this).find("dl > dt > span > #remove"+b).attr("id","remove"+c);jQuery("#li-count").attr("value",c)})}function appendToList(b,s,d,n,h,l,e){var k="";var c="";var r="";var o="";var i="";var a="";if(s==navMenuL10n.custom){k=document.getElementById("custom-menu-item-name").value;c=document.getElementById("custom-menu-item-url").value;r="";o="";inputlinktype="custom";i=""}else{if(s==navMenuL10n.page){k=htmlentities(d.toString());c=n.toString();r=h.toString();o="0";inputlinktype="page";i=htmlentities(e.toString())}else{if(s==navMenuL10n.category){k=htmlentities(d.toString());c=n.toString();r=h.toString();o="0";inputlinktype="category";i=htmlentities(e.toString())}else{k="";k="";r="";o="";inputlinktype="custom";i=""}}}var g=document.getElementById("custom-nav").getElementsByTagName("li").length+1;var p=g;var m=0;try{var q=document.getElementById("menu-"+p.toString()).value}catch(f){m=1}while(m==0){p=p+1;try{var j=document.getElementById("menu-"+p.toString()).value}catch(f){m=1}}jQuery(".maintitle").after('<div id="message" class="updated fade below-h2"><p>Menu Item added!</p></div>');jQuery("#message").animate({opacity:1},2000).fadeOut(300,function(){jQuery(this).remove()});jQuery("#custom-nav").append('<li id="menu-'+p+'" value="'+p+'"><div class="dropzone ui-droppable"></div><dl class="ui-droppable"><dt><span class="title">'+k+'</span><span class="controls"><span class="type">'+s+'</span><a id="edit'+p+'" onclick="edititem('+p+')" value="'+p+'"><img class="edit" alt="Edit Menu Item" title="Edit Menu Item" src="'+b+'/wp-admin/images/ico-edit.png" /></a> <a id="remove'+p+'" onclick="removeitem('+p+')" value="'+p+'"><img class="remove" alt="Remove from Custom Menu" title="Remove from Custom Menu" src="'+b+'/wp-admin/images/ico-close.png" /></a> <a href="'+c+'" target="_blank"><img alt="View Custom Link" title="View Custom Link" src="'+b+'/wp-admin/images/ico-viewpage.png" /></a></span></dt></dl><a class="hide" href="'+c+'">'+k+'</a><input type="hidden" name="postmenu'+p+'" id="postmenu'+p+'" value="'+r+'" /><input type="hidden" name="parent'+p+'" id="parent'+p+'" value="'+o+'" /><input type="hidden" name="title'+p+'" id="title'+p+'" value="'+k+'" /><input type="hidden" name="linkurl'+p+'" id="linkurl'+p+'" value="'+c+'" /><input type="hidden" name="description'+p+'" id="description'+p+'" value="'+i+'" /><input type="hidden" name="icon'+p+'" id="icon'+p+'" value="'+a+'" /><input type="hidden" name="position'+p+'" id="position'+p+'" value="'+p+'" /><input type="hidden" name="linktype'+p+'" id="linktype'+p+'" value="'+inputlinktype+'" /><input type="hidden" name="anchortitle'+p+'" id="anchortitle'+p+'" value="'+k+'" /><input type="hidden" name="newwindow'+p+'" id="newwindow'+p+'" value="0" /></li>');jQuery("#menu-"+p+"").draggable({handle:" > dl",opacity:0.8,addClasses:false,helper:"clone",zIndex:100});jQuery("#menu-"+p+" dl, #menu-"+p+" .dropzone").droppable({accept:"#"+p+", #custom-nav li",tolerance:"pointer",drop:function(x,w){var t=jQuery(this).parent();var y=!jQuery(this).hasClass("dropzone");if(y&&t.children("ul").length==0){t.append("<ul/>")}if(y){t.children("ul").append(w.draggable)}else{t.before(w.draggable)}t.find("dl,.dropzone").css({backgroundColor:"",borderColor:""});var v=w.draggable.attr("value");var u=t.attr("value");t.find("#menu-"+v).find("#parent"+v).val(u);jQuery(this).parent().find("dt").removeAttr("style");jQuery(this).parent().find("div:first").removeAttr("style")},over:function(){if(jQuery(this).attr("class")=="dropzone ui-droppable"){jQuery(this).parent().find("div:first").css("background","none").css("height","50px")}else{if(jQuery(this).attr("class")=="ui-droppable"){jQuery(this).parent().find("dt:first").css("background","#d8d8d8")}else{}}var t=jQuery(this).parent().attr("id")},out:function(){jQuery(this).parent().find("dt").removeAttr("style");jQuery(this).parent().find("div:first").removeAttr("style");jQuery(this).filter(".dropzone").css({borderColor:""})}});updatepostdata()};
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjscustomnavigationphpfunctionsdevjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/custom-navigation-php-functions.dev.js (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-navigation-php-functions.dev.js        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/js/custom-navigation-php-functions.dev.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1,300 +0,0 @@
</span><del>-/*
- * More info at: http://phpjs.org
- *
- * This is version: 3.08
- * php.js is copyright 2010 Kevin van Zonneveld.
- *
- * Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld
- * (http://kevin.vanzonneveld.net), Onno Marsman, Theriault, Michael White
- * (http://getsprink.com), Waldo Malqui Silva, Paulo Ricardo F. Santos, Jack,
- * Jonas Raoni Soares Silva (http://www.jsfromhell.com), Philip Peterson, Ates
- * Goral (http://magnetiq.com), Legaev Andrey, Alex, Ratheous, Martijn
- * Wieringa, Nate, lmeyrick (https://sourceforge.net/projects/bcmath-js/),
- * Enrique Gonzalez, Philippe Baumann, Webtoolkit.info
- * (http://www.webtoolkit.info/), travc, Carlos R. L. Rodrigues
- * (http://www.jsfromhell.com), Jani Hartikainen, Ash Searle
- * (http://hexmen.com/blog/), Ole Vrijenhoek, stag019, d3x, Erkekjetter,
- * GeekFG (http://geekfg.blogspot.com), T.Wild, Johnny Mast
- * (http://www.phpvrouwen.nl), Michael Grier,
- * http://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript,
- * pilus, marrtins, Andrea Giammarchi (http://webreflection.blogspot.com),
- * WebDevHobo (http://webdevhobo.blogspot.com/), Caio Ariede
- * (http://caioariede.com), Thunder.m, Aman Gupta, Martin
- * (http://www.erlenwiese.de/), Tyler Akins (http://rumkin.com), Lars Fischer,
- * Paul Smith, Alfonso Jimenez (http://www.alfonsojimenez.com), Michael White,
- * mdsjack (http://www.mdsjack.bo.it), Pellentesque Malesuada, gettimeofday,
- * David, Joris, saulius, Robin, Steven Levithan
- * (http://blog.stevenlevithan.com), Public Domain
- * (http://www.json.org/json2.js), Kankrelune (http://www.webfaktory.info/),
- * Tim de Koning (http://www.kingsquare.nl), Arpad Ray (mailto:arpad@php.net),
- * AJ, KELAN, Sakimori, Mailfaker (http://www.weedem.fr/), Oleg Eremeev, Marc
- * Palau, Josh Fraser
- * (http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/),
- * Karol Kowalski, Chris, Breaking Par Consulting Inc
- * (http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256CFB006C45F7),
- * Mirek Slugen, majak, Felix Geisendoerfer (http://www.debuggable.com/felix),
- * gorthaur, Steve Hilder, LH, Stoyan Kyosev (http://www.svest.org/), Der
- * Simon (http://innerdom.sourceforge.net/), HKM, echo is bad, nord_ua, Ozh,
- * metjay, XoraX (http://www.xorax.info), Eugene Bulkin
- * (http://doubleaw.com/), JB, strcasecmp, strcmp, Taras Bogach, Francesco,
- * Marco, noname, class_exists, madipta, Alan C, mktime, Douglas Crockford
- * (http://javascript.crockford.com), uestla, Frank Forte, David James, Steve
- * Clay, J A R, jpfle, Marc Jansen, Paul, Hyam Singer
- * (http://www.impact-computing.com/), T. Wild, Ole Vrijenhoek
- * (http://www.nervous.nl/), Raphael (Ao RUDLER), kenneth, Brad Touesnard,
- * ChaosNo1, Subhasis Deb, Norman "zEh" Fuchs, 0m3r, Sanjoy Roy, Rob, Gilbert,
- * Bayron Guevara, paulo kuong, Orlando, duncan, sankai, hitwork, Philippe
- * Jausions (http://pear.php.net/user/jausions), Aidan Lister
- * (http://aidanlister.com/), ejsanders, Nick Callen, Brian Tafoya
- * (http://www.premasolutions.com/), johnrembo, sowberry, Yves Sucaet, Denny
- * Wardhana, Ulrich, kilops, dptr1988, john (http://www.jd-tech.net), MeEtc
- * (http://yass.meetcweb.com), Peter-Paul Koch
- * (http://www.quirksmode.org/js/beat.html), T0bsn, Tim Wiel, Bryan Elliott,
- * Alexander Ermolaev (http://snippets.dzone.com/user/AlexanderErmolaev), JT,
- * Thomas Beaucourt (http://www.webapp.fr), David Randall, DxGx, Soren Hansen,
- * lmeyrick (https://sourceforge.net/projects/bcmath-js/this.), Le Torbi,
- * djmix, Lincoln Ramsay, Linuxworld, Thiago Mata
- * (http://thiagomata.blog.com), Pedro Tainha (http://www.pedrotainha.com),
- * James, Pyerre, Jon Hohle, felix, ger, Russell Walker
- * (http://www.nbill.co.uk/), Garagoth, Andrej Pavlovic, Dino, Jamie Beck
- * (http://www.terabit.ca/), DtTvB
- * (http://dt.in.th/2008-09-16.string-length-in-bytes.html), setcookie, YUI
- * Library: http://developer.yahoo.com/yui/docs/YAHOO.util.DateLocale.html,
- * Blues at http://hacks.bluesmoon.info/strftime/strftime.js, Andreas, rem,
- * meo, Jay Klehr, Kheang Hok Chin (http://www.distantia.ca/), Luke Smith
- * (http://lucassmith.name), Rival, Amir Habibi
- * (http://www.residence-mixte.com/), Cagri Ekin, Greenseed, mk.keck, Leslie
- * Hoare, booeyOH, Ben Bryan, Michael, Christian Doebler, Kirk Strobeck, Brant
- * Messenger (http://www.brantmessenger.com/), Rick Waldron, Mick@el, Martin
- * Pool, Pierre-Luc Paour, Daniel Esteban, Christoph, Saulo Vallory, Kristof
- * Coomans (SCK-CEN Belgian Nucleair Research Centre), rezna, Tomasz
- * Wesolowski, Gabriel Paderni, Marco van Oort, Philipp Lenssen,
- * penutbutterjelly, Simon Willison (http://simonwillison.net), Anton Ongson,
- * Eric Nagel, Bobby Drake, Pul, Blues (http://tech.bluesmoon.info/), Luke
- * Godfrey, Diogo Resende, Howard Yeend, vlado houba, Jalal Berrami, Itsacon
- * (http://www.itsacon.net/), date, Billy, stensi, Cord, fearphage
- * (http://http/my.opera.com/fearphage/), Victor, Matteo, Artur Tchernychev,
- * Francois, nobbler, Fox, marc andreu, Nick Kolosov (http://sammy.ru),
- * Nathan, Arno, Scott Cariss, Slawomir Kaniecki, ReverseSyntax, Jason Wong
- * (http://carrot.org/), Mateusz "loonquawl" Zalega, Manish, Wagner B. Soares,
- * 3D-GRAF, jakes, Yannoo, gabriel paderni, daniel airton wermann
- * (http://wermann.com.br), Atli ?\x97r, Allan Jensen
- * (http://www.winternet.no), Benjamin Lupton, davook, Maximusya, FGFEmperor,
- * baris ozdil, Luis Salazar (http://www.freaky-media.com/), Tim de Koning,
- * taith, Matt Bradley, FremyCompany, T.J. Leahy, Greg Frazier, Valentina De
- * Rosa, Tod Gentille, Riddler (http://www.frontierwebdev.com/), Alexander M
- * Beedie
- *
- * Dual licensed under the MIT (MIT-LICENSE.txt)
- * and GPL (GPL-LICENSE.txt) licenses.
- *
- * Permission is hereby granted, free of charge, to any person obtaining a
- * copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sublicense, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * The above copyright notice and this permission notice shall be included
- * in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
- * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
- * IN NO EVENT SHALL KEVIN VAN ZONNEVELD BE LIABLE FOR ANY CLAIM, DAMAGES
- * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- */
-
-function get_html_translation_table (table, quote_style) {
- // http://kevin.vanzonneveld.net
- // + original by: Philip Peterson
- // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
- // + bugfixed by: noname
- // + bugfixed by: Alex
- // + bugfixed by: Marco
- // + bugfixed by: madipta
- // + improved by: KELAN
- // + improved by: Brett Zamir (http://brett-zamir.me)
- // + bugfixed by: Brett Zamir (http://brett-zamir.me)
- // + input by: Frank Forte
- // + bugfixed by: T.Wild
- // + input by: Ratheous
- // % note: It has been decided that we're not going to add global
- // % note: dependencies to php.js, meaning the constants are not
- // % note: real constants, but strings instead. Integers are also supported if someone
- // % note: chooses to create the constants themselves.
- // * example 1: get_html_translation_table('HTML_SPECIALCHARS');
- // * returns 1: {'"': '&quot;', '&': '&amp;', '<': '&lt;', '>': '&gt;'}
-
- var entities = {}, hash_map = {}, decimal = 0, symbol = '';
- var constMappingTable = {}, constMappingQuoteStyle = {};
- var useTable = {}, useQuoteStyle = {};
-
- // Translate arguments
- constMappingTable[0] = 'HTML_SPECIALCHARS';
- constMappingTable[1] = 'HTML_ENTITIES';
- constMappingQuoteStyle[0] = 'ENT_NOQUOTES';
- constMappingQuoteStyle[2] = 'ENT_COMPAT';
- constMappingQuoteStyle[3] = 'ENT_QUOTES';
-
- useTable = !isNaN(table) ? constMappingTable[table] : table ? table.toUpperCase() : 'HTML_SPECIALCHARS';
- useQuoteStyle = !isNaN(quote_style) ? constMappingQuoteStyle[quote_style] : quote_style ? quote_style.toUpperCase() : 'ENT_COMPAT';
-
- if (useTable !== 'HTML_SPECIALCHARS' && useTable !== 'HTML_ENTITIES') {
- throw new Error("Table: "+useTable+' not supported');
- // return false;
- }
-
- entities['38'] = '&amp;';
- if (useTable === 'HTML_ENTITIES') {
- entities['160'] = '&nbsp;';
- entities['161'] = '&iexcl;';
- entities['162'] = '&cent;';
- entities['163'] = '&pound;';
- entities['164'] = '&curren;';
- entities['165'] = '&yen;';
- entities['166'] = '&brvbar;';
- entities['167'] = '&sect;';
- entities['168'] = '&uml;';
- entities['169'] = '&copy;';
- entities['170'] = '&ordf;';
- entities['171'] = '&laquo;';
- entities['172'] = '&not;';
- entities['173'] = '&shy;';
- entities['174'] = '&reg;';
- entities['175'] = '&macr;';
- entities['176'] = '&deg;';
- entities['177'] = '&plusmn;';
- entities['178'] = '&sup2;';
- entities['179'] = '&sup3;';
- entities['180'] = '&acute;';
- entities['181'] = '&micro;';
- entities['182'] = '&para;';
- entities['183'] = '&middot;';
- entities['184'] = '&cedil;';
- entities['185'] = '&sup1;';
- entities['186'] = '&ordm;';
- entities['187'] = '&raquo;';
- entities['188'] = '&frac14;';
- entities['189'] = '&frac12;';
- entities['190'] = '&frac34;';
- entities['191'] = '&iquest;';
- entities['192'] = '&Agrave;';
- entities['193'] = '&Aacute;';
- entities['194'] = '&Acirc;';
- entities['195'] = '&Atilde;';
- entities['196'] = '&Auml;';
- entities['197'] = '&Aring;';
- entities['198'] = '&AElig;';
- entities['199'] = '&Ccedil;';
- entities['200'] = '&Egrave;';
- entities['201'] = '&Eacute;';
- entities['202'] = '&Ecirc;';
- entities['203'] = '&Euml;';
- entities['204'] = '&Igrave;';
- entities['205'] = '&Iacute;';
- entities['206'] = '&Icirc;';
- entities['207'] = '&Iuml;';
- entities['208'] = '&ETH;';
- entities['209'] = '&Ntilde;';
- entities['210'] = '&Ograve;';
- entities['211'] = '&Oacute;';
- entities['212'] = '&Ocirc;';
- entities['213'] = '&Otilde;';
- entities['214'] = '&Ouml;';
- entities['215'] = '&times;';
- entities['216'] = '&Oslash;';
- entities['217'] = '&Ugrave;';
- entities['218'] = '&Uacute;';
- entities['219'] = '&Ucirc;';
- entities['220'] = '&Uuml;';
- entities['221'] = '&Yacute;';
- entities['222'] = '&THORN;';
- entities['223'] = '&szlig;';
- entities['224'] = '&agrave;';
- entities['225'] = '&aacute;';
- entities['226'] = '&acirc;';
- entities['227'] = '&atilde;';
- entities['228'] = '&auml;';
- entities['229'] = '&aring;';
- entities['230'] = '&aelig;';
- entities['231'] = '&ccedil;';
- entities['232'] = '&egrave;';
- entities['233'] = '&eacute;';
- entities['234'] = '&ecirc;';
- entities['235'] = '&euml;';
- entities['236'] = '&igrave;';
- entities['237'] = '&iacute;';
- entities['238'] = '&icirc;';
- entities['239'] = '&iuml;';
- entities['240'] = '&eth;';
- entities['241'] = '&ntilde;';
- entities['242'] = '&ograve;';
- entities['243'] = '&oacute;';
- entities['244'] = '&ocirc;';
- entities['245'] = '&otilde;';
- entities['246'] = '&ouml;';
- entities['247'] = '&divide;';
- entities['248'] = '&oslash;';
- entities['249'] = '&ugrave;';
- entities['250'] = '&uacute;';
- entities['251'] = '&ucirc;';
- entities['252'] = '&uuml;';
- entities['253'] = '&yacute;';
- entities['254'] = '&thorn;';
- entities['255'] = '&yuml;';
- }
-
- if (useQuoteStyle !== 'ENT_NOQUOTES') {
- entities['34'] = '&quot;';
- }
- if (useQuoteStyle === 'ENT_QUOTES') {
- entities['39'] = '&#39;';
- }
- entities['60'] = '&lt;';
- entities['62'] = '&gt;';
-
-
- // ascii decimals to real symbols
- for (decimal in entities) {
- symbol = String.fromCharCode(decimal);
- hash_map[symbol] = entities[decimal];
- }
-
- return hash_map;
-}
-
-
-function htmlentities (string, quote_style) {
- // http://kevin.vanzonneveld.net
- // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
- // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
- // + improved by: nobbler
- // + tweaked by: Jack
- // + bugfixed by: Onno Marsman
- // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
- // + bugfixed by: Brett Zamir (http://brett-zamir.me)
- // + input by: Ratheous
- // - depends on: get_html_translation_table
- // * example 1: htmlentities('Kevin & van Zonneveld');
- // * returns 1: 'Kevin &amp; van Zonneveld'
- // * example 2: htmlentities("foo'bar","ENT_QUOTES");
- // * returns 2: 'foo&#039;bar'
-
- var hash_map = {}, symbol = '', tmp_str = '', entity = '';
- tmp_str = string.toString();
-
- if (false === (hash_map = this.get_html_translation_table('HTML_ENTITIES', quote_style))) {
- return false;
- }
- hash_map["'"] = '&#039;';
- for (symbol in hash_map) {
- entity = hash_map[symbol];
- tmp_str = tmp_str.split(symbol).join(entity);
- }
-
- return tmp_str;
-}
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjscustomnavigationphpfunctionsjs"></a>
<div class="delfile"><h4>Deleted: trunk/wp-admin/js/custom-navigation-php-functions.js (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/custom-navigation-php-functions.js        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/js/custom-navigation-php-functions.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -1 +0,0 @@
</span><del>-function get_html_translation_table(i,g){var d={},f={},c=0,a="";var e={},b={};var j={},h={};e[0]="HTML_SPECIALCHARS";e[1]="HTML_ENTITIES";b[0]="ENT_NOQUOTES";b[2]="ENT_COMPAT";b[3]="ENT_QUOTES";j=!isNaN(i)?e[i]:i?i.toUpperCase():"HTML_SPECIALCHARS";h=!isNaN(g)?b[g]:g?g.toUpperCase():"ENT_COMPAT";if(j!=="HTML_SPECIALCHARS"&&j!=="HTML_ENTITIES"){throw new Error("Table: "+j+" not supported")}d["38"]="&amp;";if(j==="HTML_ENTITIES"){d["160"]="&nbsp;";d["161"]="&iexcl;";d["162"]="&cent;";d["163"]="&pound;";d["164"]="&curren;";d["165"]="&yen;";d["166"]="&brvbar;";d["167"]="&sect;";d["168"]="&uml;";d["169"]="&copy;";d["170"]="&ordf;";d["171"]="&laquo;";d["172"]="&not;";d["173"]="&shy;";d["174"]="&reg;";d["175"]="&macr;";d["176"]="&deg;";d["177"]="&plusmn;";d["178"]="&sup2;";d["179"]="&sup3;";d["180"]="&acute;";d["181"]="&micro;";d["182"]="&para;";d["183"]="&middot;";d["184"]="&cedil;";d["185"]="&sup1;";d["186"]="&ordm;";d["187"]="&raquo;";d["188"]="&frac14;";d["189"]="&frac12;";d["190"]="&frac34;";d["191"]="&iquest;";d["192"]="&Agrave;";d["193"]="&Aacute;";d["194"]="&Acirc;";d["195"]="&Atilde;";d["196"]="&Auml;";d["197"]="&Aring;";d["198"]="&AElig;";d["199"]="&Ccedil;";d["200"]="&Egrave;";d["201"]="&Eacute;";d["202"]="&Ecirc;";d["203"]="&Euml;";d["204"]="&Igrave;";d["205"]="&Iacute;";d["206"]="&Icirc;";d["207"]="&Iuml;";d["208"]="&ETH;";d["209"]="&Ntilde;";d["210"]="&Ograve;";d["211"]="&Oacute;";d["212"]="&Ocirc;";d["213"]="&Otilde;";d["214"]="&Ouml;";d["215"]="&times;";d["216"]="&Oslash;";d["217"]="&Ugrave;";d["218"]="&Uacute;";d["219"]="&Ucirc;";d["220"]="&Uuml;";d["221"]="&Yacute;";d["222"]="&THORN;";d["223"]="&szlig;";d["224"]="&agrave;";d["225"]="&aacute;";d["226"]="&acirc;";d["227"]="&atilde;";d["228"]="&auml;";d["229"]="&aring;";d["230"]="&aelig;";d["231"]="&ccedil;";d["232"]="&egrave;";d["233"]="&eacute;";d["234"]="&ecirc;";d["235"]="&euml;";d["236"]="&igrave;";d["237"]="&iacute;";d["238"]="&icirc;";d["239"]="&iuml;";d["240"]="&eth;";d["241"]="&ntilde;";d["242"]="&ograve;";d["243"]="&oacute;";d["244"]="&ocirc;";d["245"]="&otilde;";d["246"]="&ouml;";d["247"]="&divide;";d["248"]="&oslash;";d["249"]="&ugrave;";d["250"]="&uacute;";d["251"]="&ucirc;";d["252"]="&uuml;";d["253"]="&yacute;";d["254"]="&thorn;";d["255"]="&yuml;"}if(h!=="ENT_NOQUOTES"){d["34"]="&quot;"}if(h==="ENT_QUOTES"){d["39"]="&#39;"}d["60"]="&lt;";d["62"]="&gt;";for(c in d){a=String.fromCharCode(c);f[a]=d[c]}return f}function htmlentities(c,f){var e={},d="",a="",b="";a=c.toString();if(false===(e=this.get_html_translation_table("HTML_ENTITIES",f))){return false}e["'"]="&#039;";for(d in e){b=e[d];a=a.split(d).join(b)}return a};
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudefaultitemsdevjsfromrev13399trunkwpadminjscustomnavigationdefaultitemsdevjs"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/js/nav-menu-default-items.dev.js (from rev 13399, trunk/wp-admin/js/custom-navigation-default-items.dev.js) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-default-items.dev.js         (rev 0)
+++ trunk/wp-admin/js/nav-menu-default-items.dev.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1,146 @@
</span><ins>+/**
+ * WordPress Administration Custom Navigation
+ * Interface JQuery functions
+ *
+ * @version 1.1.0
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/*
+ * Init Functions
+*/
+jQuery(function($)
+        {
+                //Makes dialog box
+                $("#dialog-confirm").dialog({
+                        autoOpen: false,
+                        resizable: false,
+                        height: 210,
+                        width: 400,
+                        modal: true,
+                        buttons: {
+                                'Save': function() {
+
+                                        titletosave = $('#edittitle').attr('value');
+                                        linktosave = $('#editlink').attr('value');
+                                        anchortitletosave = $('#editanchortitle').attr('value');
+                                        newwindowtosave = $('#editnewwindow').attr('value');
+                                        desctosave = $('#editdescription').attr('value');
+
+                                        $('#title' + $(this).dialog('option', 'itemID')).attr('value',titletosave);
+                                        $('#linkurl' + $(this).dialog('option', 'itemID')).attr('value',linktosave);
+                                        $('#anchortitle' + $(this).dialog('option', 'itemID')).attr('value',anchortitletosave);
+                                        $('#newwindow' + $(this).dialog('option', 'itemID')).attr('value',newwindowtosave);
+                                        $('#description' + $(this).dialog('option', 'itemID')).attr('value',desctosave);
+
+                                        $('#menu-' + $(this).dialog('option', 'itemID') + ' > dl > dt > span.title').text(titletosave);
+
+                                        $('#view' + + $(this).dialog('option', 'itemID')).attr('href', linktosave);
+
+                                        $(this).dialog('close');
+
+                                },
+                                Cancel: function() {
+                                        $(this).dialog('close');
+                                }
+                        }
+                });
+
+                // $('#message').animate({ opacity: 1.0 },2000).fadeOut(300, function(){ $(this).remove();});
+
+                //Add dropzone
+         $('#custom-nav li').prepend('<div class="dropzone"></div>');
+
+                //Make li items draggable
+                $('#custom-nav li').draggable({
+                         handle: ' > dl',
+                         opacity: .8,
+                         addClasses: false,
+                         helper: 'clone',
+                         zIndex: 100
+                });
+
+                //Make items droppable
+                $('#custom-nav dl, #custom-nav .dropzone').droppable(
+                {
+                 accept: '#custom-nav li',
+                 tolerance: 'pointer',
+                 drop: function(e, ui)
+                 {
+                 var li = $(this).parent();
+                 var child = !$(this).hasClass('dropzone');
+                 //Add UL to first child
+                 if (child && li.children('ul').length == 0)
+                 {
+                 li.append('<ul id="sub-menu" />');
+                 }
+                 //Make it draggable
+                 if (child)
+                 {
+                 li.children('ul').append(ui.draggable);
+                 }
+                 else
+                 {
+                 li.before(ui.draggable);
+                 }
+
+                 li.find('dl,.dropzone').css({ backgroundColor: '', borderColor: '' });
+
+                 var draggablevalue = ui.draggable.attr('value');
+                 var droppablevalue = li.attr('value');
+                 li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
+                 $(this).parent().find("dt").removeAttr('style');
+                 $(this).parent().find("div:first").removeAttr('style');
+
+
+                 },
+                 over: function()
+                 {
+                         //Add child
+                         if ($(this).attr('class') == 'dropzone ui-droppable')
+                         {
+                                 $(this).parent().find("div:first").css('background', 'none').css('height', '50px');
+                         }
+                         //Add above
+                         else if ($(this).attr('class') == 'ui-droppable')
+                         {
+                                 $(this).parent().find("dt:first").css('background', '#d8d8d8');
+                         }
+                         //do nothing
+                         else {
+
+                         }
+                         var parentid = $(this).parent().attr('id');
+
+                 },
+                 out: function()
+                 {
+                 $(this).parent().find("dt").removeAttr('style');
+                 $(this).parent().find("div:first").removeAttr('style');
+                 $(this).filter('.dropzone').css({ borderColor: '' });
+                 },
+                 deactivate: function()
+                 {
+
+
+                 }
+
+
+                });
+
+                //Handle Save Button Clicks
+                $('#save_top').click(function()
+                {
+                        updatepostdata();
+                });
+                $('#save_bottom').click(function()
+                {
+                        updatepostdata();
+                });
+
+
+        });
+
+
</ins></span></pre></div>
<a id="trunkwpadminjsnavmenudefaultitemsdevjs"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/js/nav-menu-default-items.dev.js</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudefaultitemsjsfromrev13399trunkwpadminjscustomnavigationdefaultitemsjs"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/js/nav-menu-default-items.js (from rev 13399, trunk/wp-admin/js/custom-navigation-default-items.js) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-default-items.js         (rev 0)
+++ trunk/wp-admin/js/nav-menu-default-items.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+jQuery(function($){$("#dialog-confirm").dialog({autoOpen:false,resizable:false,height:210,width:400,modal:true,buttons:{Save:function(){titletosave=$("#edittitle").attr("value");linktosave=$("#editlink").attr("value");anchortitletosave=$("#editanchortitle").attr("value");newwindowtosave=$("#editnewwindow").attr("value");desctosave=$("#editdescription").attr("value");$("#title"+$(this).dialog("option","itemID")).attr("value",titletosave);$("#linkurl"+$(this).dialog("option","itemID")).attr("value",linktosave);$("#anchortitle"+$(this).dialog("option","itemID")).attr("value",anchortitletosave);$("#newwindow"+$(this).dialog("option","itemID")).attr("value",newwindowtosave);$("#description"+$(this).dialog("option","itemID")).attr("value",desctosave);$("#menu-"+$(this).dialog("option","itemID")+" > dl > dt > span.title").text(titletosave);$("#view"+ +$(this).dialog("option","itemID")).attr("href",linktosave);$(this).dialog("close")},Cancel:function(){$(this).dialog("close")}}});$("#custom-nav li").prepend('<div class="dropzone"></div>');$("#custom-nav li").draggable({handle:" > dl",opacity:0.8,addClasses:false,helper:"clone",zIndex:100});$("#custom-nav dl, #custom-nav .dropzone").droppable({accept:"#custom-nav li",tolerance:"pointer",drop:function(e,ui){var li=$(this).parent();var child=!$(this).hasClass("dropzone");if(child&&li.children("ul").length==0){li.append('<ul id="sub-menu" />')}if(child){li.children("ul").append(ui.draggable)}else{li.before(ui.draggable)}li.find("dl,.dropzone").css({backgroundColor:"",borderColor:""});var draggablevalue=ui.draggable.attr("value");var droppablevalue=li.attr("value");li.find("#menu-"+draggablevalue).find("#parent"+draggablevalue).val(droppablevalue);$(this).parent().find("dt").removeAttr("style");$(this).parent().find("div:first").removeAttr("style")},over:function(){if($(this).attr("class")=="dropzone ui-droppable"){$(this).parent().find("div:first").css("background","none").css("height","50px")}else{if($(this).attr("class")=="ui-droppable"){$(this).parent().find("dt:first").css("background","#d8d8d8")}else{}}var parentid=$(this).parent().attr("id")},out:function(){$(this).parent().find("dt").removeAttr("style");$(this).parent().find("div:first").removeAttr("style");$(this).filter(".dropzone").css({borderColor:""})},deactivate:function(){}});$("#save_top").click(function(){updatepostdata()});$("#save_bottom").click(function(){updatepostdata()})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudefaultitemsjs"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/js/nav-menu-default-items.js</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudynamicfunctionsdevjsfromrev13399trunkwpadminjscustomnavigationdynamicfunctionsdevjs"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js (from rev 13399, trunk/wp-admin/js/custom-navigation-dynamic-functions.dev.js) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js         (rev 0)
+++ trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1,293 @@
</span><ins>+/**
+ * WordPress Administration Custom Navigation
+ * Interface JS functions
+ *
+ * @version 1.1.0
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/*
+ * Removes menu items from current menu
+ * @param int o - the id of the menu li to remove.
+*/
+function removeitem(o)
+{
+
+        var todelete = document.getElementById('menu-' + o);
+
+        if (todelete)
+        {
+                var parenttodelete = document.getElementById('menu-' + o).parentNode;
+ throwaway_node = parenttodelete.removeChild(todelete);
+        }
+
+        updatepostdata();
+};
+
+/*
+ * Loads dialog window to edit menu items from current menu
+ * @param int o - the id of the menu li to edit.
+*/
+function edititem(o)
+{
+
+                itemTitle = jQuery('#title' + o).val();
+                itemURL = jQuery('#linkurl' + o).val();
+                itemAnchorTitle = jQuery('#anchortitle' + o).val();
+                itemNewWindow = jQuery('#newwindow' + o).val();
+                itemDesc = jQuery('#description' + o).val();
+
+                jQuery('#dialog-confirm').dialog( 'option' , 'itemID' , o )
+
+                jQuery('#dialog-confirm').dialog('open');
+
+                jQuery('#edittitle').val( itemTitle );
+                if ( 'custom' == jQuery( '#linktype' + o ).val() ) {
+                        jQuery( '#editlink-wrap' ).css( 'display', 'inline' );
+                } else {
+                        jQuery( '#editlink-wrap' ).css( 'display', 'none' );
+                }
+                jQuery('#editlink').val( itemURL );
+                jQuery('#editanchortitle').val( itemAnchorTitle );
+                jQuery("#editnewwindow option[value='" + itemNewWindow + "']").attr('selected', 'selected');
+                jQuery('#editdescription').val( itemDesc );
+
+};
+
+/*
+ * Prepares menu items for POST
+*/
+function updatepostdata()
+{
+
+        var i = 0;
+         jQuery("#custom-nav").find("li").each(function(i) {
+                i = i + 1;
+         var j = jQuery(this).attr('value');
+
+         jQuery(this).find('#position' + j).attr('value', i);
+         jQuery(this).attr('id','menu-' + i);
+         jQuery(this).attr('value', i);
+
+         jQuery(this).find('#dbid' + j).attr('name','dbid' + i);
+         jQuery(this).find('#dbid' + j).attr('id','dbid' + i);
+
+                jQuery(this).find('#postmenu' + j).attr('name','postmenu' + i);
+         jQuery(this).find('#postmenu' + j).attr('id','postmenu' + i);
+
+         var p = jQuery(this).find('#parent' + j).parent().parent().parent().attr('value');
+
+         jQuery(this).find('#parent' + j).attr('name','parent' + i);
+         jQuery(this).find('#parent' + j).attr('id','parent' + i);
+         if (p) {
+                 //Do nothing
+         }
+         else {
+                 //reset p to be top level
+                 p = 0;
+         }
+
+         jQuery(this).find('#parent' + j).attr('value', p);
+
+         jQuery(this).find('#title' + j).attr('name','title' + i);
+         jQuery(this).find('#title' + j).attr('id','title' + i);
+
+         jQuery(this).find('#linkurl' + j).attr('name','linkurl' + i);
+         jQuery(this).find('#linkurl' + j).attr('id','linkurl' + i);
+
+         jQuery(this).find('#description' + j).attr('name','description' + i);
+         jQuery(this).find('#description' + j).attr('id','description' + i);
+
+         jQuery(this).find('#icon' + j).attr('name','icon' + i);
+         jQuery(this).find('#icon' + j).attr('id','icon' + i);
+
+         jQuery(this).find('#position' + j).attr('name','position' + i);
+         jQuery(this).find('#position' + j).attr('id','position' + i);
+
+         jQuery(this).find('#linktype' + j).attr('name','linktype' + i);
+         jQuery(this).find('#linktype' + j).attr('id','linktype' + i);
+
+         jQuery(this).find('#anchortitle' + j).attr('name','anchortitle' + i);
+         jQuery(this).find('#anchortitle' + j).attr('id','anchortitle' + i);
+
+         jQuery(this).find('#newwindow' + j).attr('name','newwindow' + i);
+         jQuery(this).find('#newwindow' + j).attr('id','newwindow' + i);
+
+         jQuery(this).find('dl > dt > span > #remove' + j).attr('value', i);
+         jQuery(this).find('dl > dt > span > #remove' + j).attr('onClick', 'removeitem(' + i + ')');
+         jQuery(this).find('dl > dt > span > #remove' + j).attr('id','remove' + i);
+
+         jQuery('#li-count').attr('value',i);
+
+ });
+
+
+
+};
+
+/*
+ * Adds item from Page, Category, or Custom options menu
+ * @param string templatedir - directory of the add, edit, view images.
+ * @param string additemtype - Page, Category, or Custom.
+ * @param string itemtext - menu text.
+ * @param string itemurl - url of the menu.
+ * @param int itemid - menu id.
+ * @param int itemparentid - default 0.
+ * @param string itemdescription - the description of the menu item.
+*/
+function appendToList(templatedir,additemtype,itemtext,itemurl,itemid,itemparentid,itemdescription)
+{
+        var inputvaluevarname = '';
+        var inputvaluevarurl = '';
+        var inputitemid = '';
+        var inputparentid= '';
+        var inputdescription = '';
+        var inputicon = '';
+
+        if (additemtype == navMenuL10n.custom)
+        {
+                inputvaluevarname = document.getElementById('custom-menu-item-name').value;
+                inputvaluevarurl = document.getElementById('custom-menu-item-url').value;
+                inputitemid = '';
+                inputparentid = '';
+                inputlinktype = 'custom';
+                inputdescription = '';
+        }
+        else if (additemtype == navMenuL10n.page)
+        {
+                inputvaluevarname = htmlentities(itemtext.toString());
+                inputvaluevarurl = itemurl.toString();
+                inputitemid = itemid.toString();
+                inputparentid = '0';
+                inputlinktype = 'page';
+                inputdescription = htmlentities(itemdescription.toString());
+
+        }
+        else if (additemtype == navMenuL10n.category)
+        {
+                inputvaluevarname = htmlentities(itemtext.toString());
+                inputvaluevarurl = itemurl.toString();
+                inputitemid = itemid.toString();
+                inputparentid = '0';
+                inputlinktype = 'category';
+                inputdescription = htmlentities(itemdescription.toString());
+        }
+        else
+        {
+                inputvaluevarname = '';
+                inputvaluevarname = '';
+                inputitemid = '';
+                inputparentid = '';
+                inputlinktype = 'custom';
+                inputdescription = '';
+        }
+
+        var count=document.getElementById('custom-nav').getElementsByTagName('li').length + 1;
+
+        var randomnumber = count;
+
+        var validatetest = 0;
+
+        try
+        {
+                var test=document.getElementById("menu-" + randomnumber.toString()).value;
+        }
+        catch (err)
+        {
+                validatetest = 1;
+        }
+
+        while (validatetest == 0)
+        {
+                randomnumber = randomnumber + 1;
+
+                try
+                {
+                        var test2=document.getElementById("menu-" + randomnumber.toString()).value;
+                }
+                catch (err)
+                {
+                        validatetest = 1;
+                }
+        }
+
+        //Notification Message
+        jQuery('.maintitle').after('<div id="message" class="updated fade below-h2"><p>Menu Item added!</p></div>');
+        jQuery('#message').animate({ opacity: 1.0 },2000).fadeOut(300, function(){ jQuery(this).remove();});
+
+        //Appends HTML to the menu
+        jQuery('#custom-nav').append('<li id="menu-' + randomnumber + '" value="' + randomnumber + '"><div class="dropzone ui-droppable"></div><dl class="ui-droppable"><dt><span class="title">' + inputvaluevarname + '</span><span class="controls"><span class="type">' + additemtype + '</span><a id="edit' + randomnumber + '" onclick="edititem(' + randomnumber + ')" value="' + randomnumber +'"><img class="edit" alt="Edit Menu Item" title="Edit Menu Item" src="' + templatedir + '/wp-admin/images/ico-edit.png" /></a> <a id="remove' + randomnumber + '" onclick="removeitem(' + randomnumber + ')" value="' + randomnumber +'"><img class="remove" alt="Remove from Custom Menu" title="Remove from Custom Menu" src="' + templatedir + '/wp-admin/images/ico-close.png" /></a> <a href="' + inputvaluevarurl + '" target="_blank"><img alt="View Custom Link" title="View Custom Link" src="' + templatedir + '/wp-admin/images/ico-viewpage.png" /></a></span></dt></dl><a class="hide" href="' + inputvaluevarurl + '">' + inputvaluevarname + '</a><input type="hidden" name="postmenu' + randomnumber + '" id="postmenu' + randomnumber + '" value="' + inputitemid + '" /><input type="hidden" name="parent' + randomnumber + '" id="parent' + randomnumber + '" value="' + inputparentid + '" /><input type="hidden" name="title' + randomnumber + '" id="title' + randomnumber + '" value="' + inputvaluevarname + '" /><input type="hidden" name="linkurl' + randomnumber + '" id="linkurl' + randomnumber + '" value="' + inputvaluevarurl + '" /><input type="hidden" name="description' + randomnumber + '" id="description' + randomnumber + '" value="' + inputdescription + '" /><input type="hidden" name="icon' + randomnumber + '" id="icon' + randomnumber + '" value="' + inputicon + '" /><input type="hidden" name="position' + randomnumber + '" id="position' + randomnumber + '" value="' + randomnumber + '" /><input type="hidden" name="linktype' + randomnumber + '" id="linktype' + randomnumber + '" value="' + inputlinktype + '" /><input type="hidden" name="anchortitle' + randomnumber + '" id="anchortitle' + randomnumber + '" value="' + inputvaluevarname + '" /><input type="hidden" name="newwindow' + randomnumber + '" id="newwindow' + randomnumber + '" value="0" /></li>');
+
+        //make menu item draggable
+        jQuery('#menu-' + randomnumber + '').draggable(
+        {
+                handle: ' > dl',
+                opacity: .8,
+                addClasses: false,
+                helper: 'clone',
+                zIndex: 100
+        });
+
+        //make menu item droppable
+        jQuery('#menu-' + randomnumber + ' dl, #menu-' + randomnumber + ' .dropzone').droppable({
+                accept: '#' + randomnumber + ', #custom-nav li',
+                tolerance: 'pointer',
+                drop: function(e, ui)
+                {
+                        var li = jQuery(this).parent();
+                        var child = !jQuery(this).hasClass('dropzone');
+                        //Append UL to first child
+                        if (child && li.children('ul').length == 0)
+                        {
+                                li.append('<ul/>');
+                        }
+                        //Make it draggable
+                        if (child)
+                        {
+                                li.children('ul').append(ui.draggable);
+                        }
+                        else
+                        {
+                                li.before(ui.draggable);
+                        }
+
+                        li.find('dl,.dropzone').css({ backgroundColor: '', borderColor: '' });
+
+                        var draggablevalue = ui.draggable.attr('value');
+                 var droppablevalue = li.attr('value');
+                 li.find('#menu-' + draggablevalue).find('#parent' + draggablevalue).val(droppablevalue);
+         jQuery(this).parent().find("dt").removeAttr('style');
+         jQuery(this).parent().find("div:first").removeAttr('style');
+
+                },
+                over: function()
+                 {
+                         //Add child
+                         if (jQuery(this).attr('class') == 'dropzone ui-droppable')
+                         {
+                                 jQuery(this).parent().find("div:first").css('background', 'none').css('height', '50px');
+                         }
+                         //Add above
+                         else if (jQuery(this).attr('class') == 'ui-droppable')
+                         {
+                                 jQuery(this).parent().find("dt:first").css('background', '#d8d8d8');
+                         }
+                         //do nothing
+                         else {
+
+                         }
+                         var parentid = jQuery(this).parent().attr('id');
+
+                 },
+                 out: function()
+                 {
+                 jQuery(this).parent().find("dt").removeAttr('style');
+                 jQuery(this).parent().find("div:first").removeAttr('style');
+                 jQuery(this).filter('.dropzone').css({ borderColor: '' });
+                 }
+        });
+
+        updatepostdata();
+};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudynamicfunctionsdevjs"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/js/nav-menu-dynamic-functions.dev.js</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudynamicfunctionsjsfromrev13399trunkwpadminjscustomnavigationdynamicfunctionsjs"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/js/nav-menu-dynamic-functions.js (from rev 13399, trunk/wp-admin/js/custom-navigation-dynamic-functions.js) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-dynamic-functions.js         (rev 0)
+++ trunk/wp-admin/js/nav-menu-dynamic-functions.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+function removeitem(c){var b=document.getElementById("menu-"+c);if(b){var a=document.getElementById("menu-"+c).parentNode;throwaway_node=a.removeChild(b)}updatepostdata()}function edititem(a){itemTitle=jQuery("#title"+a).attr("value");itemURL=jQuery("#linkurl"+a).attr("value");itemAnchorTitle=jQuery("#anchortitle"+a).attr("value");itemNewWindow=jQuery("#newwindow"+a).attr("value");itemDesc=jQuery("#description"+a).attr("value");jQuery("#dialog-confirm").dialog("option","itemID",a);jQuery("#dialog-confirm").dialog("open");jQuery("#edittitle").attr("value",itemTitle);jQuery("#editlink").attr("value",itemURL);jQuery("#editanchortitle").attr("value",itemAnchorTitle);jQuery("#editnewwindow option[value='"+itemNewWindow+"']").attr("selected","selected");jQuery("#editdescription").attr("value",itemDesc)}function updatepostdata(){var a=0;jQuery("#custom-nav").find("li").each(function(c){c=c+1;var b=jQuery(this).attr("value");jQuery(this).find("#position"+b).attr("value",c);jQuery(this).attr("id","menu-"+c);jQuery(this).attr("value",c);jQuery(this).find("#dbid"+b).attr("name","dbid"+c);jQuery(this).find("#dbid"+b).attr("id","dbid"+c);jQuery(this).find("#postmenu"+b).attr("name","postmenu"+c);jQuery(this).find("#postmenu"+b).attr("id","postmenu"+c);var d=jQuery(this).find("#parent"+b).parent().parent().parent().attr("value");jQuery(this).find("#parent"+b).attr("name","parent"+c);jQuery(this).find("#parent"+b).attr("id","parent"+c);if(d){}else{d=0}jQuery(this).find("#parent"+b).attr("value",d);jQuery(this).find("#title"+b).attr("name","title"+c);jQuery(this).find("#title"+b).attr("id","title"+c);jQuery(this).find("#linkurl"+b).attr("name","linkurl"+c);jQuery(this).find("#linkurl"+b).attr("id","linkurl"+c);jQuery(this).find("#description"+b).attr("name","description"+c);jQuery(this).find("#description"+b).attr("id","description"+c);jQuery(this).find("#icon"+b).attr("name","icon"+c);jQuery(this).find("#icon"+b).attr("id","icon"+c);jQuery(this).find("#position"+b).attr("name","position"+c);jQuery(this).find("#position"+b).attr("id","position"+c);jQuery(this).find("#linktype"+b).attr("name","linktype"+c);jQuery(this).find("#linktype"+b).attr("id","linktype"+c);jQuery(this).find("#anchortitle"+b).attr("name","anchortitle"+c);jQuery(this).find("#anchortitle"+b).attr("id","anchortitle"+c);jQuery(this).find("#newwindow"+b).attr("name","newwindow"+c);jQuery(this).find("#newwindow"+b).attr("id","newwindow"+c);jQuery(this).find("dl > dt > span > #remove"+b).attr("value",c);jQuery(this).find("dl > dt > span > #remove"+b).attr("onClick","removeitem("+c+")");jQuery(this).find("dl > dt > span > #remove"+b).attr("id","remove"+c);jQuery("#li-count").attr("value",c)})}function appendToList(b,s,d,n,h,l,e){var k="";var c="";var r="";var o="";var i="";var a="";if(s==navMenuL10n.custom){k=document.getElementById("custom-menu-item-name").value;c=document.getElementById("custom-menu-item-url").value;r="";o="";inputlinktype="custom";i=""}else{if(s==navMenuL10n.page){k=htmlentities(d.toString());c=n.toString();r=h.toString();o="0";inputlinktype="page";i=htmlentities(e.toString())}else{if(s==navMenuL10n.category){k=htmlentities(d.toString());c=n.toString();r=h.toString();o="0";inputlinktype="category";i=htmlentities(e.toString())}else{k="";k="";r="";o="";inputlinktype="custom";i=""}}}var g=document.getElementById("custom-nav").getElementsByTagName("li").length+1;var p=g;var m=0;try{var q=document.getElementById("menu-"+p.toString()).value}catch(f){m=1}while(m==0){p=p+1;try{var j=document.getElementById("menu-"+p.toString()).value}catch(f){m=1}}jQuery(".maintitle").after('<div id="message" class="updated fade below-h2"><p>Menu Item added!</p></div>');jQuery("#message").animate({opacity:1},2000).fadeOut(300,function(){jQuery(this).remove()});jQuery("#custom-nav").append('<li id="menu-'+p+'" value="'+p+'"><div class="dropzone ui-droppable"></div><dl class="ui-droppable"><dt><span class="title">'+k+'</span><span class="controls"><span class="type">'+s+'</span><a id="edit'+p+'" onclick="edititem('+p+')" value="'+p+'"><img class="edit" alt="Edit Menu Item" title="Edit Menu Item" src="'+b+'/wp-admin/images/ico-edit.png" /></a> <a id="remove'+p+'" onclick="removeitem('+p+')" value="'+p+'"><img class="remove" alt="Remove from Custom Menu" title="Remove from Custom Menu" src="'+b+'/wp-admin/images/ico-close.png" /></a> <a href="'+c+'" target="_blank"><img alt="View Custom Link" title="View Custom Link" src="'+b+'/wp-admin/images/ico-viewpage.png" /></a></span></dt></dl><a class="hide" href="'+c+'">'+k+'</a><input type="hidden" name="postmenu'+p+'" id="postmenu'+p+'" value="'+r+'" /><input type="hidden" name="parent'+p+'" id="parent'+p+'" value="'+o+'" /><input type="hidden" name="title'+p+'" id="title'+p+'" value="'+k+'" /><input type="hidden" name="linkurl'+p+'" id="linkurl'+p+'" value="'+c+'" /><input type="hidden" name="description'+p+'" id="description'+p+'" value="'+i+'" /><input type="hidden" name="icon'+p+'" id="icon'+p+'" value="'+a+'" /><input type="hidden" name="position'+p+'" id="position'+p+'" value="'+p+'" /><input type="hidden" name="linktype'+p+'" id="linktype'+p+'" value="'+inputlinktype+'" /><input type="hidden" name="anchortitle'+p+'" id="anchortitle'+p+'" value="'+k+'" /><input type="hidden" name="newwindow'+p+'" id="newwindow'+p+'" value="0" /></li>');jQuery("#menu-"+p+"").draggable({handle:" > dl",opacity:0.8,addClasses:false,helper:"clone",zIndex:100});jQuery("#menu-"+p+" dl, #menu-"+p+" .dropzone").droppable({accept:"#"+p+", #custom-nav li",tolerance:"pointer",drop:function(x,w){var t=jQuery(this).parent();var y=!jQuery(this).hasClass("dropzone");if(y&&t.children("ul").length==0){t.append("<ul/>")}if(y){t.children("ul").append(w.draggable)}else{t.before(w.draggable)}t.find("dl,.dropzone").css({backgroundColor:"",borderColor:""});var v=w.draggable.attr("value");var u=t.attr("value");t.find("#menu-"+v).find("#parent"+v).val(u);jQuery(this).parent().find("dt").removeAttr("style");jQuery(this).parent().find("div:first").removeAttr("style")},over:function(){if(jQuery(this).attr("class")=="dropzone ui-droppable"){jQuery(this).parent().find("div:first").css("background","none").css("height","50px")}else{if(jQuery(this).attr("class")=="ui-droppable"){jQuery(this).parent().find("dt:first").css("background","#d8d8d8")}else{}}var t=jQuery(this).parent().attr("id")},out:function(){jQuery(this).parent().find("dt").removeAttr("style");jQuery(this).parent().find("div:first").removeAttr("style");jQuery(this).filter(".dropzone").css({borderColor:""})}});updatepostdata()};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenudynamicfunctionsjs"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/js/nav-menu-dynamic-functions.js</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadminjsnavmenuphpfunctionsdevjsfromrev13399trunkwpadminjscustomnavigationphpfunctionsdevjs"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/js/nav-menu-php-functions.dev.js (from rev 13399, trunk/wp-admin/js/custom-navigation-php-functions.dev.js) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-php-functions.dev.js         (rev 0)
+++ trunk/wp-admin/js/nav-menu-php-functions.dev.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1,300 @@
</span><ins>+/*
+ * More info at: http://phpjs.org
+ *
+ * This is version: 3.08
+ * php.js is copyright 2010 Kevin van Zonneveld.
+ *
+ * Portions copyright Brett Zamir (http://brett-zamir.me), Kevin van Zonneveld
+ * (http://kevin.vanzonneveld.net), Onno Marsman, Theriault, Michael White
+ * (http://getsprink.com), Waldo Malqui Silva, Paulo Ricardo F. Santos, Jack,
+ * Jonas Raoni Soares Silva (http://www.jsfromhell.com), Philip Peterson, Ates
+ * Goral (http://magnetiq.com), Legaev Andrey, Alex, Ratheous, Martijn
+ * Wieringa, Nate, lmeyrick (https://sourceforge.net/projects/bcmath-js/),
+ * Enrique Gonzalez, Philippe Baumann, Webtoolkit.info
+ * (http://www.webtoolkit.info/), travc, Carlos R. L. Rodrigues
+ * (http://www.jsfromhell.com), Jani Hartikainen, Ash Searle
+ * (http://hexmen.com/blog/), Ole Vrijenhoek, stag019, d3x, Erkekjetter,
+ * GeekFG (http://geekfg.blogspot.com), T.Wild, Johnny Mast
+ * (http://www.phpvrouwen.nl), Michael Grier,
+ * http://stackoverflow.com/questions/57803/how-to-convert-decimal-to-hex-in-javascript,
+ * pilus, marrtins, Andrea Giammarchi (http://webreflection.blogspot.com),
+ * WebDevHobo (http://webdevhobo.blogspot.com/), Caio Ariede
+ * (http://caioariede.com), Thunder.m, Aman Gupta, Martin
+ * (http://www.erlenwiese.de/), Tyler Akins (http://rumkin.com), Lars Fischer,
+ * Paul Smith, Alfonso Jimenez (http://www.alfonsojimenez.com), Michael White,
+ * mdsjack (http://www.mdsjack.bo.it), Pellentesque Malesuada, gettimeofday,
+ * David, Joris, saulius, Robin, Steven Levithan
+ * (http://blog.stevenlevithan.com), Public Domain
+ * (http://www.json.org/json2.js), Kankrelune (http://www.webfaktory.info/),
+ * Tim de Koning (http://www.kingsquare.nl), Arpad Ray (mailto:arpad@php.net),
+ * AJ, KELAN, Sakimori, Mailfaker (http://www.weedem.fr/), Oleg Eremeev, Marc
+ * Palau, Josh Fraser
+ * (http://onlineaspect.com/2007/06/08/auto-detect-a-time-zone-with-javascript/),
+ * Karol Kowalski, Chris, Breaking Par Consulting Inc
+ * (http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256CFB006C45F7),
+ * Mirek Slugen, majak, Felix Geisendoerfer (http://www.debuggable.com/felix),
+ * gorthaur, Steve Hilder, LH, Stoyan Kyosev (http://www.svest.org/), Der
+ * Simon (http://innerdom.sourceforge.net/), HKM, echo is bad, nord_ua, Ozh,
+ * metjay, XoraX (http://www.xorax.info), Eugene Bulkin
+ * (http://doubleaw.com/), JB, strcasecmp, strcmp, Taras Bogach, Francesco,
+ * Marco, noname, class_exists, madipta, Alan C, mktime, Douglas Crockford
+ * (http://javascript.crockford.com), uestla, Frank Forte, David James, Steve
+ * Clay, J A R, jpfle, Marc Jansen, Paul, Hyam Singer
+ * (http://www.impact-computing.com/), T. Wild, Ole Vrijenhoek
+ * (http://www.nervous.nl/), Raphael (Ao RUDLER), kenneth, Brad Touesnard,
+ * ChaosNo1, Subhasis Deb, Norman "zEh" Fuchs, 0m3r, Sanjoy Roy, Rob, Gilbert,
+ * Bayron Guevara, paulo kuong, Orlando, duncan, sankai, hitwork, Philippe
+ * Jausions (http://pear.php.net/user/jausions), Aidan Lister
+ * (http://aidanlister.com/), ejsanders, Nick Callen, Brian Tafoya
+ * (http://www.premasolutions.com/), johnrembo, sowberry, Yves Sucaet, Denny
+ * Wardhana, Ulrich, kilops, dptr1988, john (http://www.jd-tech.net), MeEtc
+ * (http://yass.meetcweb.com), Peter-Paul Koch
+ * (http://www.quirksmode.org/js/beat.html), T0bsn, Tim Wiel, Bryan Elliott,
+ * Alexander Ermolaev (http://snippets.dzone.com/user/AlexanderErmolaev), JT,
+ * Thomas Beaucourt (http://www.webapp.fr), David Randall, DxGx, Soren Hansen,
+ * lmeyrick (https://sourceforge.net/projects/bcmath-js/this.), Le Torbi,
+ * djmix, Lincoln Ramsay, Linuxworld, Thiago Mata
+ * (http://thiagomata.blog.com), Pedro Tainha (http://www.pedrotainha.com),
+ * James, Pyerre, Jon Hohle, felix, ger, Russell Walker
+ * (http://www.nbill.co.uk/), Garagoth, Andrej Pavlovic, Dino, Jamie Beck
+ * (http://www.terabit.ca/), DtTvB
+ * (http://dt.in.th/2008-09-16.string-length-in-bytes.html), setcookie, YUI
+ * Library: http://developer.yahoo.com/yui/docs/YAHOO.util.DateLocale.html,
+ * Blues at http://hacks.bluesmoon.info/strftime/strftime.js, Andreas, rem,
+ * meo, Jay Klehr, Kheang Hok Chin (http://www.distantia.ca/), Luke Smith
+ * (http://lucassmith.name), Rival, Amir Habibi
+ * (http://www.residence-mixte.com/), Cagri Ekin, Greenseed, mk.keck, Leslie
+ * Hoare, booeyOH, Ben Bryan, Michael, Christian Doebler, Kirk Strobeck, Brant
+ * Messenger (http://www.brantmessenger.com/), Rick Waldron, Mick@el, Martin
+ * Pool, Pierre-Luc Paour, Daniel Esteban, Christoph, Saulo Vallory, Kristof
+ * Coomans (SCK-CEN Belgian Nucleair Research Centre), rezna, Tomasz
+ * Wesolowski, Gabriel Paderni, Marco van Oort, Philipp Lenssen,
+ * penutbutterjelly, Simon Willison (http://simonwillison.net), Anton Ongson,
+ * Eric Nagel, Bobby Drake, Pul, Blues (http://tech.bluesmoon.info/), Luke
+ * Godfrey, Diogo Resende, Howard Yeend, vlado houba, Jalal Berrami, Itsacon
+ * (http://www.itsacon.net/), date, Billy, stensi, Cord, fearphage
+ * (http://http/my.opera.com/fearphage/), Victor, Matteo, Artur Tchernychev,
+ * Francois, nobbler, Fox, marc andreu, Nick Kolosov (http://sammy.ru),
+ * Nathan, Arno, Scott Cariss, Slawomir Kaniecki, ReverseSyntax, Jason Wong
+ * (http://carrot.org/), Mateusz "loonquawl" Zalega, Manish, Wagner B. Soares,
+ * 3D-GRAF, jakes, Yannoo, gabriel paderni, daniel airton wermann
+ * (http://wermann.com.br), Atli ?\x97r, Allan Jensen
+ * (http://www.winternet.no), Benjamin Lupton, davook, Maximusya, FGFEmperor,
+ * baris ozdil, Luis Salazar (http://www.freaky-media.com/), Tim de Koning,
+ * taith, Matt Bradley, FremyCompany, T.J. Leahy, Greg Frazier, Valentina De
+ * Rosa, Tod Gentille, Riddler (http://www.frontierwebdev.com/), Alexander M
+ * Beedie
+ *
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ * in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ * IN NO EVENT SHALL KEVIN VAN ZONNEVELD BE LIABLE FOR ANY CLAIM, DAMAGES
+ * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+function get_html_translation_table (table, quote_style) {
+ // http://kevin.vanzonneveld.net
+ // + original by: Philip Peterson
+ // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
+ // + bugfixed by: noname
+ // + bugfixed by: Alex
+ // + bugfixed by: Marco
+ // + bugfixed by: madipta
+ // + improved by: KELAN
+ // + improved by: Brett Zamir (http://brett-zamir.me)
+ // + bugfixed by: Brett Zamir (http://brett-zamir.me)
+ // + input by: Frank Forte
+ // + bugfixed by: T.Wild
+ // + input by: Ratheous
+ // % note: It has been decided that we're not going to add global
+ // % note: dependencies to php.js, meaning the constants are not
+ // % note: real constants, but strings instead. Integers are also supported if someone
+ // % note: chooses to create the constants themselves.
+ // * example 1: get_html_translation_table('HTML_SPECIALCHARS');
+ // * returns 1: {'"': '&quot;', '&': '&amp;', '<': '&lt;', '>': '&gt;'}
+
+ var entities = {}, hash_map = {}, decimal = 0, symbol = '';
+ var constMappingTable = {}, constMappingQuoteStyle = {};
+ var useTable = {}, useQuoteStyle = {};
+
+ // Translate arguments
+ constMappingTable[0] = 'HTML_SPECIALCHARS';
+ constMappingTable[1] = 'HTML_ENTITIES';
+ constMappingQuoteStyle[0] = 'ENT_NOQUOTES';
+ constMappingQuoteStyle[2] = 'ENT_COMPAT';
+ constMappingQuoteStyle[3] = 'ENT_QUOTES';
+
+ useTable = !isNaN(table) ? constMappingTable[table] : table ? table.toUpperCase() : 'HTML_SPECIALCHARS';
+ useQuoteStyle = !isNaN(quote_style) ? constMappingQuoteStyle[quote_style] : quote_style ? quote_style.toUpperCase() : 'ENT_COMPAT';
+
+ if (useTable !== 'HTML_SPECIALCHARS' && useTable !== 'HTML_ENTITIES') {
+ throw new Error("Table: "+useTable+' not supported');
+ // return false;
+ }
+
+ entities['38'] = '&amp;';
+ if (useTable === 'HTML_ENTITIES') {
+ entities['160'] = '&nbsp;';
+ entities['161'] = '&iexcl;';
+ entities['162'] = '&cent;';
+ entities['163'] = '&pound;';
+ entities['164'] = '&curren;';
+ entities['165'] = '&yen;';
+ entities['166'] = '&brvbar;';
+ entities['167'] = '&sect;';
+ entities['168'] = '&uml;';
+ entities['169'] = '&copy;';
+ entities['170'] = '&ordf;';
+ entities['171'] = '&laquo;';
+ entities['172'] = '&not;';
+ entities['173'] = '&shy;';
+ entities['174'] = '&reg;';
+ entities['175'] = '&macr;';
+ entities['176'] = '&deg;';
+ entities['177'] = '&plusmn;';
+ entities['178'] = '&sup2;';
+ entities['179'] = '&sup3;';
+ entities['180'] = '&acute;';
+ entities['181'] = '&micro;';
+ entities['182'] = '&para;';
+ entities['183'] = '&middot;';
+ entities['184'] = '&cedil;';
+ entities['185'] = '&sup1;';
+ entities['186'] = '&ordm;';
+ entities['187'] = '&raquo;';
+ entities['188'] = '&frac14;';
+ entities['189'] = '&frac12;';
+ entities['190'] = '&frac34;';
+ entities['191'] = '&iquest;';
+ entities['192'] = '&Agrave;';
+ entities['193'] = '&Aacute;';
+ entities['194'] = '&Acirc;';
+ entities['195'] = '&Atilde;';
+ entities['196'] = '&Auml;';
+ entities['197'] = '&Aring;';
+ entities['198'] = '&AElig;';
+ entities['199'] = '&Ccedil;';
+ entities['200'] = '&Egrave;';
+ entities['201'] = '&Eacute;';
+ entities['202'] = '&Ecirc;';
+ entities['203'] = '&Euml;';
+ entities['204'] = '&Igrave;';
+ entities['205'] = '&Iacute;';
+ entities['206'] = '&Icirc;';
+ entities['207'] = '&Iuml;';
+ entities['208'] = '&ETH;';
+ entities['209'] = '&Ntilde;';
+ entities['210'] = '&Ograve;';
+ entities['211'] = '&Oacute;';
+ entities['212'] = '&Ocirc;';
+ entities['213'] = '&Otilde;';
+ entities['214'] = '&Ouml;';
+ entities['215'] = '&times;';
+ entities['216'] = '&Oslash;';
+ entities['217'] = '&Ugrave;';
+ entities['218'] = '&Uacute;';
+ entities['219'] = '&Ucirc;';
+ entities['220'] = '&Uuml;';
+ entities['221'] = '&Yacute;';
+ entities['222'] = '&THORN;';
+ entities['223'] = '&szlig;';
+ entities['224'] = '&agrave;';
+ entities['225'] = '&aacute;';
+ entities['226'] = '&acirc;';
+ entities['227'] = '&atilde;';
+ entities['228'] = '&auml;';
+ entities['229'] = '&aring;';
+ entities['230'] = '&aelig;';
+ entities['231'] = '&ccedil;';
+ entities['232'] = '&egrave;';
+ entities['233'] = '&eacute;';
+ entities['234'] = '&ecirc;';
+ entities['235'] = '&euml;';
+ entities['236'] = '&igrave;';
+ entities['237'] = '&iacute;';
+ entities['238'] = '&icirc;';
+ entities['239'] = '&iuml;';
+ entities['240'] = '&eth;';
+ entities['241'] = '&ntilde;';
+ entities['242'] = '&ograve;';
+ entities['243'] = '&oacute;';
+ entities['244'] = '&ocirc;';
+ entities['245'] = '&otilde;';
+ entities['246'] = '&ouml;';
+ entities['247'] = '&divide;';
+ entities['248'] = '&oslash;';
+ entities['249'] = '&ugrave;';
+ entities['250'] = '&uacute;';
+ entities['251'] = '&ucirc;';
+ entities['252'] = '&uuml;';
+ entities['253'] = '&yacute;';
+ entities['254'] = '&thorn;';
+ entities['255'] = '&yuml;';
+ }
+
+ if (useQuoteStyle !== 'ENT_NOQUOTES') {
+ entities['34'] = '&quot;';
+ }
+ if (useQuoteStyle === 'ENT_QUOTES') {
+ entities['39'] = '&#39;';
+ }
+ entities['60'] = '&lt;';
+ entities['62'] = '&gt;';
+
+
+ // ascii decimals to real symbols
+ for (decimal in entities) {
+ symbol = String.fromCharCode(decimal);
+ hash_map[symbol] = entities[decimal];
+ }
+
+ return hash_map;
+}
+
+
+function htmlentities (string, quote_style) {
+ // http://kevin.vanzonneveld.net
+ // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
+ // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
+ // + improved by: nobbler
+ // + tweaked by: Jack
+ // + bugfixed by: Onno Marsman
+ // + revised by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
+ // + bugfixed by: Brett Zamir (http://brett-zamir.me)
+ // + input by: Ratheous
+ // - depends on: get_html_translation_table
+ // * example 1: htmlentities('Kevin & van Zonneveld');
+ // * returns 1: 'Kevin &amp; van Zonneveld'
+ // * example 2: htmlentities("foo'bar","ENT_QUOTES");
+ // * returns 2: 'foo&#039;bar'
+
+ var hash_map = {}, symbol = '', tmp_str = '', entity = '';
+ tmp_str = string.toString();
+
+ if (false === (hash_map = this.get_html_translation_table('HTML_ENTITIES', quote_style))) {
+ return false;
+ }
+ hash_map["'"] = '&#039;';
+ for (symbol in hash_map) {
+ entity = hash_map[symbol];
+ tmp_str = tmp_str.split(symbol).join(entity);
+ }
+
+ return tmp_str;
+}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenuphpfunctionsdevjs"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/js/nav-menu-php-functions.dev.js</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadminjsnavmenuphpfunctionsjsfromrev13399trunkwpadminjscustomnavigationphpfunctionsjs"></a>
<div class="copfile"><h4>Copied: trunk/wp-admin/js/nav-menu-php-functions.js (from rev 13399, trunk/wp-admin/js/custom-navigation-php-functions.js) (0 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu-php-functions.js         (rev 0)
+++ trunk/wp-admin/js/nav-menu-php-functions.js        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+function get_html_translation_table(i,g){var d={},f={},c=0,a="";var e={},b={};var j={},h={};e[0]="HTML_SPECIALCHARS";e[1]="HTML_ENTITIES";b[0]="ENT_NOQUOTES";b[2]="ENT_COMPAT";b[3]="ENT_QUOTES";j=!isNaN(i)?e[i]:i?i.toUpperCase():"HTML_SPECIALCHARS";h=!isNaN(g)?b[g]:g?g.toUpperCase():"ENT_COMPAT";if(j!=="HTML_SPECIALCHARS"&&j!=="HTML_ENTITIES"){throw new Error("Table: "+j+" not supported")}d["38"]="&amp;";if(j==="HTML_ENTITIES"){d["160"]="&nbsp;";d["161"]="&iexcl;";d["162"]="&cent;";d["163"]="&pound;";d["164"]="&curren;";d["165"]="&yen;";d["166"]="&brvbar;";d["167"]="&sect;";d["168"]="&uml;";d["169"]="&copy;";d["170"]="&ordf;";d["171"]="&laquo;";d["172"]="&not;";d["173"]="&shy;";d["174"]="&reg;";d["175"]="&macr;";d["176"]="&deg;";d["177"]="&plusmn;";d["178"]="&sup2;";d["179"]="&sup3;";d["180"]="&acute;";d["181"]="&micro;";d["182"]="&para;";d["183"]="&middot;";d["184"]="&cedil;";d["185"]="&sup1;";d["186"]="&ordm;";d["187"]="&raquo;";d["188"]="&frac14;";d["189"]="&frac12;";d["190"]="&frac34;";d["191"]="&iquest;";d["192"]="&Agrave;";d["193"]="&Aacute;";d["194"]="&Acirc;";d["195"]="&Atilde;";d["196"]="&Auml;";d["197"]="&Aring;";d["198"]="&AElig;";d["199"]="&Ccedil;";d["200"]="&Egrave;";d["201"]="&Eacute;";d["202"]="&Ecirc;";d["203"]="&Euml;";d["204"]="&Igrave;";d["205"]="&Iacute;";d["206"]="&Icirc;";d["207"]="&Iuml;";d["208"]="&ETH;";d["209"]="&Ntilde;";d["210"]="&Ograve;";d["211"]="&Oacute;";d["212"]="&Ocirc;";d["213"]="&Otilde;";d["214"]="&Ouml;";d["215"]="&times;";d["216"]="&Oslash;";d["217"]="&Ugrave;";d["218"]="&Uacute;";d["219"]="&Ucirc;";d["220"]="&Uuml;";d["221"]="&Yacute;";d["222"]="&THORN;";d["223"]="&szlig;";d["224"]="&agrave;";d["225"]="&aacute;";d["226"]="&acirc;";d["227"]="&atilde;";d["228"]="&auml;";d["229"]="&aring;";d["230"]="&aelig;";d["231"]="&ccedil;";d["232"]="&egrave;";d["233"]="&eacute;";d["234"]="&ecirc;";d["235"]="&euml;";d["236"]="&igrave;";d["237"]="&iacute;";d["238"]="&icirc;";d["239"]="&iuml;";d["240"]="&eth;";d["241"]="&ntilde;";d["242"]="&ograve;";d["243"]="&oacute;";d["244"]="&ocirc;";d["245"]="&otilde;";d["246"]="&ouml;";d["247"]="&divide;";d["248"]="&oslash;";d["249"]="&ugrave;";d["250"]="&uacute;";d["251"]="&ucirc;";d["252"]="&uuml;";d["253"]="&yacute;";d["254"]="&thorn;";d["255"]="&yuml;"}if(h!=="ENT_NOQUOTES"){d["34"]="&quot;"}if(h==="ENT_QUOTES"){d["39"]="&#39;"}d["60"]="&lt;";d["62"]="&gt;";for(c in d){a=String.fromCharCode(c);f[a]=d[c]}return f}function htmlentities(c,f){var e={},d="",a="",b="";a=c.toString();if(false===(e=this.get_html_translation_table("HTML_ENTITIES",f))){return false}e["'"]="&#039;";for(d in e){b=e[d];a=a.split(d).join(b)}return a};
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenuphpfunctionsjs"></a>
<div class="propset"><h4>Property changes: trunk/wp-admin/js/nav-menu-php-functions.js</h4>
<pre class="diff"><span>
<span class="cx">Name: svn:mergeinfo
</span><span class="cx"> +
</span></span></pre></div>
<a id="trunkwpadminnavmenusphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/nav-menus.php (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/nav-menus.php        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-admin/nav-menus.php        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -14,16 +14,16 @@
</span><span class="cx"> if ( ! current_user_can('switch_themes') )
</span><span class="cx">         wp_die( __( 'Cheatin&#8217; uh?' ));
</span><span class="cx">
</span><del>-wp_admin_css( 'custom-navigation' );
</del><ins>+wp_admin_css( 'nav-menu' );
</ins><span class="cx"> wp_enqueue_script( 'jquery' );
</span><span class="cx"> wp_enqueue_script( 'jquery-ui-draggable' );
</span><span class="cx"> wp_enqueue_script( 'jquery-ui-droppable' );
</span><span class="cx"> wp_enqueue_script( 'jquery-ui-sortable' );
</span><span class="cx"> wp_enqueue_script( 'jquery-ui-dialog' );
</span><del>-wp_enqueue_script( 'custom-navigation-dynamic-functions' );
-wp_enqueue_script( 'custom-navigation-default-items' );
</del><ins>+wp_enqueue_script( 'nav-menu-dynamic-functions' );
+wp_enqueue_script( 'nav-menu-default-items' );
</ins><span class="cx"> wp_enqueue_script( 'jquery-autocomplete' );
</span><del>-wp_enqueue_script( 'custom-navigation-php-functions' );
</del><ins>+wp_enqueue_script( 'nav-menu-php-functions' );
</ins><span class="cx">
</span><span class="cx"> require_once( 'admin-header.php' );
</span><span class="cx"> require_once( ABSPATH . 'wp-admin/includes/nav-menu.php' );
</span><span class="lines">@@ -393,4 +393,4 @@
</span><span class="cx">
</span><span class="cx"> <?php
</span><span class="cx">
</span><del>-include( 'admin-footer.php' );
</del><span class="cx">\ No newline at end of file
</span><ins>+include( 'admin-footer.php' );
</ins></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (13401 => 13402)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-02-25 16:57:57 UTC (rev 13401)
+++ trunk/wp-includes/script-loader.php        2010-02-25 17:10:00 UTC (rev 13402)
</span><span class="lines">@@ -397,15 +397,15 @@
</span><span class="cx">                 ) );
</span><span class="cx">
</span><span class="cx">                 // Custom Navigation
</span><del>-                $scripts->add( 'custom-navigation-default-items', "/wp-admin/js/custom-navigation-default-items$suffix.js", false, '20100223' );
-                $scripts->add( 'custom-navigation-dynamic-functions', "/wp-admin/js/custom-navigation-dynamic-functions$suffix.js", false, '20100224b' );
-                $scripts->localize( 'custom-navigation-dynamic-functions', 'navMenuL10n', array(
</del><ins>+                $scripts->add( 'nav-menu-default-items', "/wp-admin/js/nav-menu-default-items$suffix.js", false, '20100223' );
+                $scripts->add( 'nav-menu-dynamic-functions', "/wp-admin/js/nav-menu-dynamic-functions$suffix.js", false, '20100224b' );
+                $scripts->localize( 'nav-menu-dynamic-functions', 'navMenuL10n', array(
</ins><span class="cx">                         'custom' => _x('Custom', 'menu nav item type'),
</span><span class="cx">                         'page' => _x('Page', 'menu nav item type'),
</span><span class="cx">                         'category' => _x('Category', 'menu nav item type')
</span><span class="cx">                 ) );
</span><span class="cx">                 
</span><del>-                $scripts->add( 'custom-navigation-php-functions', "/wp-admin/js/custom-navigation-php-functions$suffix.js", false, '20100220' );
</del><ins>+                $scripts->add( 'nav-menu-php-functions', "/wp-admin/js/nav-menu-php-functions$suffix.js", false, '20100220' );
</ins><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -474,7 +474,7 @@
</span><span class="cx">         $styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.2' );
</span><span class="cx">         $styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
</span><span class="cx">         $styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
</span><del>-        $styles->add( 'custom-navigation', "/wp-admin/css/custom-navigation$suffix.css", array(), '20100225' );
</del><ins>+        $styles->add( 'nav-menu', "/wp-admin/css/nav-menu$suffix.css", array(), '20100225' );
</ins><span class="cx">
</span><span class="cx">         foreach ( $rtl_styles as $rtl_style ) {
</span><span class="cx">                 $styles->add_data( $rtl_style, 'rtl', true );
</span></span></pre>
</div>
</div>
</body>
</html>