[open-ils-commits] r13640 - trunk/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:03 EDT 2009
Author: erickson
Date: 2009-07-20 16:42:02 -0400 (Mon, 20 Jul 2009)
New Revision: 13640
Modified:
trunk/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: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-07-20 19:56:49 UTC (rev 13639)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-07-20 20:42:02 UTC (rev 13640)
@@ -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