Move Dashboard's news to jQuery. see #3824

git-svn-id: http://svn.automattic.com/wordpress/trunk@5580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-28 20:46:03 +00:00
parent 4b9d4641be
commit 16dab6f6db
1 changed files with 5 additions and 6 deletions

View File

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