From 23ef0f8c820fdabdb7994f0e76bb172d936845b0 Mon Sep 17 00:00:00 2001 From: rjy7 Date: Tue, 30 Mar 2010 21:42:13 +0000 Subject: [PATCH] NIHVIVO-193 Fixed bug in custom form javascript which was causing asterisks used to indicate required fields to be generated multiple times. --- productMods/edit/forms/js/customForm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/productMods/edit/forms/js/customForm.js b/productMods/edit/forms/js/customForm.js index 5df8a6da..2bda0529 100644 --- a/productMods/edit/forms/js/customForm.js +++ b/productMods/edit/forms/js/customForm.js @@ -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) {