[open-ils-commits] [GIT] Evergreen ILS branch rel_2_12 updated. aab2ddc2ab351a1a6ac024f1f905760c15859871

Evergreen Git git at git.evergreen-ils.org
Wed Mar 22 12:52:29 EDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_12 has been updated
       via  aab2ddc2ab351a1a6ac024f1f905760c15859871 (commit)
      from  f58b387937d4aa9c7e8ac2573191dc3923e3799f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit aab2ddc2ab351a1a6ac024f1f905760c15859871
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date:   Wed Mar 22 12:25:41 2017 -0400

    LP#1668720: remove browser console noise for OPAC
    
    This patch fixes a case where JavaScript used in the OPAC
    attempts to set the value of a #client_tz_id input on all
    pages, even though only the login page has such an input.
    
    To test:
    
    [1] Load the OPAC homepage and open the JavaScript console/developer tools.
        Note that there's a "Cannot set property 'value' of null"
        error.
    [2] Apply the patch and try again; this time there shouldn't
        be such an error.
    [3] Open the login page, and verify, using developer tools,
        that the hidden client_tz_id input does have its value
        set to the client timezone.
    
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/src/templates/opac/parts/js.tt2 b/Open-ILS/src/templates/opac/parts/js.tt2
index 245af43..4d5b400 100644
--- a/Open-ILS/src/templates/opac/parts/js.tt2
+++ b/Open-ILS/src/templates/opac/parts/js.tt2
@@ -152,5 +152,5 @@ var aou_hash = {
   </script>
 [% END %]
 
-<script type="text/javascript">$('client_tz_id').value = OpenSRF.tz</script>
+<script type="text/javascript">if ($('client_tz_id')) { $('client_tz_id').value = OpenSRF.tz }</script>
 [%- END; # want_dojo -%]

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/parts/js.tt2 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list