NIHVIVO-193 Fixed bug in custom form javascript which was causing asterisks used to indicate required fields to be generated multiple times.

This commit is contained in:
rjy7 2010-03-30 21:42:13 +00:00
parent 3dda68529e
commit 23ef0f8c82

View file

@ -41,6 +41,7 @@ var customForm = {
// Remove previously bound event handlers
this.cancel.unbind('click');
this.button.unbind('click');
this.addNewLink.unbind('click');
this.toggleRequiredHints('remove', this.addNew, this.existing);
},
@ -97,7 +98,7 @@ var customForm = {
this.showFields(this.existing);
this.addNewLink.show();
this.addNew.hide();
this.showFields(this.entry);
this.entry.show();
this.requiredLegend.show();
this.button.val('Save Changes');
@ -129,7 +130,6 @@ var customForm = {
$(this).html(newLabelText);
});
}
},
showFields: function(el) {