misc: adapt "display as PNG" to find canvas in new HTML tags (#36006)
This commit is contained in:
parent
3c0e2bab16
commit
6618a50ef7
|
@ -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 }});
|
||||
|
|
Loading…
Reference in New Issue