From: erickson Date: Fri, 4 Aug 2006 03:06:18 +0000 (+0000) Subject: sanity checking boolean test better X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6ea5e15b030a07bcc780365f267ddfc93d29f343;p=evergreen%2Fpines.git sanity checking boolean test better git-svn-id: svn://svn.open-ils.org/ILS/trunk@5269 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index c145dd2cd5..a41231f589 100644 --- a/Open-ILS/web/opac/common/js/opac_utils.js +++ b/Open-ILS/web/opac/common/js/opac_utils.js @@ -912,7 +912,7 @@ function parseForm(form) { } -function isTrue(x) { return ( x && x != "0" && !x.match(/^f$/i) ); } +function isTrue(x) { return ( x && x != "0" && !(x+'').match(/^f$/i) ); } function fetchPermOrgs() { var a = []; /* why does arguments come accross as an object and not an array? */