[open-ils-commits] [GIT] Evergreen ILS branch rel_3_5 updated. 489a77557ec21cf17b7bce48e187bb64720e77a8

Evergreen Git git at git.evergreen-ils.org
Fri Jul 31 17:39:44 EDT 2020


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_3_5 has been updated
       via  489a77557ec21cf17b7bce48e187bb64720e77a8 (commit)
      from  9533ecd64e1de405f9fd6575dae8b7a87c5fa956 (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 489a77557ec21cf17b7bce48e187bb64720e77a8
Author: Jeff Davis <jdavis at sitka.bclibraries.ca>
Date:   Tue Oct 8 16:00:12 2019 -0700

    LP#1847343: fix Exclude Electronic Resources checkbox when locale picker is enabled
    
    Signed-off-by: Jeff Davis <jdavis at sitka.bclibraries.ca>
    Signed-off-by: Jane Sandberg <sandbej at linnbenton.edu>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/web/js/ui/default/opac/simple.js b/Open-ILS/web/js/ui/default/opac/simple.js
index e121fd188f..abf50c7da1 100644
--- a/Open-ILS/web/js/ui/default/opac/simple.js
+++ b/Open-ILS/web/js/ui/default/opac/simple.js
@@ -108,11 +108,9 @@ function exclude_onchange(checkbox) {
         var reg = /-search_format\(electronic\)/g;
         search_box.value = search_box.value.replace(reg, "");
         // Remove from the search form itself
-        var search_format_inputs = document.getElementsByName("fi:-search_format");
+        var search_format_inputs = document.querySelectorAll('input[type="hidden"][name="fi:-search_format"][value="electronic"]');
         for (var j = 0; j < search_format_inputs.length; j++) {
-            if (search_format_inputs[j].value == 'electronic') {
-                search_format_inputs[j].parentNode.removeChild(search_format_inputs[j]);
-            }
+            search_format_inputs[j].parentNode.removeChild(search_format_inputs[j]);
         }
 
     }

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

Summary of changes:
 Open-ILS/web/js/ui/default/opac/simple.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list