Patch from James Fournie to sort statcats in their comboboxes
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Apr 2011 00:40:21 +0000 (00:40 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 22 Apr 2011 00:40:21 +0000 (00:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@20275 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/actor/user/register.js

index 8c078fc..7154593 100644 (file)
@@ -601,7 +601,7 @@ function loadStatCats() {
         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';