summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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