From 17fac5ccc2e4adf52dd131f77b65623af9b8b4c2 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 @@
$('.chart-column-delete').remove();
}
+ $(".chart-column-delete").on('click', function(e){
+ e.preventDefault();
+ removeColumn('column_' + $(this).data('column'));
+ })
$('#download-chart').click(function() {
var svg = '';
--
2.7.4