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:
parent
9366d80151
commit
08932802fb
2 changed files with 6 additions and 13 deletions
|
@ -439,15 +439,7 @@ var addAuthorForm = {
|
||||||
this.lastNameField.blur(function() {
|
this.lastNameField.blur(function() {
|
||||||
addAuthorForm.onLastNameChange();
|
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
|
// When hitting enter in last name field, if not an autocomplete
|
||||||
// selection, show first and middle name fields.
|
// selection, show first and middle name fields.
|
||||||
this.lastNameField.keydown(function(event) {
|
this.lastNameField.keydown(function(event) {
|
||||||
|
|
|
@ -40,7 +40,8 @@ var customForm = {
|
||||||
|
|
||||||
// These are classed rather than id'd in case we want more than one autocomplete on a form.
|
// 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.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');
|
this.acReceiver = this.form.find('.acReceiver');
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -190,9 +191,9 @@ var customForm = {
|
||||||
// console.log("adding " + this.label + " to filtered results");
|
// console.log("adding " + this.label + " to filtered results");
|
||||||
filteredResults.push(this);
|
filteredResults.push(this);
|
||||||
}
|
}
|
||||||
// else {
|
else {
|
||||||
// console.log("filtering out " + this.label);
|
// console.log("filtering out " + this.label);
|
||||||
// }
|
}
|
||||||
});
|
});
|
||||||
return filteredResults;
|
return filteredResults;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue