VIVO-491 cleaning up some minor address stuff
This commit is contained in:
parent
23e0a4d390
commit
14e83ecc6c
2 changed files with 23 additions and 0 deletions
|
@ -10,6 +10,8 @@ var mailingAddressUtils = {
|
|||
if ( editMode != "add" ) {
|
||||
this.setStreetAddressDisplayFields();
|
||||
}
|
||||
|
||||
this.setAddressFieldsIfErrors();
|
||||
},
|
||||
|
||||
initObjectReferences: function() {
|
||||
|
@ -18,9 +20,16 @@ var mailingAddressUtils = {
|
|||
this.street1 = $('#streetAddressOne');
|
||||
this.street2 = $('#streetAddressTwo');
|
||||
this.streetAddress = $('#streetAddress');
|
||||
this.errorSection = $('section#error-alert');
|
||||
|
||||
},
|
||||
|
||||
setAddressFieldsIfErrors: function() {
|
||||
if ( this.errorSection.length ) {
|
||||
mailingAddressUtils.setStreetAddressDisplayFields();
|
||||
}
|
||||
},
|
||||
|
||||
bindEventListeners: function() {
|
||||
this.idCache = {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue