Bug 16238: QA fix: remove tab characters
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 13 Apr 2016 08:31:05 +0000 (10:31 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 14:18:24 +0000 (14:18 +0000)
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

index b4405b1..953b9ef 100644 (file)
@@ -1,20 +1,20 @@
 [% USE Koha %]
 <!-- snippet for form to set borrower and patron category messaging preferences -->
 <script type="text/javascript">//<![CDATA[
-       $(document).ready(function(){
-               $(".none").click(function(){
-                       if($(this).prop("checked")){
-                               var rowid = $(this).attr("id");
-                               newid = Number(rowid.replace("none","")) 
-          $("#sms"+newid).prop("checked", false);
-          $("#email"+newid).prop("checked", false);
-          $("#phone"+newid).prop("checked", false);
-          $("#digest"+newid).prop("checked", false);
-          $("#rss"+newid).prop("checked", false);
-                       }
-               });
-        $("#info_digests").tooltip();
-       });
+$(document).ready(function(){
+    $(".none").click(function(){
+        if($(this).prop("checked")){
+            var rowid = $(this).attr("id");
+            newid = Number(rowid.replace("none",""))
+            $("#sms"+newid).prop("checked", false);
+            $("#email"+newid).prop("checked", false);
+            $("#phone"+newid).prop("checked", false);
+            $("#digest"+newid).prop("checked", false);
+            $("#rss"+newid).prop("checked", false);
+        }
+    });
+    $("#info_digests").tooltip();
+});
 //]]>
 </script>
 
index c91d58f..6a2f669 100644 (file)
@@ -150,26 +150,26 @@ function checkMultiHold() {
     $("input.warning").click(function() {
         return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
     });
-       $("#requestany").click(function() {
-               if(this.checked){
-               $("input[name=checkitem]").each(function() {
-            $(this).prop("checked", false);
-               });
-               }
-       });
-       $("input[name=checkitem]").click(function() {
-               onechecked = 0;
-               $("input[name=checkitem]").each(function() {
-                       if(this.checked){
-                               onechecked = 1;
-                       }
-               });
-               if(onechecked == 1){
+    $("#requestany").click(function() {
+        if(this.checked){
+            $("input[name=checkitem]").each(function() {
+                $(this).prop("checked", false);
+            });
+        }
+    });
+    $("input[name=checkitem]").click(function() {
+        onechecked = 0;
+        $("input[name=checkitem]").each(function() {
+            if(this.checked){
+                onechecked = 1;
+            }
+        });
+        if(onechecked == 1){
             $("#requestany").prop("checked", false);
-               } else {
-                       $("#requestany").prop("checked",true);
-               }
-       });
+        } else {
+            $("#requestany").prop("checked",true);
+        }
+    });
 
     $(".clear-date").on("click",function(e){
         e.preventDefault();