Projet

Général

Profil

0001-misc-adapt-display-as-PNG-to-find-canvas-in-new-HTML.patch

Frédéric Péters, 11 septembre 2019 11:40

Télécharger (1,05 ko)

Voir les différences:

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(-)
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
-