From a75106f8aa69a81e3c969f1647a7d937d8474391 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 Signed-off-by: Owen Leonard Signed-off-by: Christopher Brannon --- .../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) %] -- 1.7.10.4