[open-ils-commits] r10121 -
trunk/Open-ILS/web/js/dojo/openils/widget
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 24 17:00:48 EDT 2008
Author: miker
Date: 2008-07-24 17:00:39 -0400 (Thu, 24 Jul 2008)
New Revision: 10121
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js
Log:
use filtering select to present the friendly name of the locale ... the default set needs to be normalized against CLDR
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js 2008-07-24 18:58:23 UTC (rev 10120)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js 2008-07-24 21:00:39 UTC (rev 10121)
@@ -29,7 +29,7 @@
dojo.require("dijit.Dialog");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.TextBox");
- dojo.require("dijit.form.ComboBox");
+ dojo.require("dijit.form.FilteringSelect");
dojo.require("dojox.jsonPath");
dojo.requireLocalization("openils.widget", "TranslatorPopup");
@@ -98,9 +98,10 @@
if (old_dijit) old_dijit.destroy();
dojo.query('.locale_combobox',trans_row).instantiate(
- dijit.form.ComboBox,
+ dijit.form.FilteringSelect,
{ store:openils.I18N.localeStore,
searchAttr:'locale',
+ labelAttr:'label',
lowercase:true,
required:true,
id:'locale_' + trans_id,
@@ -141,9 +142,10 @@
trans_row = dojo.query('tr',trans_template)[0].cloneNode(true);
dojo.query('.locale_combobox',trans_row).instantiate(
- dijit.form.ComboBox,
+ dijit.form.FilteringSelect,
{ store:openils.I18N.localeStore,
searchAttr:'locale',
+ labelAttr:'label',
id:'i18n_new_locale_' + this._targetObject.classname + '.' + this.field + this.unique,
lowercase:true,
required:true,
More information about the open-ils-commits
mailing list