[open-ils-commits] r11602 - trunk/Open-ILS/web/js/dojo/openils
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Dec 17 12:24:05 EST 2008
Author: erickson
Date: 2008-12-17 12:24:02 -0500 (Wed, 17 Dec 2008)
New Revision: 11602
Modified:
trunk/Open-ILS/web/js/dojo/openils/Util.js
Log:
added istrue function
Modified: trunk/Open-ILS/web/js/dojo/openils/Util.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/Util.js 2008-12-17 14:27:34 UTC (rev 11601)
+++ trunk/Open-ILS/web/js/dojo/openils/Util.js 2008-12-17 17:24:02 UTC (rev 11602)
@@ -180,4 +180,8 @@
}
return [];
};
+
+ openils.Util.isTrue = function(val) {
+ return (val && val != '0' && !(val+'').match(/^f$/i));
+ };
}
More information about the open-ils-commits
mailing list