From ce5546cdd065884db31f13779c31f7e3ca1b18c7 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Date: Thu, 17 Mar 2016 09:19:50 +0000
Subject: [PATCH] [SIGNED-OFF] Bug 16000: Simplify JS code
Content-Type: text/plain; charset="utf-8"

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
---
 .../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 76c0fa9..58f8b00 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