summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-01-11 11:48:11 -0500
committerjim-p <jimp@pfsense.org>2012-01-11 11:48:11 -0500
commit3a94345ceaa08ca1e1d8c5d3393f51f32d66ade9 (patch)
treed1c7437cef87a1ce0af2e3ef16fddfea5f7f791f /usr/local/www/javascript
parentc6678f31b0e48b310bd49e392b6977a77c174e10 (diff)
downloadpfsense-3a94345ceaa08ca1e1d8c5d3393f51f32d66ade9.zip
pfsense-3a94345ceaa08ca1e1d8c5d3393f51f32d66ade9.tar.gz
Change system info widget fields from <input> to <span> so they don't appear editable, and we aren't bound by their width constraints. (One long one was messing up table width).
Diffstat (limited to 'usr/local/www/javascript')
-rw-r--r--usr/local/www/javascript/index/ajax.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js
index bafdbff..fffb5c0 100644
--- a/usr/local/www/javascript/index/ajax.js
+++ b/usr/local/www/javascript/index/ajax.js
@@ -45,7 +45,7 @@ function stats(x) {
function updateMemory(x) {
if(jQuery('#memusagemeter'))
- jQuery("#memusagemeter").val(x + '%');
+ jQuery("#memusagemeter").html(x + '%');
if(jQuery('#memwidtha'))
jQuery("#memwidtha").css('width',x + 'px');
if(jQuery('#memwidthb'))
@@ -54,7 +54,7 @@ function updateMemory(x) {
function updateCPU(x) {
if(jQuery('#cpumeter'))
- jQuery("#cpumeter").val(x + '%');
+ jQuery("#cpumeter").html(x + '%');
if(jQuery('#cpuwidtha'))
jQuery("#cpuwidtha").css('width',x + 'px');
if(jQuery('#cpuwidthb'))
@@ -67,7 +67,7 @@ function updateCPU(x) {
function updateTemp(x) {
if(jQuery("#tempmeter"))
- jQuery("#tempmeter").val(x + '\u00B0' + 'C');
+ jQuery("#tempmeter").html(x + '\u00B0' + 'C');
if(jQuery('#tempwidtha'))
jQuery("#tempwidtha").css('width',x + 'px');
if(jQuery('#tempwidthb'))
@@ -81,12 +81,12 @@ function updateDateTime(x) {
function updateUptime(x) {
if(jQuery('#uptime'))
- jQuery("#uptime").val(x);
+ jQuery("#uptime").html(x);
}
function updateState(x) {
if(jQuery('#pfstate'))
- jQuery("#pfstate").val(x);
+ jQuery("#pfstate").html(x);
}
function updateGatewayStats(x){
OpenPOWER on IntegriCloud