summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Coque <vcoque@gmail.com>2011-09-21 23:17:56 -0300
committerVinicius Coque <vcoque@gmail.com>2011-09-21 23:17:56 -0300
commitf6771ddf5c53f71972dd2b0348f02a05e35c5221 (patch)
treeca492cc04895a78acccbbbad8f879ab5e99b05a0
parent7fe6d08ed349467b8513d3e78d0cea93b71716e0 (diff)
downloadpfsense-f6771ddf5c53f71972dd2b0348f02a05e35c5221.zip
pfsense-f6771ddf5c53f71972dd2b0348f02a05e35c5221.tar.gz
Convert prototype code to jQuery
-rw-r--r--usr/local/www/widgets/widgets/system_information.widget.php12
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>
OpenPOWER on IntegriCloud