From 45c9b2b94ea941080e2be86c0cfe82b171720d04 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Sep 2016 11:04:23 +0100 Subject: [PATCH] Bug 17282: Remove use of onclick --- koha-tmpl/intranet-tmpl/prog/en/includes/chart.inc | 2 +- .../intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/chart.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/chart.inc index 1d69a6f..c0fa2a6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/chart.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/chart.inc @@ -37,7 +37,7 @@
Column [% column %] - + Delete diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 0854930..4a917ea 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -877,6 +877,10 @@ canned reports and writing custom SQL reports.

$('.chart-column-delete').remove(); } + $(".chart-column-delete").on('click', function(e){ + e.preventDefault(); + removeColumn('column_' + $(this).data('column')); + }) $('#download-chart').click(function() { var svg = '' + $('#chart svg').html() + ''; -- 2.7.4