[open-ils-commits] r13642 - branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jul 20 16:42:29 EDT 2009
Author: erickson
Date: 2009-07-20 16:42:28 -0400 (Mon, 20 Jul 2009)
New Revision: 13642
Modified:
branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
localeStrings variable getting clobbered by some other global var. give it a namespace to protect it
Modified: branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-07-20 20:42:18 UTC (rev 13641)
+++ branches/rel_1_6_0/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-07-20 20:42:28 UTC (rev 13642)
@@ -5,7 +5,6 @@
dojo.require('fieldmapper.IDL');
dojo.require('openils.PermaCrud');
dojo.requireLocalization("openils.widget", "AutoFieldWidget");
- var localeStrings = dojo.i18n.getLocalization("openils.widget", "AutoFieldWidget");
dojo.declare('openils.widget.AutoFieldWidget', null, {
@@ -85,7 +84,9 @@
var value = this.widgetValue;
switch(this.idlField.datatype) {
case 'bool':
- return (openils.Util.isTrue(value)) ? localeStrings.TRUE : localeStrings.FALSE;
+ return (openils.Util.isTrue(value)) ?
+ openils.widget.AutoFieldWidget.localeStrings.TRUE :
+ openils.widget.AutoFieldWidget.localeStrings.FALSE;
case 'timestamp':
dojo.require('dojo.date.locale');
dojo.require('dojo.date.stamp');
@@ -444,5 +445,7 @@
return true;
}
});
+
+ openils.widget.AutoFieldWidget.localeStrings = dojo.i18n.getLocalization("openils.widget", "AutoFieldWidget");
}
More information about the open-ils-commits
mailing list