0001-misc-adapt-display-as-PNG-to-find-canvas-in-new-HTML.patch
bijoe/templates/bijoe/cube_chart.html | ||
---|---|---|
17 | 17 |
draw_barchart(canvas, drilldown, [measure], measure.name, data); |
18 | 18 |
/* Allow getting a PNG without using 'Save image as' */ |
19 | 19 |
$(".bijoe-png-button").on('click', function() { |
20 |
this.href = toDataURL($(this).next("canvas")[0], "graph.png"); |
|
20 |
this.href = toDataURL($(this).next().find("canvas")[0], "graph.png");
|
|
21 | 21 |
}) |
22 | 22 |
} |
23 | 23 |
}, 500 * {{ forloop.counter }}); |
24 |
- |