Bug 23901: Fix indentation
authorLari Taskula <lari.taskula@hypernova.fi>
Fri, 25 Oct 2019 13:39:12 +0000 (13:39 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 25 Nov 2019 08:42:11 +0000 (08:42 +0000)
This patch only fixes the indentation of code inside the if-block.

To test:
1. Apply patch
2. Run: git diff -w HEAD~1 and observe no result

Sponsored-by: Koha-Suomi Oy
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt

index ef2b776..3d25f53 100644 (file)
@@ -194,17 +194,17 @@ function normalizeSMS(value){
 var sms_input = document.getElementById('SMSnumber');
 
 if (typeof sms_input !== 'undefined' && sms_input !== null) {
-sms_input.addEventListener('keyup', function(){
-  var field = sms_input.value;
-  sms_input.value = normalizeSMS(field);
-});
+  sms_input.addEventListener('keyup', function(){
+    var field = sms_input.value;
+    sms_input.value = normalizeSMS(field);
+  });
 
-sms_input.addEventListener('paste', function(event) {
-  let paste = (event.clipboardData || window.clipboardData).getData('text');
-  setTimeout(function () {
-    sms_input.value = normalizeSMS(paste);
-  }, 100);
-});
+  sms_input.addEventListener('paste', function(event) {
+    let paste = (event.clipboardData || window.clipboardData).getData('text');
+    setTimeout(function () {
+      sms_input.value = normalizeSMS(paste);
+    }, 100);
+  });
 }
 
 //]]>