aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc
diff options
context:
space:
mode:
authorVincent Brillault2013-12-16 22:28:33 +0100
committerPim van den Berg2014-01-12 14:35:02 +0100
commit775da40f8c247a97a01c3affd75511b4cbdb95b7 (patch)
tree1bf6a5fcaff9b6fec8268c6161a2fbf4fb7e79cb /inc
parentjsrrdgraph: CGP.js: split draw(id) into prepare_draw(id) and draw(id) (diff)
downloadapt-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 '')
-rw-r--r--inc/html.inc.php11
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
89EOT; 89EOT;
90 if ($CONFIG['rrd_fetch_method'] == 'async') {
91 echo <<<EOT
92<script type="text/javascript" src="{$CONFIG['weburl']}js/CGP-async.js"></script>
93
94EOT;
95 } else {
96 echo <<<EOT
97<script type="text/javascript" src="{$CONFIG['weburl']}js/CGP-sync.js"></script>
98
99EOT;
100 }
90 } 101 }
91 102
92echo <<<EOT 103echo <<<EOT