From fb2bcc05c11fbcd3ca2a0dce1f660836d27f6f69 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 21 Aug 2013 10:23:11 +0200 Subject: [PATCH] Bug 3134: highlight all selected reports when confirming deletion of multiple reports This patch adds the same behavior when deleting 1 or more reports. When checkboxes are checked and the "delete selected" button is pressed, checked lines are hightlighted in red. Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- .../prog/en/modules/reports/guided_reports_start.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 60bbe28424..c16013e181 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 @@ -129,7 +129,13 @@ $(document).ready(function(){ alert(_("You must select one or more reports to delete")); return false; } - return confirm(_("Are you sure you want to delete the selected reports?")); + $(checkedItems).parents('tr').addClass("warn"); + if( confirm(_("Are you sure you want to delete the selected reports?")) ) { + return true; + } else { + $(checkedItems).parents('tr').removeClass("warn"); + return false; + } }); [% END %] -- 2.39.5