Apply sort for ident_type dropdown
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 20 Nov 2014 14:50:11 +0000 (09:50 -0500)
committerMike Rylander <mrylander@gmail.com>
Thu, 16 Feb 2017 15:12:43 +0000 (10:12 -0500)
We may want YAOUS for "do we want to sort ident_type by name"...

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/actor/user/register.js

index b48946f..4ce861e 100644 (file)
@@ -1251,6 +1251,9 @@ function fleshFMRow(row, fmcls, args) {
     if(fmcls == 'au' && fmfield == 'dob' && !orgSettings['ui.patron.edit.au.dob.calendar'])
         dijitArgs.popupClass = "";
 
+    if(fmcls == 'au' && fmfield == 'ident_type')
+        dijitArgs.fetchProperties = { sort: [{attribute:"name",descending:false}] };
+
     var value = row.getAttribute('wvalue');
     if(value !== null)
         dijitArgs.value = value;