From de1bc957313bdf6b042b1a65ebcca81fad7dd39d Mon Sep 17 00:00:00 2001 From: rjy7 Date: Mon, 26 Jul 2010 18:39:11 +0000 Subject: [PATCH] Merge r1175 from http://svn.mannlib.cornell.edu/svn/vivo/branches/rel-1.1-maint --- .../edit/forms/js/addAuthorsToInformationResource.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/productMods/edit/forms/js/addAuthorsToInformationResource.js b/productMods/edit/forms/js/addAuthorsToInformationResource.js index 876af791..2e56e433 100644 --- a/productMods/edit/forms/js/addAuthorsToInformationResource.js +++ b/productMods/edit/forms/js/addAuthorsToInformationResource.js @@ -448,12 +448,12 @@ var addAuthorForm = { return false; }); - this.submit.click(function() { - // NB Important JavaScript scope issue: if we call it this way, this = addAuthorForm - // in prepareSubmit. If we do this.submit.click(prepareSubmit); then - // this != addAuthorForm in prepareSubmit. - addAuthorForm.prepareSubmit(); - }); + this.form.submit(function() { + // NB Important JavaScript scope issue: if we call it this way, this = addAuthorForm + // in prepareSubmit. If we do this.form.submit(prepareSubmit); then + // this != addAuthorForm in prepareSubmit. + addAuthorForm.prepareSubmit(); + }); this.lastNameField.blur(function() { addAuthorForm.onLastNameChange();