diff options
-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) { |