From c678525b47790a1b367555bb337e7491efc21efc 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 Signed-off-by: Kyle M Hall --- .../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 503dae32af..6125814699 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 @@ -156,7 +156,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?"))){ @@ -166,7 +166,6 @@ $(document).ready(function(){ return false; } }); -[% END %] [% IF (create || editsql || save) %] $("#select_group").change(function() { -- 2.39.5