Make WordPress Core


Ignore:
Timestamp:
05/28/2007 08:46:03 PM (17 years ago)
Author:
rob1n
Message:

Move Dashboard's news to jQuery. see #3824

File:
1 edited

Legend:

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

    r5563 r5580  
    55?>
    66<script type="text/javascript">
    7 Event.observe( window, 'load', dashboard_init, false );
    8 function dashboard_init() {
    9     var update1 = new Ajax.Updater( 'incominglinks', 'index-extra.php?jax=incominglinks' );
    10     var update2 = new Ajax.Updater( 'devnews', 'index-extra.php?jax=devnews' );
    11     var update3 = new Ajax.Updater( 'planetnews', 'index-extra.php?jax=planetnews'  );
    12 }
     7    jQuery(function() {
     8        jQuery('#incominglinks').load('index-extra.php?jax=incominglinks');
     9        jQuery('#devnews').load('index-extra.php?jax=devnews');
     10        jQuery('#planetnews').load('index-extra.php?jax=planetnews');
     11    });
    1312</script>
    1413<?php
Note: See TracChangeset for help on using the changeset viewer.