summaryrefslogtreecommitdiffstats
path: root/usr/local/www/javascript/index
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-09-15 03:21:17 +0000
committerBill Marquette <billm@pfsense.org>2005-09-15 03:21:17 +0000
commit7979a809331c706f621fd4d6d40b667a81fa806a (patch)
treec57b2a29174fddef03e48b50cc56b25700d3eb78 /usr/local/www/javascript/index
parent1804023da9ad604cb57af7e934352ef84e127736 (diff)
downloadpfsense-7979a809331c706f621fd4d6d40b667a81fa806a.zip
pfsense-7979a809331c706f621fd4d6d40b667a81fa806a.tar.gz
Make temp monitor really work - make a little more modular too
Diffstat (limited to 'usr/local/www/javascript/index')
-rw-r--r--usr/local/www/javascript/index/sajax.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/local/www/javascript/index/sajax.js b/usr/local/www/javascript/index/sajax.js
index 036b38d..9067b3f 100644
--- a/usr/local/www/javascript/index/sajax.js
+++ b/usr/local/www/javascript/index/sajax.js
@@ -27,11 +27,10 @@ function updateCPU(x)
function updateTemp(x)
{
- if(document.getElementById("tempmeter")) {
- document.getElementById("tempmeter").value = x + '%';
-
- document.getElementById("tempwidtha").style.width = x + 'px';
- document.getElementById("tempwidthb").style.width = (100 - x) + 'px';
+ if(document.getElementById("tempmeter") != null) {
+ document.getElementById("tempmeter").value = x + '%';
+ document.getElementById("tempwidtha").style.width = x + 'px';
+ document.getElementById("tempwidthb").style.width = (100 - x) + 'px';
}
}
OpenPOWER on IntegriCloud