]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1668720: remove browser console noise for OPAC
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 22 Mar 2017 16:25:41 +0000 (12:25 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 22 Mar 2017 16:52:08 +0000 (12:52 -0400)
commitaab2ddc2ab351a1a6ac024f1f905760c15859871
treee2cc73d30e55efe5e668973f0afcfcc778191803
parentf58b387937d4aa9c7e8ac2573191dc3923e3799f
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@equinoxinitiative.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/templates/opac/parts/js.tt2