From 0d8b5bd8ef5cfe5c23fe76601eac4bb7765064cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 31 Dec 2019 15:39:05 +0100 Subject: [PATCH] misc: remove PNG export button (#38731) It doesn't work anymore in Chrom* as top-frame navigation has been removed. --- bijoe/static/css/bijoe.css | 10 ---------- bijoe/templates/bijoe/cube_chart.html | 5 ----- 2 files changed, 15 deletions(-) diff --git a/bijoe/static/css/bijoe.css b/bijoe/static/css/bijoe.css index f340358..d0fc9dd 100644 --- a/bijoe/static/css/bijoe.css +++ b/bijoe/static/css/bijoe.css @@ -126,16 +126,6 @@ select { padding-bottom: 3px; } -/* chart representation */ - -.bijoe-png-button { - /* move PNG button slightly inside the chart frame */ - float: right; - bottom: -3em; - left: -2em; - position: relative; -} - /* misc */ canvas { box-sizing: border-box; diff --git a/bijoe/templates/bijoe/cube_chart.html b/bijoe/templates/bijoe/cube_chart.html index 6b24eda..2a8d9c5 100644 --- a/bijoe/templates/bijoe/cube_chart.html +++ b/bijoe/templates/bijoe/cube_chart.html @@ -2,7 +2,6 @@ {% for table in visualization %}

{{ table.table_title }}

- PNG
@@ -15,10 +14,6 @@ draw_piechart(canvas, drilldown, [measure], measure.name, data); } else { 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().find("canvas")[0], "graph.png"); - }) } }, 500 * {{ forloop.counter }}); });