Changeset 13263 for trunk/wp-admin/custom-navigation.php
- Timestamp:
- 02/20/2010 11:35:05 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/custom-navigation.php (modified) (6 diffs)
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 });
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)