[open-ils-commits] r13349 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 9 12:33:03 EDT 2009
Author: erickson
Date: 2009-06-09 12:33:01 -0400 (Tue, 09 Jun 2009)
New Revision: 13349
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
smarter boolean value test for display strings
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-06-09 16:22:46 UTC (rev 13348)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-06-09 16:33:01 UTC (rev 13349)
@@ -83,7 +83,7 @@
var value = this.widgetValue;
switch(this.idlField.datatype) {
case 'bool':
- return (value) ? 'True' : 'False'; // XXX i18n!
+ return (openils.Util.isTrue(value)) ? 'True' : 'False'; // XXX i18n!
case 'timestamp':
dojo.require('dojo.date.locale');
dojo.require('dojo.date.stamp');
More information about the open-ils-commits
mailing list