[open-ils-commits] r20276 - branches/rel_2_1/Open-ILS/web/js/ui/default/actor/user (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 21 20:40:52 EDT 2011


Author: miker
Date: 2011-04-21 20:40:51 -0400 (Thu, 21 Apr 2011)
New Revision: 20276

Modified:
   branches/rel_2_1/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
Patch from James Fournie to sort statcats in their comboboxes

Modified: branches/rel_2_1/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- branches/rel_2_1/Open-ILS/web/js/ui/default/actor/user/register.js	2011-04-22 00:40:21 UTC (rev 20275)
+++ branches/rel_2_1/Open-ILS/web/js/ui/default/actor/user/register.js	2011-04-22 00:40:51 UTC (rev 20276)
@@ -601,7 +601,7 @@
         var span = valtd.appendChild(document.createElement('span'));
         var store = new dojo.data.ItemFileReadStore(
                 {data:fieldmapper.actsc.toStoreData(stat.entries())});
-        var comboBox = new dijit.form.ComboBox({store:store,scrollOnFocus:false}, span);
+        var comboBox = new dijit.form.ComboBox({store:store,scrollOnFocus:false,fetchProperties:{sort:[{attribute: 'value'}]}}, span);
         comboBox.labelAttr = 'value';
         comboBox.searchAttr = 'value';
 



More information about the open-ils-commits mailing list