misc: remove PNG export button (#38731)
It doesn't work anymore in Chrom* as top-frame navigation has been removed.
This commit is contained in:
parent
f0f976c470
commit
0d8b5bd8ef
|
@ -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;
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
{% for table in visualization %}
|
||||
<h2>{{ table.table_title }}</h2>
|
||||
|
||||
<a href="#" target="none" class="button bijoe-png-button">PNG</a>
|
||||
<div class="graph">
|
||||
<canvas id="canvas-{{ forloop.counter }}"></canvas>
|
||||
</div>
|
||||
|
@ -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 }});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue