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:
parent
4b9d4641be
commit
16dab6f6db
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue