diff options
| author | Peter Wu | 2014-12-14 01:07:14 +0100 |
|---|---|---|
| committer | Pim van den Berg | 2014-12-14 15:58:35 +0100 |
| commit | ab2bcff2d4bba317317e9e8fae071c840add63c7 (patch) | |
| tree | 1c1d2bbc833c450f1e852a15f44b575253fbd2c1 /js | |
| parent | inc/html: include jquery from local source (diff) | |
| download | apt-panopticon_cgp-ab2bcff2d4bba317317e9e8fae071c840add63c7.zip apt-panopticon_cgp-ab2bcff2d4bba317317e9e8fae071c840add63c7.tar.gz apt-panopticon_cgp-ab2bcff2d4bba317317e9e8fae071c840add63c7.tar.bz2 apt-panopticon_cgp-ab2bcff2d4bba317317e9e8fae071c840add63c7.tar.xz | |
Revert "make detail page accessible when using "canvas" graph_type"
This reverts commit 82d88098f4203cf7402d4faf5ad100cada70efaf.
Breaks async rendering, see
https://github.com/pommi/CGP/issues/106#issuecomment-66896905
Diffstat (limited to 'js')
| -rw-r--r-- | js/CGP.js | 6 |
1 files changed, 0 insertions, 6 deletions
| @@ -132,12 +132,6 @@ var CGP = (function() { | |||
| 132 | var canvases = document.getElementsByClassName('rrd'); | 132 | var canvases = document.getElementsByClassName('rrd'); |
| 133 | for (var i = 0; i < canvases.length; i++) { | 133 | for (var i = 0; i < canvases.length; i++) { |
| 134 | draw(canvases[i].id, async); | 134 | draw(canvases[i].id, async); |
| 135 | |||
| 136 | if (document.getElementById(canvases[i].id + '-img')) { | ||
| 137 | document.getElementById(canvases[i].id).style.display = 'none'; | ||
| 138 | var dataURL = canvases[i].toDataURL(); | ||
| 139 | document.getElementById(canvases[i].id + '-img').src = dataURL; | ||
| 140 | } | ||
| 141 | } | 135 | } |
| 142 | } | 136 | } |
| 143 | 137 | ||
