From 9bcbd3d62317fc264bad742172dce84a9eac191e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 9 Dec 2015 09:04:35 +0000 Subject: [PATCH] Bug 15321: No need to add the change trigger conditionally It will be applied if the button exists. Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 76c752e..7c7dd87 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 @@ -157,7 +157,7 @@ $(document).ready(function(){ $(this).select(); }); [% END %] -[% IF ( saved1 || showsql || execute || editsql || save_successful ) %] + $(".confirmdelete").click(function(){ $(this).parents('tr').attr("class","warn"); if(confirm(_("Are you sure you want to delete this saved report?"))){ @@ -167,7 +167,6 @@ $(document).ready(function(){ return false; } }); -[% END %] [% IF (create || editsql || save) %] $("#select_group").change(function() { -- 2.1.0