diff options
author | Vinicius Coque <vcoque@gmail.com> | 2011-09-21 23:17:56 -0300 |
---|---|---|
committer | Vinicius Coque <vinicius.coque@bluepex.com> | 2011-09-27 19:31:19 -0300 |
commit | f910c29e93fc2144c0c9403d5a60088f7a6b6ebf (patch) | |
tree | 6b757243699e5c63a7f9bb4df2fe48a47b01609d /usr | |
parent | b1678e2d72a59dc066eb09c24240877fe4553f58 (diff) | |
download | pfsense-f910c29e93fc2144c0c9403d5a60088f7a6b6ebf.zip pfsense-f910c29e93fc2144c0c9403d5a60088f7a6b6ebf.tar.gz |
Convert prototype code to jQuery
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/widgets/widgets/system_information.widget.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/widgets/widgets/system_information.widget.php b/usr/local/www/widgets/widgets/system_information.widget.php index 2f471df..29fc2b4 100644 --- a/usr/local/www/widgets/widgets/system_information.widget.php +++ b/usr/local/www/widgets/widgets/system_information.widget.php @@ -257,19 +257,19 @@ $curcfg = $config['system']['firmware']; scroll(0,0); var url = "/widgets/widgets/system_information.widget.php"; var pars = 'getupdatestatus=yes'; - var myAjax = new Ajax.Request( + jQuery.ajax( url, { - method: 'get', - parameters: pars, - onComplete: activitycallback + type: 'get', + data: pars, + complete: activitycallback }); } function activitycallback(transport) { - $('updatestatus').innerHTML = transport.responseText; + jQuery('#updatestatus').html(transport.responseText); } function swapuname() { - $('uname').innerHTML="<?php echo php_uname("a"); ?>"; + jQuery('#uname').html("<?php echo php_uname("a"); ?>"); } setTimeout('getstatus()', 4000); </script> |