NIHVIVO-763 Remove onfocus event from last name field of add authors form. Prevents user from going back and correcting his input.

This commit is contained in:
rjy7 2010-07-12 16:44:29 +00:00
parent 9366d80151
commit 08932802fb
2 changed files with 6 additions and 13 deletions

View file

@ -439,15 +439,7 @@ var addAuthorForm = {
this.lastNameField.blur(function() {
addAuthorForm.onLastNameChange();
});
// This is somewhat questionable. If we return to the last name
// field to look again for an existing person, we'd want to hide those
// fields. If we return to it to correct spelling of last name, say,
// we wouldn't.
this.lastNameField.focus(function() {
addAuthorForm.hideFieldsForNewPerson();
});
// When hitting enter in last name field, if not an autocomplete
// selection, show first and middle name fields.
this.lastNameField.keydown(function(event) {

View file

@ -40,7 +40,8 @@ var customForm = {
// These are classed rather than id'd in case we want more than one autocomplete on a form.
this.acSelector = this.form.find('.acSelector');
this.acSelection = this.form.find('.acSelection');
this.acSelection = this.form.find('.acSelection');
this.acSelectionInfo = this.form.find('.acSelectionInfo');
this.acReceiver = this.form.find('.acReceiver');
},
@ -190,9 +191,9 @@ var customForm = {
// console.log("adding " + this.label + " to filtered results");
filteredResults.push(this);
}
// else {
// console.log("filtering out " + this.label);
// }
else {
// console.log("filtering out " + this.label);
}
});
return filteredResults;
},