Changeset 13263
- Timestamp:
- 02/20/2010 11:35:05 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-navigation.php
r13262 r13263 14 14 15 15 wp_admin_css( 'custom-navigation' ); 16 wp_enqueue_script( ' custom-navigation-jquery' );16 wp_enqueue_script( 'jquery' ); 17 17 wp_enqueue_script( 'custom-navigation-ui-custom' ); 18 18 wp_enqueue_script( 'custom-navigation-dynamic-functions' ); 19 19 wp_enqueue_script( 'custom-navigation-default-items' ); 20 wp_enqueue_script( ' custom-navigation-autocomplete' );20 wp_enqueue_script( 'jquery-autocomplete' ); 21 21 wp_enqueue_script( 'custom-navigation-php-functions' ); 22 22 wp_enqueue_script( 'jquery-ui-dialog' ); … … 28 28 29 29 function wp_custom_nav_reset() { 30 31 global $wpdb;32 33 $table_name = $wpdb->prefix . "custom_nav_records";34 //DROP existing menu records35 $wpdb->query("DELETE FROM ".$table_name);36 37 $table_name_menus = $wpdb->prefix . "custom_nav_menus";38 //DELETE existing menus39 $wpdb->query("DELETE FROM ".$table_name_menus);40 41 30 wp_custom_navigation_setup(true); 42 31 … … 411 400 412 401 <script> 413 $(document).ready(function(){402 jQuery(document).ready(function(){ 414 403 415 404 //GET PHP pages … … 417 406 418 407 //Set autocomplete 419 $("#page-search").autocomplete(dataposts);408 jQuery("#page-search").autocomplete(dataposts); 420 409 421 410 //Handle autocomplete result 422 $("#page-search").result(function(event, data, formatted) {423 $('#existing-pages').css('display','block');424 $("#existing-pages dt:contains('" + data + "')").css("display", "block");411 jQuery("#page-search").result(function(event, data, formatted) { 412 jQuery('#existing-pages').css('display','block'); 413 jQuery("#existing-pages dt:contains('" + data + "')").css("display", "block"); 425 414 426 $('#show-pages').hide();427 $('#hide-pages').show();415 jQuery('#show-pages').hide(); 416 jQuery('#hide-pages').show(); 428 417 429 418 }); 430 $('#existing-pages').css('display','none');419 jQuery('#existing-pages').css('display','none'); 431 420 }); 432 421 </script> … … 500 489 501 490 <script> 502 $(document).ready(function(){491 jQuery(document).ready(function(){ 503 492 504 493 //GET PHP categories … … 506 495 507 496 //Set autocomplete 508 $("#cat-search").autocomplete(datacats);497 jQuery("#cat-search").autocomplete(datacats); 509 498 510 499 //Handle autocomplete result 511 $("#cat-search").result(function(event, data, formatted) {512 $('#existing-categories').css('display','block');513 $("#existing-categories dt:contains('" + data + "')").css("display", "block");500 jQuery("#cat-search").result(function(event, data, formatted) { 501 jQuery('#existing-categories').css('display','block'); 502 jQuery("#existing-categories dt:contains('" + data + "')").css("display", "block"); 514 503 515 $('#show-cats').hide();516 $('#hide-cats').show();504 jQuery('#show-cats').hide(); 505 jQuery('#hide-cats').show(); 517 506 518 507 }); 519 $('#existing-categories').css('display','none');508 jQuery('#existing-categories').css('display','none'); 520 509 521 510 }); -
trunk/wp-includes/script-loader.php
r13257 r13263 164 164 $scripts->add( 'jquery-table-hotkeys', "/wp-includes/js/jquery/jquery.table-hotkeys$suffix.js", array('jquery', 'jquery-hotkeys'), '20090102' ); 165 165 $scripts->add_data( 'jquery-table-hotkeys', 'group', 1 ); 166 167 $scripts->add( 'jquery-autocomplete', "/wp-includes/js/jquery/autocomplete$suffix.js", array('jquery'), '1.1' ); 168 $scripts->add_data( 'jquery-autocomplete', 'group', 1 ); 166 169 167 170 $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20100108'); … … 398 401 //Custom Navigation 399 402 400 $scripts->add( 'custom-navigation-jquery', '/wp-admin/js/custom-navigation-custom-jquery-1.3.2.js', false, '1.3.2' ); 401 402 $scripts->add( 'custom-navigation-ui-custom', '/wp-admin/js/custom-navigation-custom-jquery-ui-1.7.2.js', array('custom-navigation-jquery'), '1.7.2' ); 403 $scripts->add( 'custom-navigation-ui-custom', '/wp-admin/js/custom-navigation-custom-jquery-ui-1.7.2.js', array('jquery'), '1.7.2' ); 403 404 $scripts->add_data( 'custom-navigation-ui-custom', 'group', 1 ); 404 405 $scripts->add( 'custom-navigation-autocomplete', '/wp-admin/js/custom-navigation-custom-jquery-autocomplete.js', array('custom-navigation-jquery'), '1.0.0' );406 $scripts->add_data( 'custom-navigation-autocomplete', 'group', 1 );407 405 408 406 $scripts->add( 'custom-navigation-default-items', '/wp-admin/js/custom-navigation-default-items.js', false, '1.0.0' );
Note: See TracChangeset
for help on using the changeset viewer.