{
+ "DEFAULT_ADDRESS_TYPE" : "MAILING",
"DELETE_ADDRESS" : "Delete address ${0}?",
"NEED_ADDRESS" : "An address is required during registration.",
"DUPE_PATRON_NAME" : "Found ${0} patron(s) with the same name",
if(row.getAttribute('fmclass')) {
var widget = fleshFMRow(row, 'aua', {addr:id});
+ // make new addresses a default address type
+ if(id < 0 && row.getAttribute('fmfield') == 'address_type')
+ widget.widget.attr('value', localeStrings.DEFAULT_ADDRESS_TYPE);
+
// make new addresses valid by default
if(id < 0 && row.getAttribute('fmfield') == 'valid')
widget.widget.attr('value', true);