Bugzilla – Attachment 95763 Details for
Bug 23901
Fix js error sms_input is null in opac-messaging.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23901: Fix indentation
Bug-23901-Fix-indentation.patch (text/plain), 1.74 KB, created by
Katrin Fischer
on 2019-11-24 13:24:41 UTC
(
hide
)
Description:
Bug 23901: Fix indentation
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-11-24 13:24:41 UTC
Size:
1.74 KB
patch
obsolete
>From e47d47709c82eaa88bc236eafc60e940db9871c4 Mon Sep 17 00:00:00 2001 >From: Lari Taskula <lari.taskula@hypernova.fi> >Date: Fri, 25 Oct 2019 13:39:12 +0000 >Subject: [PATCH] Bug 23901: Fix indentation > >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> >--- > .../opac-tmpl/bootstrap/en/modules/opac-messaging.tt | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >index ef2b776144..3d25f5372f 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >@@ -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); >+ }); > } > > //]]> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23901
:
94767
|
94768
|
94769
|
94770
|
95762
| 95763