[open-ils-commits] r11603 - branches/rel_1_4/Open-ILS/web/js/dojo/openils

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Dec 17 12:24:31 EST 2008


Author: erickson
Date: 2008-12-17 12:24:28 -0500 (Wed, 17 Dec 2008)
New Revision: 11603

Modified:
   branches/rel_1_4/Open-ILS/web/js/dojo/openils/Util.js
Log:
added istrue function

Modified: branches/rel_1_4/Open-ILS/web/js/dojo/openils/Util.js
===================================================================
--- branches/rel_1_4/Open-ILS/web/js/dojo/openils/Util.js	2008-12-17 17:24:02 UTC (rev 11602)
+++ branches/rel_1_4/Open-ILS/web/js/dojo/openils/Util.js	2008-12-17 17:24:28 UTC (rev 11603)
@@ -178,4 +178,8 @@
         }
         return [];
     };
+
+    openils.Util.isTrue = function(val) {
+        return (val && val != '0' && !(val+'').match(/^f$/i));
+    };
 }



More information about the open-ils-commits mailing list