diff --git a/javascript/MemberTableField_popup.js b/javascript/MemberTableField_popup.js index b6f10ec9..5b2a5246 100755 --- a/javascript/MemberTableField_popup.js +++ b/javascript/MemberTableField_popup.js @@ -2,12 +2,12 @@ MemberTableFieldPopupForm = Class.extend("ComplexTableFieldPopupForm"); MemberTableFieldPopupForm.prototype = { initialize: function() { this.ComplexTableFieldPopupForm.initialize(); - + Behaviour.register({ "form#MemberTableField_Popup_DetailForm input.action": { onclick: this.submitForm.bind(this) }, - + 'form#MemberTableField_Popup_DetailForm input' : { initialise : function() { if(this.name == 'FirstName' || this.name == 'Surname' || this.name == 'Email') { @@ -25,18 +25,17 @@ MemberTableFieldPopupForm.prototype = { afterAutocomplete : function(field, selectedItem) { var data = selectedItem.getElementsByTagName('span')[1].innerHTML; var items = data.split(","); - + this.elements.FirstName.value = items[0]; this.elements.Surname.value = items[1]; this.elements.Email.value = items[2]; this.elements.Password.value = items[3]; - } + } } - + //'form#MemberTableField_Popup_DetailForm input' : AjaxMemberLookup }); - }, - - + } } + MemberTableFieldPopupForm.applyTo('form#MemberTableField_Popup_DetailForm'); \ No newline at end of file