Make WordPress Core


Ignore:
Timestamp:
10/08/2008 11:32:34 PM (17 years ago)
Author:
ryan
Message:

Draggable dash, first cut. Props mdawaffe. see #7552

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/index.php

    r8691 r9103  
    1515wp_dashboard_setup();
    1616
    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' );
     17wp_enqueue_script( 'dashboard' );
    4318wp_enqueue_script( 'plugin-install' );
    4419wp_admin_css( 'dashboard' );
     
    5328?>
    5429
     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
    5539<div class="wrap">
    5640<div id="dashboard-widgets-wrap">
Note: See TracChangeset for help on using the changeset viewer.