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

View file

@ -448,12 +448,12 @@ var addAuthorForm = {
return false;
});
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.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.lastNameField.blur(function() {
addAuthorForm.onLastNameChange();