[Koha-patches] [PATCH] [SIGNED-OFF] Bug 10668 - Improve suggestion detail page - QA Followup

Srdjan srdjan at catalyst.net.nz
Mon Aug 5 04:02:59 CEST 2013


From: Kyle M Hall <kyle at bywatersolutions.com>

Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
---
 koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
index 9fd2e67..fc2d438 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
@@ -21,12 +21,7 @@
     // <![CDATA[
     $(document).ready(function(){
         $("#deletesuggestion").on("click",function(){
-            var is_confirmed = confirm(_("Are you sure you want to delete this suggestion?"));
-            if (is_confirmed) {
-                return true;
-            } else {
-                return false;
-            }
+            return confirm(_("Are you sure you want to delete this suggestion?"));
         });
     });
     // ]]>
-- 
1.8.1.2


More information about the Koha-patches mailing list