Changeset 9103 for trunk/wp-admin/index.php
- Timestamp:
- 10/08/2008 11:32:34 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/index.php
r8691 r9103 15 15 wp_dashboard_setup(); 16 16 17 /** 18 * Display dashboard widget custom JavaScript. 19 * 20 * @since unknown 21 */ 22 function index_js() { 23 ?> 24 <script type="text/javascript"> 25 jQuery(function($) { 26 var ajaxWidgets = { 27 dashboard_incoming_links: 'incominglinks', 28 dashboard_primary: 'devnews', 29 dashboard_secondary: 'planetnews', 30 dashboard_plugins: 'plugins' 31 }; 32 $.each( ajaxWidgets, function(i,a) { 33 var e = jQuery('#' + i + ' div.dashboard-widget-content').not('.dashboard-widget-control').find('.widget-loading'); 34 if ( e.size() ) { e.parent().load('index-extra.php?jax=' + a); } 35 } ); 36 }); 37 </script> 38 <?php 39 } 40 add_action( 'admin_head', 'index_js' ); 41 42 wp_enqueue_script( 'jquery' ); 17 wp_enqueue_script( 'dashboard' ); 43 18 wp_enqueue_script( 'plugin-install' ); 44 19 wp_admin_css( 'dashboard' ); … … 53 28 ?> 54 29 30 <div id="edit-settings-wrap" class="hidden"> 31 <h5><?php _e('Show on screen') ?></h5> 32 <form id="adv-settings" action="" method="get"> 33 <div class="metabox-prefs"> 34 <?php meta_box_prefs('dashboard') ?> 35 <br class="clear" /> 36 </div></form> 37 </div> 38 55 39 <div class="wrap"> 56 40 <div id="dashboard-widgets-wrap">
Note: See TracChangeset
for help on using the changeset viewer.