From 8d559523a6b99a455070e9f2bfb921c1c4ae9ce2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 17 Mar 2016 09:19:50 +0000 Subject: [PATCH] Bug 16000: Simplify JS code Content-Type: text/plain; charset="utf-8" Signed-off-by: Owen Leonard --- .../intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt | 6 +----- 1 file changed, 1 insertion(+), 5 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 1b40d70..018b268 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 @@ -169,11 +169,7 @@ $(document).ready(function(){ $("#deletereport").on("click",function(){ $(".btn-group").removeClass("open"); - if(confirm(_("Are you sure you want to delete this saved report?"))){ - return true; - } else { - return false; - } + return confirm(_("Are you sure you want to delete this saved report?")); }); [% IF (create || editsql || save) %] -- 2.1.4