sanity checking boolean test better
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Aug 2006 03:06:18 +0000 (03:06 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 4 Aug 2006 03:06:18 +0000 (03:06 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5269 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/opac_utils.js

index c145dd2..a41231f 100644 (file)
@@ -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? */