From f910c29e93fc2144c0c9403d5a60088f7a6b6ebf Mon Sep 17 00:00:00 2001 From: Vinicius Coque Date: Wed, 21 Sep 2011 23:17:56 -0300 Subject: Convert prototype code to jQuery --- usr/local/www/widgets/widgets/system_information.widget.php | 12 ++++++------ 1 file 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=""; + jQuery('#uname').html(""); } setTimeout('getstatus()', 4000); -- cgit v1.1