Bug 10668 - Improve suggestion detail page - QA Followup
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 2 Aug 2013 16:52:04 +0000 (12:52 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 4 Oct 2013 03:15:59 +0000 (03:15 +0000)
Simplify an expression in the JavaScript

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt

index 9fd2e67..fc2d438 100644 (file)
     // <![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?"));
         });
     });
     // ]]>