rjy7 2010-07-26 19:39:24 +00:00
parent e12810ec1f
commit d566b95530

View file

@ -448,9 +448,9 @@ var addAuthorForm = {
return false; return false;
}); });
this.submit.click(function() { this.form.submit(function() {
// NB Important JavaScript scope issue: if we call it this way, this = addAuthorForm // 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. // this != addAuthorForm in prepareSubmit.
addAuthorForm.prepareSubmit(); addAuthorForm.prepareSubmit();
}); });