rjy7 2010-07-26 19:12:45 +00:00
parent a5ea84b4fe
commit 76017acd98

View file

@ -448,9 +448,9 @@ var addAuthorForm = {
return false; return false;
}); });
this.form.submit(function() { this.submit.click(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.form.submit(prepareSubmit); then // in prepareSubmit. If we do this.submit.click(prepareSubmit); then
// this != addAuthorForm in prepareSubmit. // this != addAuthorForm in prepareSubmit.
addAuthorForm.prepareSubmit(); addAuthorForm.prepareSubmit();
}); });