diff options
author | jim-p <jimp@pfsense.org> | 2010-08-17 12:59:31 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-17 13:00:15 -0400 |
commit | 15c5b5d63710f28284a974902d0771ceefbb5e86 (patch) | |
tree | 23612fb5f20f94de5a99cafcfb68ea8f1c3c63b9 | |
parent | a0bd34173cc158b010a4dc7be988f823ca7c180b (diff) | |
download | pfsense-15c5b5d63710f28284a974902d0771ceefbb5e86.zip pfsense-15c5b5d63710f28284a974902d0771ceefbb5e86.tar.gz |
Fix ajax updating of fields when the CPU graph widget is not in use.
-rw-r--r-- | usr/local/www/javascript/index/ajax.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/javascript/index/ajax.js b/usr/local/www/javascript/index/ajax.js index 5eaa8c5..3259955 100644 --- a/usr/local/www/javascript/index/ajax.js +++ b/usr/local/www/javascript/index/ajax.js @@ -56,10 +56,10 @@ function updateCPU(x) { $("cpuwidtha").style.width = x + 'px'; if($('cpuwidthb')) $("cpuwidthb").style.width = (100 - x) + 'px'; - /* Load CPU Graph widget if enabled */ - if(typeof GraphValue == 'function') { - GraphValue(graph[0], x); - } + /* Load CPU Graph widget if enabled */ + if(widgetActive('cpu_graphs')) { + GraphValue(graph[0], x); + } } function updateTemp(x) { |