<!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>[13742] trunk: Remove JS nav-menu functions that we no longer use.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/13742">13742</a></dd>
<dt>Author</dt> <dd>nacin</dd>
<dt>Date</dt> <dd>2010-03-17 20:44:59 +0000 (Wed, 17 Mar 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove JS nav-menu functions that we no longer use. see <a href="http://trac.wordpress.org/ticket/11817">#11817</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminjsnavmenudevjs">trunk/wp-admin/js/nav-menu.dev.js</a></li>
<li><a href="#trunkwpadminjsnavmenujs">trunk/wp-admin/js/nav-menu.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminjsnavmenudevjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.dev.js (13741 => 13742)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.dev.js        2010-03-17 20:03:02 UTC (rev 13741)
+++ trunk/wp-admin/js/nav-menu.dev.js        2010-03-17 20:44:59 UTC (rev 13742)
</span><span class="lines">@@ -486,305 +486,4 @@
</span><span class="cx">                 $('#custom-menu-item-name').val($('#custom-menu-item-name').attr('defaultValue'));
</span><span class="cx">                 $('#custom-menu-item-url' ).val($('#custom-menu-item-url' ).attr('defaultValue')).focus();
</span><span class="cx">         });
</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 &quot;zEh&quot; 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 &quot;loonquawl&quot; 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
- * &quot;Software&quot;), 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 &quot;AS IS&quot;, 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;quot;', '&amp;': '&amp;amp;', '&lt;': '&amp;lt;', '&gt;': '&amp;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' &amp;&amp; useTable !== 'HTML_ENTITIES') {
-        throw new Error(&quot;Table: &quot;+useTable+' not supported');
-        // return false;
-    }
-
-    entities['38'] = '&amp;amp;';
-    if (useTable === 'HTML_ENTITIES') {
-        entities['160'] = '&amp;nbsp;';
-        entities['161'] = '&amp;iexcl;';
-        entities['162'] = '&amp;cent;';
-        entities['163'] = '&amp;pound;';
-        entities['164'] = '&amp;curren;';
-        entities['165'] = '&amp;yen;';
-        entities['166'] = '&amp;brvbar;';
-        entities['167'] = '&amp;sect;';
-        entities['168'] = '&amp;uml;';
-        entities['169'] = '&amp;copy;';
-        entities['170'] = '&amp;ordf;';
-        entities['171'] = '&amp;laquo;';
-        entities['172'] = '&amp;not;';
-        entities['173'] = '&amp;shy;';
-        entities['174'] = '&amp;reg;';
-        entities['175'] = '&amp;macr;';
-        entities['176'] = '&amp;deg;';
-        entities['177'] = '&amp;plusmn;';
-        entities['178'] = '&amp;sup2;';
-        entities['179'] = '&amp;sup3;';
-        entities['180'] = '&amp;acute;';
-        entities['181'] = '&amp;micro;';
-        entities['182'] = '&amp;para;';
-        entities['183'] = '&amp;middot;';
-        entities['184'] = '&amp;cedil;';
-        entities['185'] = '&amp;sup1;';
-        entities['186'] = '&amp;ordm;';
-        entities['187'] = '&amp;raquo;';
-        entities['188'] = '&amp;frac14;';
-        entities['189'] = '&amp;frac12;';
-        entities['190'] = '&amp;frac34;';
-        entities['191'] = '&amp;iquest;';
-        entities['192'] = '&amp;Agrave;';
-        entities['193'] = '&amp;Aacute;';
-        entities['194'] = '&amp;Acirc;';
-        entities['195'] = '&amp;Atilde;';
-        entities['196'] = '&amp;Auml;';
-        entities['197'] = '&amp;Aring;';
-        entities['198'] = '&amp;AElig;';
-        entities['199'] = '&amp;Ccedil;';
-        entities['200'] = '&amp;Egrave;';
-        entities['201'] = '&amp;Eacute;';
-        entities['202'] = '&amp;Ecirc;';
-        entities['203'] = '&amp;Euml;';
-        entities['204'] = '&amp;Igrave;';
-        entities['205'] = '&amp;Iacute;';
-        entities['206'] = '&amp;Icirc;';
-        entities['207'] = '&amp;Iuml;';
-        entities['208'] = '&amp;ETH;';
-        entities['209'] = '&amp;Ntilde;';
-        entities['210'] = '&amp;Ograve;';
-        entities['211'] = '&amp;Oacute;';
-        entities['212'] = '&amp;Ocirc;';
-        entities['213'] = '&amp;Otilde;';
-        entities['214'] = '&amp;Ouml;';
-        entities['215'] = '&amp;times;';
-        entities['216'] = '&amp;Oslash;';
-        entities['217'] = '&amp;Ugrave;';
-        entities['218'] = '&amp;Uacute;';
-        entities['219'] = '&amp;Ucirc;';
-        entities['220'] = '&amp;Uuml;';
-        entities['221'] = '&amp;Yacute;';
-        entities['222'] = '&amp;THORN;';
-        entities['223'] = '&amp;szlig;';
-        entities['224'] = '&amp;agrave;';
-        entities['225'] = '&amp;aacute;';
-        entities['226'] = '&amp;acirc;';
-        entities['227'] = '&amp;atilde;';
-        entities['228'] = '&amp;auml;';
-        entities['229'] = '&amp;aring;';
-        entities['230'] = '&amp;aelig;';
-        entities['231'] = '&amp;ccedil;';
-        entities['232'] = '&amp;egrave;';
-        entities['233'] = '&amp;eacute;';
-        entities['234'] = '&amp;ecirc;';
-        entities['235'] = '&amp;euml;';
-        entities['236'] = '&amp;igrave;';
-        entities['237'] = '&amp;iacute;';
-        entities['238'] = '&amp;icirc;';
-        entities['239'] = '&amp;iuml;';
-        entities['240'] = '&amp;eth;';
-        entities['241'] = '&amp;ntilde;';
-        entities['242'] = '&amp;ograve;';
-        entities['243'] = '&amp;oacute;';
-        entities['244'] = '&amp;ocirc;';
-        entities['245'] = '&amp;otilde;';
-        entities['246'] = '&amp;ouml;';
-        entities['247'] = '&amp;divide;';
-        entities['248'] = '&amp;oslash;';
-        entities['249'] = '&amp;ugrave;';
-        entities['250'] = '&amp;uacute;';
-        entities['251'] = '&amp;ucirc;';
-        entities['252'] = '&amp;uuml;';
-        entities['253'] = '&amp;yacute;';
-        entities['254'] = '&amp;thorn;';
-        entities['255'] = '&amp;yuml;';
-    }
-
-    if (useQuoteStyle !== 'ENT_NOQUOTES') {
-        entities['34'] = '&amp;quot;';
-    }
-    if (useQuoteStyle === 'ENT_QUOTES') {
-        entities['39'] = '&amp;#39;';
-    }
-    entities['60'] = '&amp;lt;';
-    entities['62'] = '&amp;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 &amp; van Zonneveld');
-    // *     returns 1: 'Kevin &amp;amp; van Zonneveld'
-    // *     example 2: htmlentities(&quot;foo'bar&quot;,&quot;ENT_QUOTES&quot;);
-    // *     returns 2: 'foo&amp;#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[&quot;'&quot;] = '&amp;#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><ins>+});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpadminjsnavmenujs"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/js/nav-menu.js (13741 => 13742)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/js/nav-menu.js        2010-03-17 20:03:02 UTC (rev 13741)
+++ trunk/wp-admin/js/nav-menu.js        2010-03-17 20:44:59 UTC (rev 13742)
</span><span class="lines">@@ -1 +1 @@
</span><del>-function wp_nav_menu_autocomplete(a){jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).autocomplete(jQuery(&quot;#add-&quot;+a+&quot; .autocomplete&quot;).val().split(&quot;|&quot;));jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).result(function(b,d,c){jQuery(&quot;#add-&quot;+a+&quot; .list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .list-wrap li:contains('&quot;+d+&quot;')&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .show-all&quot;).hide();jQuery(&quot;#add-&quot;+a+&quot; .hide-all&quot;).show()})}function wp_edit_menu_item(a){var f=jQuery(&quot;#menu-item-type&quot;+a).val();var b=jQuery(&quot;#menu-item-title&quot;+a).val();var g=jQuery(&quot;#menu-item-url&quot;+a).val();var c=jQuery(&quot;#menu-item-attr-title&quot;+a).val();var d=jQuery(&quot;#menu-item-target&quot;+a).val();var h=jQuery(&quot;#menu-item-description&quot;+a).val();var e=jQuery(&quot;#menu-item-classes&quot;+a).val();var i=jQuery(&quot;#menu-item-xfn&quot;+a).val();if(&quot;custom&quot;!=f){jQuery(&quot;#edit-menu-item-url&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}jQuery(&quot;#edit-menu-item-id&quot;).val(a);jQuery(&quot;#edit-menu-item-title&quot;).val(b);jQuery(&quot;#edit-menu-item-url&quot;).val(g);jQuery(&quot;#edit-menu-item-attr-title&quot;).val(c);jQuery(&quot;#edit-menu-item-target&quot;).val(d);jQuery(&quot;#edit-menu-item-target option[value='&quot;+d+&quot;']&quot;).attr(&quot;selected&quot;,&quot;selected&quot;);jQuery(&quot;#edit-menu-item-description&quot;).val(h);jQuery(&quot;#edit-menu-item-classes&quot;).val(e);jQuery(&quot;#edit-menu-item-xfn&quot;).val(i);jQuery(&quot;#edit-menu-item-title&quot;).focus()}function wp_update_menu_item(){var h=jQuery(&quot;#edit-menu-item-id&quot;).val();var f=jQuery(&quot;#edit-menu-item-title&quot;).val();var b=jQuery(&quot;#edit-menu-item-url&quot;).val();var g=jQuery(&quot;#edit-menu-item-attr-title&quot;).val();var d=jQuery(&quot;#edit-menu-item-target&quot;).val();var c=jQuery(&quot;#edit-menu-item-description&quot;).val();var a=jQuery(&quot;#edit-menu-item-classes&quot;).val();var e=jQuery(&quot;#edit-menu-item-xfn&quot;).val();jQuery(&quot;.menu #menu-item&quot;+h).find(&quot;span.item-title&quot;).html(f);jQuery(&quot;.menu #menu-item-title&quot;+h).val(f);jQuery(&quot;.menu #menu-item-url&quot;+h).val(b);jQuery(&quot;.menu #menu-item-attr-title&quot;+h).val(g);jQuery(&quot;.menu #menu-item-target&quot;+h).val(d);jQuery(&quot;.menu #menu-item-description&quot;+h).val(c);jQuery(&quot;.menu #menu-item-classes&quot;+h).val(a);jQuery(&quot;.menu #menu-item-xfn&quot;+h).val(e);jQuery(&quot;.menu #menu-item&quot;+h+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}function wp_remove_menu_item(b){var a=document.getElementById(&quot;menu-item&quot;+b);if(a){jQuery(a).find(&quot;dt&quot;).each(function(){jQuery(this).animate({backgroundColor:&quot;#FF3333&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).parent().parent().remove()}})})}}function wp_add_item_to_menu(a,k,f,n,l,b,m,h,e,d,c,i){var j=wp_get_unique_menu_id();var g=wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i);jQuery(&quot;.menu&quot;).append('&lt;li id=&quot;menu-item'+j+'&quot; value=&quot;'+j+'&quot;&gt;&lt;div class=&quot;dropzone ui-droppable&quot;&gt;&lt;/div&gt;&lt;dl class=&quot;ui-droppable&quot;&gt;&lt;dt&gt;&lt;span class=&quot;item-title&quot;&gt;'+b+'&lt;/span&gt;&lt;span class=&quot;item-controls&quot;&gt;&lt;span class=&quot;item-type&quot;&gt;'+n+'&lt;/span&gt;&lt;a class=&quot;item-edit thickbox&quot; id=&quot;edit'+j+'&quot; value=&quot;'+j+'&quot; onClick=&quot;wp_edit_menu_item('+j+')&quot; title=&quot;'+navMenuL10n.thickbox+'&quot; href=&quot;#TB_inline?height=540&amp;width=300&amp;inlineId=menu-item-settings&quot;&gt;'+navMenuL10n.edit+'&lt;/a&gt; | &lt;a class=&quot;item-delete&quot; id=&quot;delete'+j+'&quot; value=&quot;'+j+'&quot;&gt;Delete&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;&lt;/dl&gt;'+g+&quot;&lt;/li&gt;&quot;);jQuery(&quot;.menu #menu-item&quot;+j+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}});wp_drag_and_drop();tb_init(&quot;a.thickbox, area.thickbox, input.thickbox&quot;)}function wp_add_checked_items_to_menu(b){var a=jQuery(b).siblings(&quot;.list-wrap&quot;).find(&quot;:checked&quot;);if(0==a.length){return false}jQuery(a).each(function(){var h=jQuery(this).parent().siblings(&quot;.menu-item-type&quot;).val();if(&quot;custom&quot;==h){var e=jQuery(this).parent().siblings(&quot;.menu-item-attr-title&quot;).val();var f=jQuery(this).parent().siblings(&quot;.menu-item-target&quot;).val();var g=jQuery(this).parent().siblings(&quot;.menu-item-classes&quot;).val();var j=jQuery(this).parent().siblings(&quot;.menu-item-xfn&quot;).val()}else{var e=&quot;&quot;;var f=&quot;_self&quot;;var g=&quot;&quot;;var j=&quot;&quot;}var c=jQuery(this).parent().siblings(&quot;.menu-item-db-id&quot;).val();var k=jQuery(this).parent().siblings(&quot;.menu-item-object-id&quot;).val();var n=jQuery(this).parent().siblings(&quot;.menu-item-append&quot;).val();var l=jQuery(this).parent().siblings(&quot;.menu-item-parent-id&quot;).val();var d=jQuery(this).parent().siblings(&quot;.menu-item-title&quot;).val();var m=jQuery(this).parent().siblings(&quot;.menu-item-url&quot;).val();var i=jQuery(this).parent().siblings(&quot;.menu-item-description&quot;).val();if(undefined==i){i=&quot;&quot;}wp_add_item_to_menu(c,k,h,n,l,d,m,i,e,f,g,j);jQuery(this).attr(&quot;checked&quot;,false)})}function wp_drag_and_drop(){jQuery(&quot;.menu li&quot;).each(function(){if(!jQuery(this).children(&quot;.dropzone&quot;).attr(&quot;class&quot;)){jQuery(this).prepend('&lt;div class=&quot;dropzone&quot;&gt;&lt;/div&gt;')}});jQuery(&quot;.menu li&quot;).draggable({handle:&quot; &gt; dl&quot;,opacity:0.8,addClasses:false,helper:&quot;clone&quot;,zIndex:100});jQuery(&quot;.menu li dl, .menu li .dropzone&quot;).droppable({accept:&quot;.menu li&quot;,tolerance:&quot;pointer&quot;,drop:function(f,d){var a=jQuery(this).parent();var g=!jQuery(this).hasClass(&quot;dropzone&quot;);if(g&amp;&amp;a.children(&quot;ul&quot;).length==0){a.append('&lt;ul class=&quot;sub-menu&quot; /&gt;')}if(g){a.children(&quot;ul&quot;).append(d.draggable)}else{a.before(d.draggable)}a.find(&quot;dl,.dropzone&quot;).css({backgroundColor:&quot;&quot;,borderColor:&quot;&quot;});var c=d.draggable.attr(&quot;value&quot;);var b=a.attr(&quot;value&quot;);a.find(&quot;#menu-&quot;+c).find(&quot;#parent&quot;+c).val(b);jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;)},over:function(){if(jQuery(this).attr(&quot;class&quot;)==&quot;dropzone ui-droppable&quot;){jQuery(this).parent().find(&quot;div:first&quot;).css(&quot;background&quot;,&quot;none&quot;).css(&quot;height&quot;,&quot;50px&quot;)}else{if(jQuery(this).attr(&quot;class&quot;)==&quot;ui-droppable&quot;){jQuery(this).parent().find(&quot;dt:first&quot;).css(&quot;background&quot;,&quot;#d8d8d8&quot;)}else{}}var a=jQuery(this).parent().attr(&quot;id&quot;)},out:function(){jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;);jQuery(this).filter(&quot;.dropzone&quot;).css({borderColor:&quot;&quot;})}})}function wp_update_post_data(){var a=0;jQuery(&quot;.menu li&quot;).each(function(c){c=c+1;var b=jQuery(this).attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;value&quot;,c);jQuery(this).attr(&quot;id&quot;,&quot;menu-item&quot;+c);jQuery(this).attr(&quot;value&quot;,c);jQuery(this).find(&quot;#menu-item-db-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-db-id&quot;+c);jQuery(this).find(&quot;#menu-item-object-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-object-id&quot;+c);jQuery(this).find(&quot;#menu-item-append&quot;+b).attr(&quot;id&quot;,&quot;menu-item-append&quot;+c);jQuery(this).find(&quot;#menu-item-type&quot;+b).attr(&quot;id&quot;,&quot;menu-item-type&quot;+c);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;id&quot;,&quot;menu-item-position&quot;+c);var d=jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).parent().parent().parent().attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-parent-id&quot;+c);if(d){}else{d=0}jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;value&quot;,d);jQuery(this).find(&quot;#menu-item-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-title&quot;+c);jQuery(this).find(&quot;#menu-item-url&quot;+b).attr(&quot;id&quot;,&quot;menu-item-url&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-classes&quot;+b).attr(&quot;id&quot;,&quot;menu-item-classes&quot;+c);jQuery(this).find(&quot;#menu-item-xfn&quot;+b).attr(&quot;id&quot;,&quot;menu-item-xfn&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-attr-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-attr-title&quot;+c);jQuery(this).find(&quot;#menu-item-target&quot;+b).attr(&quot;id&quot;,&quot;menu-item-target&quot;+c);jQuery(&quot;#li-count&quot;).attr(&quot;value&quot;,c)})}function wp_get_unique_menu_id(){var d=jQuery(&quot;.menu li&quot;).length+1;var e=d;var a=0;try{var f=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}while(a==0){e=e+1;try{var b=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}}return e}function wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i){var g=&quot;&quot;;g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-db-id[]&quot; id=&quot;menu-item-db-id'+j+'&quot; value=&quot;'+a+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-object-id[]&quot; id=&quot;menu-item-object-id'+j+'&quot; value=&quot;'+k+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-type[]&quot; id=&quot;menu-item-type'+j+'&quot; value=&quot;'+f+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-append[]&quot; id=&quot;menu-item-append'+j+'&quot; value=&quot;'+n+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-parent-id[]&quot; id=&quot;menu-item-parent-id'+j+'&quot; value=&quot;'+l+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-position[]&quot; id=&quot;menu-item-position'+j+'&quot; value=&quot;'+j+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-title[]&quot; id=&quot;menu-item-title'+j+'&quot; value=&quot;'+b+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-attr-title[]&quot; id=&quot;menu-item-attr-title'+j+'&quot; value=&quot;'+e+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-url[]&quot; id=&quot;menu-item-url'+j+'&quot; value=&quot;'+m+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-target[]&quot; id=&quot;menu-item-target'+j+'&quot; value=&quot;'+d+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-description[]&quot; id=&quot;menu-item-description'+j+'&quot; value=&quot;'+h+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-classes[]&quot; id=&quot;menu-item-classes'+j+'&quot; value=&quot;'+c+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-xfn[]&quot; id=&quot;menu-item-xfn'+j+'&quot; value=&quot;'+i+'&quot; /&gt;';return g}jQuery(document).ready(function(a){wp_drag_and_drop();a(&quot;#update-nav-menu .deletion&quot;).click(function(){if(confirm(navMenuL10n.warnDelete)){return true}else{return false}});a(&quot;#save_menu&quot;).click(function(){return wp_update_post_data()});a(&quot;#create-menu-name&quot;).keypress(function(b){if(13==b.keyCode){a(&quot;#create-menu-button&quot;).click();return false}});a(&quot;#custom-menu-item-url, #custom-menu-item-name&quot;).keypress(function(b){if(13==b.keyCode){a(&quot;#add-custom-links a.button&quot;).click();return false}}).focus(function(){if(a(this).val()==a(this).attr(&quot;defaultValue&quot;)&amp;&amp;a(this).attr(&quot;id&quot;)!=&quot;custom-menu-item-url&quot;){a(this).val(&quot;&quot;)}}).blur(function(){if(a(this).val()==&quot;&quot;){a(this).val(a(this).attr(&quot;defaultValue&quot;))}});a(&quot;#create-menu-name&quot;).focus(function(){if(a(this).val()==a(this).attr(&quot;defaultValue&quot;)){a(this).val(&quot;&quot;)}}).blur(function(){if(a(this).val()==&quot;&quot;){a(this).val(a(this).attr(&quot;defaultValue&quot;))}});a(&quot;.if-js-closed&quot;).removeClass(&quot;if-js-closed&quot;).addClass(&quot;closed&quot;);postboxes.add_postbox_toggles(&quot;menus&quot;);a(&quot;.quick-search&quot;).click(function(){a(this).attr(&quot;value&quot;,&quot;&quot;)});a(&quot;.quick-search-submit&quot;).click(function(){a(this).siblings(&quot;.quick-search&quot;).search()});a(&quot;#menu-container .item-edit&quot;).click(function(){return wp_edit_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#menu-container .item-delete&quot;).live(&quot;click&quot;,function(b){return wp_remove_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#update-menu-item&quot;).click(function(){wp_update_menu_item();return tb_remove()});a(&quot;#cancel-save&quot;).click(function(){return tb_remove()});a(&quot;.show-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.hide-all&quot;).show()});a(&quot;.hide-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.show-all&quot;).show()});a(&quot;.add-to-menu&quot;).click(function(b){return wp_add_checked_items_to_menu(b.currentTarget)});a(&quot;#add-custom-links .add-to-menu a&quot;).click(function(b){if(a(&quot;#custom-menu-item-url&quot;).val()==a(&quot;#custom-menu-item-url&quot;).attr(&quot;defaultValue&quot;)){return}wp_add_item_to_menu(0,&quot;&quot;,&quot;custom&quot;,navMenuL10n.custom,0,a(&quot;#custom-menu-item-name&quot;).val(),a(&quot;#custom-menu-item-url&quot;).val(),&quot;&quot;,&quot;&quot;,&quot;_self&quot;,&quot;&quot;,&quot;&quot;);a(&quot;#custom-menu-item-name&quot;).val(a(&quot;#custom-menu-item-name&quot;).attr(&quot;defaultValue&quot;));a(&quot;#custom-menu-item-url&quot;).val(a(&quot;#custom-menu-item-url&quot;).attr(&quot;defaultValue&quot;)).focus()})});function get_html_translation_table(i,g){var d={},f={},c=0,a=&quot;&quot;;var e={},b={};var j={},h={};e[0]=&quot;HTML_SPECIALCHARS&quot;;e[1]=&quot;HTML_ENTITIES&quot;;b[0]=&quot;ENT_NOQUOTES&quot;;b[2]=&quot;ENT_COMPAT&quot;;b[3]=&quot;ENT_QUOTES&quot;;j=!isNaN(i)?e[i]:i?i.toUpperCase():&quot;HTML_SPECIALCHARS&quot;;h=!isNaN(g)?b[g]:g?g.toUpperCase():&quot;ENT_COMPAT&quot;;if(j!==&quot;HTML_SPECIALCHARS&quot;&amp;&amp;j!==&quot;HTML_ENTITIES&quot;){throw new Error(&quot;Table: &quot;+j+&quot; not supported&quot;)}d[&quot;38&quot;]=&quot;&amp;amp;&quot;;if(j===&quot;HTML_ENTITIES&quot;){d[&quot;160&quot;]=&quot;&amp;nbsp;&quot;;d[&quot;161&quot;]=&quot;&amp;iexcl;&quot;;d[&quot;162&quot;]=&quot;&amp;cent;&quot;;d[&quot;163&quot;]=&quot;&amp;pound;&quot;;d[&quot;164&quot;]=&quot;&amp;curren;&quot;;d[&quot;165&quot;]=&quot;&amp;yen;&quot;;d[&quot;166&quot;]=&quot;&amp;brvbar;&quot;;d[&quot;167&quot;]=&quot;&amp;sect;&quot;;d[&quot;168&quot;]=&quot;&amp;uml;&quot;;d[&quot;169&quot;]=&quot;&amp;copy;&quot;;d[&quot;170&quot;]=&quot;&amp;ordf;&quot;;d[&quot;171&quot;]=&quot;&amp;laquo;&quot;;d[&quot;172&quot;]=&quot;&amp;not;&quot;;d[&quot;173&quot;]=&quot;&amp;shy;&quot;;d[&quot;174&quot;]=&quot;&amp;reg;&quot;;d[&quot;175&quot;]=&quot;&amp;macr;&quot;;d[&quot;176&quot;]=&quot;&amp;deg;&quot;;d[&quot;177&quot;]=&quot;&amp;plusmn;&quot;;d[&quot;178&quot;]=&quot;&amp;sup2;&quot;;d[&quot;179&quot;]=&quot;&amp;sup3;&quot;;d[&quot;180&quot;]=&quot;&amp;acute;&quot;;d[&quot;181&quot;]=&quot;&amp;micro;&quot;;d[&quot;182&quot;]=&quot;&amp;para;&quot;;d[&quot;183&quot;]=&quot;&amp;middot;&quot;;d[&quot;184&quot;]=&quot;&amp;cedil;&quot;;d[&quot;185&quot;]=&quot;&amp;sup1;&quot;;d[&quot;186&quot;]=&quot;&amp;ordm;&quot;;d[&quot;187&quot;]=&quot;&amp;raquo;&quot;;d[&quot;188&quot;]=&quot;&amp;frac14;&quot;;d[&quot;189&quot;]=&quot;&amp;frac12;&quot;;d[&quot;190&quot;]=&quot;&amp;frac34;&quot;;d[&quot;191&quot;]=&quot;&amp;iquest;&quot;;d[&quot;192&quot;]=&quot;&amp;Agrave;&quot;;d[&quot;193&quot;]=&quot;&amp;Aacute;&quot;;d[&quot;194&quot;]=&quot;&amp;Acirc;&quot;;d[&quot;195&quot;]=&quot;&amp;Atilde;&quot;;d[&quot;196&quot;]=&quot;&amp;Auml;&quot;;d[&quot;197&quot;]=&quot;&amp;Aring;&quot;;d[&quot;198&quot;]=&quot;&amp;AElig;&quot;;d[&quot;199&quot;]=&quot;&amp;Ccedil;&quot;;d[&quot;200&quot;]=&quot;&amp;Egrave;&quot;;d[&quot;201&quot;]=&quot;&amp;Eacute;&quot;;d[&quot;202&quot;]=&quot;&amp;Ecirc;&quot;;d[&quot;203&quot;]=&quot;&amp;Euml;&quot;;d[&quot;204&quot;]=&quot;&amp;Igrave;&quot;;d[&quot;205&quot;]=&quot;&amp;Iacute;&quot;;d[&quot;206&quot;]=&quot;&amp;Icirc;&quot;;d[&quot;207&quot;]=&quot;&amp;Iuml;&quot;;d[&quot;208&quot;]=&quot;&amp;ETH;&quot;;d[&quot;209&quot;]=&quot;&amp;Ntilde;&quot;;d[&quot;210&quot;]=&quot;&amp;Ograve;&quot;;d[&quot;211&quot;]=&quot;&amp;Oacute;&quot;;d[&quot;212&quot;]=&quot;&amp;Ocirc;&quot;;d[&quot;213&quot;]=&quot;&amp;Otilde;&quot;;d[&quot;214&quot;]=&quot;&amp;Ouml;&quot;;d[&quot;215&quot;]=&quot;&amp;times;&quot;;d[&quot;216&quot;]=&quot;&amp;Oslash;&quot;;d[&quot;217&quot;]=&quot;&amp;Ugrave;&quot;;d[&quot;218&quot;]=&quot;&amp;Uacute;&quot;;d[&quot;219&quot;]=&quot;&amp;Ucirc;&quot;;d[&quot;220&quot;]=&quot;&amp;Uuml;&quot;;d[&quot;221&quot;]=&quot;&amp;Yacute;&quot;;d[&quot;222&quot;]=&quot;&amp;THORN;&quot;;d[&quot;223&quot;]=&quot;&amp;szlig;&quot;;d[&quot;224&quot;]=&quot;&amp;agrave;&quot;;d[&quot;225&quot;]=&quot;&amp;aacute;&quot;;d[&quot;226&quot;]=&quot;&amp;acirc;&quot;;d[&quot;227&quot;]=&quot;&amp;atilde;&quot;;d[&quot;228&quot;]=&quot;&amp;auml;&quot;;d[&quot;229&quot;]=&quot;&amp;aring;&quot;;d[&quot;230&quot;]=&quot;&amp;aelig;&quot;;d[&quot;231&quot;]=&quot;&amp;ccedil;&quot;;d[&quot;232&quot;]=&quot;&amp;egrave;&quot;;d[&quot;233&quot;]=&quot;&amp;eacute;&quot;;d[&quot;234&quot;]=&quot;&amp;ecirc;&quot;;d[&quot;235&quot;]=&quot;&amp;euml;&quot;;d[&quot;236&quot;]=&quot;&amp;igrave;&quot;;d[&quot;237&quot;]=&quot;&amp;iacute;&quot;;d[&quot;238&quot;]=&quot;&amp;icirc;&quot;;d[&quot;239&quot;]=&quot;&amp;iuml;&quot;;d[&quot;240&quot;]=&quot;&amp;eth;&quot;;d[&quot;241&quot;]=&quot;&amp;ntilde;&quot;;d[&quot;242&quot;]=&quot;&amp;ograve;&quot;;d[&quot;243&quot;]=&quot;&amp;oacute;&quot;;d[&quot;244&quot;]=&quot;&amp;ocirc;&quot;;d[&quot;245&quot;]=&quot;&amp;otilde;&quot;;d[&quot;246&quot;]=&quot;&amp;ouml;&quot;;d[&quot;247&quot;]=&quot;&amp;divide;&quot;;d[&quot;248&quot;]=&quot;&amp;oslash;&quot;;d[&quot;249&quot;]=&quot;&amp;ugrave;&quot;;d[&quot;250&quot;]=&quot;&amp;uacute;&quot;;d[&quot;251&quot;]=&quot;&amp;ucirc;&quot;;d[&quot;252&quot;]=&quot;&amp;uuml;&quot;;d[&quot;253&quot;]=&quot;&amp;yacute;&quot;;d[&quot;254&quot;]=&quot;&amp;thorn;&quot;;d[&quot;255&quot;]=&quot;&amp;yuml;&quot;}if(h!==&quot;ENT_NOQUOTES&quot;){d[&quot;34&quot;]=&quot;&amp;quot;&quot;}if(h===&quot;ENT_QUOTES&quot;){d[&quot;39&quot;]=&quot;&amp;#39;&quot;}d[&quot;60&quot;]=&quot;&amp;lt;&quot;;d[&quot;62&quot;]=&quot;&amp;gt;&quot;;for(c in d){a=String.fromCharCode(c);f[a]=d[c]}return f}function htmlentities(c,f){var e={},d=&quot;&quot;,a=&quot;&quot;,b=&quot;&quot;;a=c.toString();if(false===(e=this.get_html_translation_table(&quot;HTML_ENTITIES&quot;,f))){return false}e[&quot;'&quot;]=&quot;&amp;#039;&quot;;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><ins>+function wp_nav_menu_autocomplete(a){jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).autocomplete(jQuery(&quot;#add-&quot;+a+&quot; .autocomplete&quot;).val().split(&quot;|&quot;));jQuery(&quot;#add-&quot;+a+&quot; .quick-search&quot;).result(function(b,d,c){jQuery(&quot;#add-&quot;+a+&quot; .list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .list-wrap li:contains('&quot;+d+&quot;')&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(&quot;#add-&quot;+a+&quot; .show-all&quot;).hide();jQuery(&quot;#add-&quot;+a+&quot; .hide-all&quot;).show()})}function wp_edit_menu_item(a){var f=jQuery(&quot;#menu-item-type&quot;+a).val();var b=jQuery(&quot;#menu-item-title&quot;+a).val();var g=jQuery(&quot;#menu-item-url&quot;+a).val();var c=jQuery(&quot;#menu-item-attr-title&quot;+a).val();var d=jQuery(&quot;#menu-item-target&quot;+a).val();var h=jQuery(&quot;#menu-item-description&quot;+a).val();var e=jQuery(&quot;#menu-item-classes&quot;+a).val();var i=jQuery(&quot;#menu-item-xfn&quot;+a).val();if(&quot;custom&quot;!=f){jQuery(&quot;#edit-menu-item-url&quot;).attr(&quot;disabled&quot;,&quot;disabled&quot;)}jQuery(&quot;#edit-menu-item-id&quot;).val(a);jQuery(&quot;#edit-menu-item-title&quot;).val(b);jQuery(&quot;#edit-menu-item-url&quot;).val(g);jQuery(&quot;#edit-menu-item-attr-title&quot;).val(c);jQuery(&quot;#edit-menu-item-target&quot;).val(d);jQuery(&quot;#edit-menu-item-target option[value='&quot;+d+&quot;']&quot;).attr(&quot;selected&quot;,&quot;selected&quot;);jQuery(&quot;#edit-menu-item-description&quot;).val(h);jQuery(&quot;#edit-menu-item-classes&quot;).val(e);jQuery(&quot;#edit-menu-item-xfn&quot;).val(i);jQuery(&quot;#edit-menu-item-title&quot;).focus()}function wp_update_menu_item(){var h=jQuery(&quot;#edit-menu-item-id&quot;).val();var f=jQuery(&quot;#edit-menu-item-title&quot;).val();var b=jQuery(&quot;#edit-menu-item-url&quot;).val();var g=jQuery(&quot;#edit-menu-item-attr-title&quot;).val();var d=jQuery(&quot;#edit-menu-item-target&quot;).val();var c=jQuery(&quot;#edit-menu-item-description&quot;).val();var a=jQuery(&quot;#edit-menu-item-classes&quot;).val();var e=jQuery(&quot;#edit-menu-item-xfn&quot;).val();jQuery(&quot;.menu #menu-item&quot;+h).find(&quot;span.item-title&quot;).html(f);jQuery(&quot;.menu #menu-item-title&quot;+h).val(f);jQuery(&quot;.menu #menu-item-url&quot;+h).val(b);jQuery(&quot;.menu #menu-item-attr-title&quot;+h).val(g);jQuery(&quot;.menu #menu-item-target&quot;+h).val(d);jQuery(&quot;.menu #menu-item-description&quot;+h).val(c);jQuery(&quot;.menu #menu-item-classes&quot;+h).val(a);jQuery(&quot;.menu #menu-item-xfn&quot;+h).val(e);jQuery(&quot;.menu #menu-item&quot;+h+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}})}function wp_remove_menu_item(b){var a=document.getElementById(&quot;menu-item&quot;+b);if(a){jQuery(a).find(&quot;dt&quot;).each(function(){jQuery(this).animate({backgroundColor:&quot;#FF3333&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).parent().parent().remove()}})})}}function wp_add_item_to_menu(a,k,f,n,l,b,m,h,e,d,c,i){var j=wp_get_unique_menu_id();var g=wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i);jQuery(&quot;.menu&quot;).append('&lt;li id=&quot;menu-item'+j+'&quot; value=&quot;'+j+'&quot;&gt;&lt;div class=&quot;dropzone ui-droppable&quot;&gt;&lt;/div&gt;&lt;dl class=&quot;ui-droppable&quot;&gt;&lt;dt&gt;&lt;span class=&quot;item-title&quot;&gt;'+b+'&lt;/span&gt;&lt;span class=&quot;item-controls&quot;&gt;&lt;span class=&quot;item-type&quot;&gt;'+n+'&lt;/span&gt;&lt;a class=&quot;item-edit thickbox&quot; id=&quot;edit'+j+'&quot; value=&quot;'+j+'&quot; onClick=&quot;wp_edit_menu_item('+j+')&quot; title=&quot;'+navMenuL10n.thickbox+'&quot; href=&quot;#TB_inline?height=540&amp;width=300&amp;inlineId=menu-item-settings&quot;&gt;'+navMenuL10n.edit+'&lt;/a&gt; | &lt;a class=&quot;item-delete&quot; id=&quot;delete'+j+'&quot; value=&quot;'+j+'&quot;&gt;Delete&lt;/a&gt;&lt;/span&gt;&lt;/dt&gt;&lt;/dl&gt;'+g+&quot;&lt;/li&gt;&quot;);jQuery(&quot;.menu #menu-item&quot;+j+&quot; dt:first&quot;).animate({backgroundColor:&quot;#FFFF33&quot;},{duration:&quot;normal&quot;,complete:function(){jQuery(this).css(&quot;backgroundColor&quot;,&quot;&quot;)}});wp_drag_and_drop();tb_init(&quot;a.thickbox, area.thickbox, input.thickbox&quot;)}function wp_add_checked_items_to_menu(b){var a=jQuery(b).siblings(&quot;.list-wrap&quot;).find(&quot;:checked&quot;);if(0==a.length){return false}jQuery(a).each(function(){var h=jQuery(this).parent().siblings(&quot;.menu-item-type&quot;).val();if(&quot;custom&quot;==h){var e=jQuery(this).parent().siblings(&quot;.menu-item-attr-title&quot;).val();var f=jQuery(this).parent().siblings(&quot;.menu-item-target&quot;).val();var g=jQuery(this).parent().siblings(&quot;.menu-item-classes&quot;).val();var j=jQuery(this).parent().siblings(&quot;.menu-item-xfn&quot;).val()}else{var e=&quot;&quot;;var f=&quot;_self&quot;;var g=&quot;&quot;;var j=&quot;&quot;}var c=jQuery(this).parent().siblings(&quot;.menu-item-db-id&quot;).val();var k=jQuery(this).parent().siblings(&quot;.menu-item-object-id&quot;).val();var n=jQuery(this).parent().siblings(&quot;.menu-item-append&quot;).val();var l=jQuery(this).parent().siblings(&quot;.menu-item-parent-id&quot;).val();var d=jQuery(this).parent().siblings(&quot;.menu-item-title&quot;).val();var m=jQuery(this).parent().siblings(&quot;.menu-item-url&quot;).val();var i=jQuery(this).parent().siblings(&quot;.menu-item-description&quot;).val();if(undefined==i){i=&quot;&quot;}wp_add_item_to_menu(c,k,h,n,l,d,m,i,e,f,g,j);jQuery(this).attr(&quot;checked&quot;,false)})}function wp_drag_and_drop(){jQuery(&quot;.menu li&quot;).each(function(){if(!jQuery(this).children(&quot;.dropzone&quot;).attr(&quot;class&quot;)){jQuery(this).prepend('&lt;div class=&quot;dropzone&quot;&gt;&lt;/div&gt;')}});jQuery(&quot;.menu li&quot;).draggable({handle:&quot; &gt; dl&quot;,opacity:0.8,addClasses:false,helper:&quot;clone&quot;,zIndex:100});jQuery(&quot;.menu li dl, .menu li .dropzone&quot;).droppable({accept:&quot;.menu li&quot;,tolerance:&quot;pointer&quot;,drop:function(f,d){var a=jQuery(this).parent();var g=!jQuery(this).hasClass(&quot;dropzone&quot;);if(g&amp;&amp;a.children(&quot;ul&quot;).length==0){a.append('&lt;ul class=&quot;sub-menu&quot; /&gt;')}if(g){a.children(&quot;ul&quot;).append(d.draggable)}else{a.before(d.draggable)}a.find(&quot;dl,.dropzone&quot;).css({backgroundColor:&quot;&quot;,borderColor:&quot;&quot;});var c=d.draggable.attr(&quot;value&quot;);var b=a.attr(&quot;value&quot;);a.find(&quot;#menu-&quot;+c).find(&quot;#parent&quot;+c).val(b);jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;)},over:function(){if(jQuery(this).attr(&quot;class&quot;)==&quot;dropzone ui-droppable&quot;){jQuery(this).parent().find(&quot;div:first&quot;).css(&quot;background&quot;,&quot;none&quot;).css(&quot;height&quot;,&quot;50px&quot;)}else{if(jQuery(this).attr(&quot;class&quot;)==&quot;ui-droppable&quot;){jQuery(this).parent().find(&quot;dt:first&quot;).css(&quot;background&quot;,&quot;#d8d8d8&quot;)}else{}}var a=jQuery(this).parent().attr(&quot;id&quot;)},out:function(){jQuery(this).parent().find(&quot;dt&quot;).removeAttr(&quot;style&quot;);jQuery(this).parent().find(&quot;div:first&quot;).removeAttr(&quot;style&quot;);jQuery(this).filter(&quot;.dropzone&quot;).css({borderColor:&quot;&quot;})}})}function wp_update_post_data(){var a=0;jQuery(&quot;.menu li&quot;).each(function(c){c=c+1;var b=jQuery(this).attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;value&quot;,c);jQuery(this).attr(&quot;id&quot;,&quot;menu-item&quot;+c);jQuery(this).attr(&quot;value&quot;,c);jQuery(this).find(&quot;#menu-item-db-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-db-id&quot;+c);jQuery(this).find(&quot;#menu-item-object-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-object-id&quot;+c);jQuery(this).find(&quot;#menu-item-append&quot;+b).attr(&quot;id&quot;,&quot;menu-item-append&quot;+c);jQuery(this).find(&quot;#menu-item-type&quot;+b).attr(&quot;id&quot;,&quot;menu-item-type&quot;+c);jQuery(this).find(&quot;#menu-item-position&quot;+b).attr(&quot;id&quot;,&quot;menu-item-position&quot;+c);var d=jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).parent().parent().parent().attr(&quot;value&quot;);jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;id&quot;,&quot;menu-item-parent-id&quot;+c);if(d){}else{d=0}jQuery(this).find(&quot;#menu-item-parent-id&quot;+b).attr(&quot;value&quot;,d);jQuery(this).find(&quot;#menu-item-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-title&quot;+c);jQuery(this).find(&quot;#menu-item-url&quot;+b).attr(&quot;id&quot;,&quot;menu-item-url&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-classes&quot;+b).attr(&quot;id&quot;,&quot;menu-item-classes&quot;+c);jQuery(this).find(&quot;#menu-item-xfn&quot;+b).attr(&quot;id&quot;,&quot;menu-item-xfn&quot;+c);jQuery(this).find(&quot;#menu-item-description&quot;+b).attr(&quot;id&quot;,&quot;menu-item-description&quot;+c);jQuery(this).find(&quot;#menu-item-attr-title&quot;+b).attr(&quot;id&quot;,&quot;menu-item-attr-title&quot;+c);jQuery(this).find(&quot;#menu-item-target&quot;+b).attr(&quot;id&quot;,&quot;menu-item-target&quot;+c);jQuery(&quot;#li-count&quot;).attr(&quot;value&quot;,c)})}function wp_get_unique_menu_id(){var d=jQuery(&quot;.menu li&quot;).length+1;var e=d;var a=0;try{var f=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}while(a==0){e=e+1;try{var b=document.getElementById(&quot;menu-&quot;+e.toString()).value}catch(c){a=1}}return e}function wp_get_hidden_inputs(j,a,k,f,n,l,b,m,h,e,d,c,i){var g=&quot;&quot;;g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-db-id[]&quot; id=&quot;menu-item-db-id'+j+'&quot; value=&quot;'+a+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-object-id[]&quot; id=&quot;menu-item-object-id'+j+'&quot; value=&quot;'+k+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-type[]&quot; id=&quot;menu-item-type'+j+'&quot; value=&quot;'+f+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-append[]&quot; id=&quot;menu-item-append'+j+'&quot; value=&quot;'+n+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-parent-id[]&quot; id=&quot;menu-item-parent-id'+j+'&quot; value=&quot;'+l+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-position[]&quot; id=&quot;menu-item-position'+j+'&quot; value=&quot;'+j+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-title[]&quot; id=&quot;menu-item-title'+j+'&quot; value=&quot;'+b+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-attr-title[]&quot; id=&quot;menu-item-attr-title'+j+'&quot; value=&quot;'+e+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-url[]&quot; id=&quot;menu-item-url'+j+'&quot; value=&quot;'+m+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-target[]&quot; id=&quot;menu-item-target'+j+'&quot; value=&quot;'+d+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-description[]&quot; id=&quot;menu-item-description'+j+'&quot; value=&quot;'+h+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-classes[]&quot; id=&quot;menu-item-classes'+j+'&quot; value=&quot;'+c+'&quot; /&gt;';g+='&lt;input type=&quot;hidden&quot; name=&quot;menu-item-xfn[]&quot; id=&quot;menu-item-xfn'+j+'&quot; value=&quot;'+i+'&quot; /&gt;';return g}jQuery(document).ready(function(a){wp_drag_and_drop();a(&quot;#update-nav-menu .deletion&quot;).click(function(){if(confirm(navMenuL10n.warnDelete)){return true}else{return false}});a(&quot;#save_menu&quot;).click(function(){return wp_update_post_data()});a(&quot;#create-menu-name&quot;).keypress(function(b){if(13==b.keyCode){a(&quot;#create-menu-button&quot;).click();return false}});a(&quot;#custom-menu-item-url, #custom-menu-item-name&quot;).keypress(function(b){if(13==b.keyCode){a(&quot;#add-custom-links a.button&quot;).click();return false}}).focus(function(){if(a(this).val()==a(this).attr(&quot;defaultValue&quot;)&amp;&amp;a(this).attr(&quot;id&quot;)!=&quot;custom-menu-item-url&quot;){a(this).val(&quot;&quot;)}}).blur(function(){if(a(this).val()==&quot;&quot;){a(this).val(a(this).attr(&quot;defaultValue&quot;))}});a(&quot;#create-menu-name&quot;).focus(function(){if(a(this).val()==a(this).attr(&quot;defaultValue&quot;)){a(this).val(&quot;&quot;)}}).blur(function(){if(a(this).val()==&quot;&quot;){a(this).val(a(this).attr(&quot;defaultValue&quot;))}});a(&quot;.if-js-closed&quot;).removeClass(&quot;if-js-closed&quot;).addClass(&quot;closed&quot;);postboxes.add_postbox_toggles(&quot;menus&quot;);a(&quot;.quick-search&quot;).click(function(){a(this).attr(&quot;value&quot;,&quot;&quot;)});a(&quot;.quick-search-submit&quot;).click(function(){a(this).siblings(&quot;.quick-search&quot;).search()});a(&quot;#menu-container .item-edit&quot;).click(function(){return wp_edit_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#menu-container .item-delete&quot;).live(&quot;click&quot;,function(b){return wp_remove_menu_item(a(this).attr(&quot;value&quot;))});a(&quot;#update-menu-item&quot;).click(function(){wp_update_menu_item();return tb_remove()});a(&quot;#cancel-save&quot;).click(function(){return tb_remove()});a(&quot;.show-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;block&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.hide-all&quot;).show()});a(&quot;.hide-all&quot;).click(function(b){jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).parent().siblings(&quot;.list-wrap&quot;).find(&quot;li&quot;).css(&quot;display&quot;,&quot;none&quot;);jQuery(b.currentTarget).hide();jQuery(b.currentTarget).siblings(&quot;.show-all&quot;).show()});a(&quot;.add-to-menu&quot;).click(function(b){return wp_add_checked_items_to_menu(b.currentTarget)});a(&quot;#add-custom-links .add-to-menu a&quot;).click(function(b){if(a(&quot;#custom-menu-item-url&quot;).val()==a(&quot;#custom-menu-item-url&quot;).attr(&quot;defaultValue&quot;)){return}wp_add_item_to_menu(0,&quot;&quot;,&quot;custom&quot;,navMenuL10n.custom,0,a(&quot;#custom-menu-item-name&quot;).val(),a(&quot;#custom-menu-item-url&quot;).val(),&quot;&quot;,&quot;&quot;,&quot;_self&quot;,&quot;&quot;,&quot;&quot;);a(&quot;#custom-menu-item-name&quot;).val(a(&quot;#custom-menu-item-name&quot;).attr(&quot;defaultValue&quot;));a(&quot;#custom-menu-item-url&quot;).val(a(&quot;#custom-menu-item-url&quot;).attr(&quot;defaultValue&quot;)).focus()})});
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (13741 => 13742)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php        2010-03-17 20:03:02 UTC (rev 13741)
+++ trunk/wp-includes/script-loader.php        2010-03-17 20:44:59 UTC (rev 13742)
</span><span class="lines">@@ -397,7 +397,7 @@
</span><span class="cx">                 ) );
</span><span class="cx"> 
</span><span class="cx">                 // Custom Navigation
</span><del>-                $scripts-&gt;add( 'nav-menu', &quot;/wp-admin/js/nav-menu$suffix.js&quot;, false, '20100317' );
</del><ins>+                $scripts-&gt;add( 'nav-menu', &quot;/wp-admin/js/nav-menu$suffix.js&quot;, false, '20100317b' );
</ins><span class="cx">                 $scripts-&gt;localize( 'nav-menu', 'navMenuL10n', array(
</span><span class="cx">                         'custom' =&gt; _x('Custom', 'menu nav item type'),
</span><span class="cx">                         'page' =&gt; _x('Page', 'menu nav item type'),
</span></span></pre>
</div>
</div>

</body>
</html>