From 6618a50ef77f7612bd1f648ef1348bd40387de74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 11 Sep 2019 11:39:58 +0200 Subject: [PATCH] misc: adapt "display as PNG" to find canvas in new HTML tags (#36006) --- bijoe/templates/bijoe/cube_chart.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bijoe/templates/bijoe/cube_chart.html b/bijoe/templates/bijoe/cube_chart.html index 85c2add..6b24eda 100644 --- a/bijoe/templates/bijoe/cube_chart.html +++ b/bijoe/templates/bijoe/cube_chart.html @@ -17,7 +17,7 @@ draw_barchart(canvas, drilldown, [measure], measure.name, data); /* Allow getting a PNG without using 'Save image as' */ $(".bijoe-png-button").on('click', function() { - this.href = toDataURL($(this).next("canvas")[0], "graph.png"); + this.href = toDataURL($(this).next().find("canvas")[0], "graph.png"); }) } }, 500 * {{ forloop.counter }});