From: Thomas Berezansky Date: Thu, 20 Nov 2014 14:50:11 +0000 (-0500) Subject: Apply sort for ident_type dropdown X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=83b9d7973ae328d464233fffde3345db94fb52ca;p=working%2FEvergreen.git Apply sort for ident_type dropdown We may want YAOUS for "do we want to sort ident_type by name"... Signed-off-by: Thomas Berezansky Signed-off-by: Remington Steed Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index b48946f6dc..4ce861e58f 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -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;