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