diff options
Diffstat (limited to '')
-rw-r--r-- | inc/html.inc.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index c8cfbaf..117d61d 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
@@ -99,21 +99,18 @@ function html_end() { | |||
99 | EOT; | 99 | EOT; |
100 | 100 | ||
101 | if ($CONFIG['graph_type'] == 'canvas') { | 101 | if ($CONFIG['graph_type'] == 'canvas') { |
102 | echo <<<EOT | ||
103 | <script type="text/javascript" src="{$html_weburl}js/CGP.js"></script> | ||
104 | |||
105 | EOT; | ||
106 | if ($CONFIG['rrd_fetch_method'] == 'async') { | 102 | if ($CONFIG['rrd_fetch_method'] == 'async') { |
107 | echo <<<EOT | 103 | $js_async = 'true'; |
108 | <script type="text/javascript" src="{$html_weburl}js/CGP-async.js"></script> | ||
109 | |||
110 | EOT; | ||
111 | } else { | 104 | } else { |
105 | $js_async = 'false'; | ||
106 | } | ||
112 | echo <<<EOT | 107 | echo <<<EOT |
113 | <script type="text/javascript" src="{$html_weburl}js/CGP-sync.js"></script> | 108 | <script src="{$html_weburl}js/CGP.js"></script> |
109 | <script> | ||
110 | CGP.drawAll($js_async); | ||
111 | </script> | ||
114 | 112 | ||
115 | EOT; | 113 | EOT; |
116 | } | ||
117 | } | 114 | } |
118 | 115 | ||
119 | echo <<<EOT | 116 | echo <<<EOT |