diff options
author | Bill Marquette <billm@pfsense.org> | 2005-09-15 03:21:17 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-09-15 03:21:17 +0000 |
commit | 7979a809331c706f621fd4d6d40b667a81fa806a (patch) | |
tree | c57b2a29174fddef03e48b50cc56b25700d3eb78 /usr/local/www/javascript/index | |
parent | 1804023da9ad604cb57af7e934352ef84e127736 (diff) | |
download | pfsense-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.js | 9 |
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'; } } |