Move Dashboard's news to jQuery. see #3824

git-svn-id: https://develop.svn.wordpress.org/trunk@5580 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
rob1n 2007-05-28 20:46:03 +00:00
parent 6b9af86a5c
commit 0f5fa587a2
1 changed files with 5 additions and 6 deletions

View File

@ -4,12 +4,11 @@ require_once('admin.php');
function index_js() { function index_js() {
?> ?>
<script type="text/javascript"> <script type="text/javascript">
Event.observe( window, 'load', dashboard_init, false ); jQuery(function() {
function dashboard_init() { jQuery('#incominglinks').load('index-extra.php?jax=incominglinks');
var update1 = new Ajax.Updater( 'incominglinks', 'index-extra.php?jax=incominglinks' ); jQuery('#devnews').load('index-extra.php?jax=devnews');
var update2 = new Ajax.Updater( 'devnews', 'index-extra.php?jax=devnews' ); jQuery('#planetnews').load('index-extra.php?jax=planetnews');
var update3 = new Ajax.Updater( 'planetnews', 'index-extra.php?jax=planetnews' ); });
}
</script> </script>
<?php <?php
} }