From ab2bcff2d4bba317317e9e8fae071c840add63c7 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 14 Dec 2014 01:07:14 +0100 Subject: 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 --- js/CGP.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'js') diff --git a/js/CGP.js b/js/CGP.js index 5ed729b..d726533 100644 --- a/js/CGP.js +++ b/js/CGP.js @@ -132,12 +132,6 @@ var CGP = (function() { var canvases = document.getElementsByClassName('rrd'); for (var i = 0; i < canvases.length; i++) { draw(canvases[i].id, async); - - if (document.getElementById(canvases[i].id + '-img')) { - document.getElementById(canvases[i].id).style.display = 'none'; - var dataURL = canvases[i].toDataURL(); - document.getElementById(canvases[i].id + '-img').src = dataURL; - } } } -- cgit v1.1