diff options
| author | Vincent Brillault | 2013-12-16 22:28:33 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2014-01-12 14:35:02 +0100 |
| commit | 775da40f8c247a97a01c3affd75511b4cbdb95b7 (patch) | |
| tree | 1bf6a5fcaff9b6fec8268c6161a2fbf4fb7e79cb /inc/html.inc.php | |
| parent | jsrrdgraph: CGP.js: split draw(id) into prepare_draw(id) and draw(id) (diff) | |
| download | apt-panopticon_cgp-775da40f8c247a97a01c3affd75511b4cbdb95b7.zip apt-panopticon_cgp-775da40f8c247a97a01c3affd75511b4cbdb95b7.tar.gz apt-panopticon_cgp-775da40f8c247a97a01c3affd75511b4cbdb95b7.tar.bz2 apt-panopticon_cgp-775da40f8c247a97a01c3affd75511b4cbdb95b7.tar.xz | |
Add a configuration option for sync/async choice for the canvas graphs
Diffstat (limited to 'inc/html.inc.php')
| -rw-r--r-- | inc/html.inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/inc/html.inc.php b/inc/html.inc.php index 478045c..b07be8a 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php | |||
| @@ -87,6 +87,17 @@ EOT; | |||
| 87 | <script type="text/javascript" src="{$CONFIG['weburl']}js/CGP.js"></script> | 87 | <script type="text/javascript" src="{$CONFIG['weburl']}js/CGP.js"></script> |
| 88 | 88 | ||
| 89 | EOT; | 89 | EOT; |
| 90 | if ($CONFIG['rrd_fetch_method'] == 'async') { | ||
| 91 | echo <<<EOT | ||
| 92 | <script type="text/javascript" src="{$CONFIG['weburl']}js/CGP-async.js"></script> | ||
| 93 | |||
| 94 | EOT; | ||
| 95 | } else { | ||
| 96 | echo <<<EOT | ||
| 97 | <script type="text/javascript" src="{$CONFIG['weburl']}js/CGP-sync.js"></script> | ||
| 98 | |||
| 99 | EOT; | ||
| 100 | } | ||
| 90 | } | 101 | } |
| 91 | 102 | ||
| 92 | echo <<<EOT | 103 | echo <<<EOT |
