NIHVIVO-1056 Problem of autocomplete selection using arrow keys: jQuery UI makes it look like a selection is made, but it doesn't trigger the select event. Need further exploration.
This commit is contained in:
parent
ae3ec1d93e
commit
c083096442
1 changed files with 8 additions and 3 deletions
|
@ -516,6 +516,12 @@ var addAuthorForm = {
|
||||||
addAuthorForm.onLastNameChange();
|
addAuthorForm.onLastNameChange();
|
||||||
return false; // don't submit form
|
return false; // don't submit form
|
||||||
}
|
}
|
||||||
|
// TimW would like to be able to make a selection using the arrow keys, but jQuery UI doesn't recognize
|
||||||
|
// that as a selection unless you actually hit enter or click the mouse on it. We could trigger the event,
|
||||||
|
// as shown, but need to pass in the ui item for it to work. Think more about this.
|
||||||
|
// else if (event.which === 38 || event.which === 40) {
|
||||||
|
// addAuthorForm.lastNameField.autocomplete('option', 'select')();
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
|
|
||||||
this.removeAuthorshipLinks.click(function() {
|
this.removeAuthorshipLinks.click(function() {
|
||||||
|
@ -596,7 +602,6 @@ var addAuthorForm = {
|
||||||
url: $(link).attr('href'),
|
url: $(link).attr('href'),
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {
|
data: {
|
||||||
//deletion: $(link).parents('.authorship').attr('id')
|
|
||||||
deletion: $(link).parents('.authorship').data('authorshipUri')
|
deletion: $(link).parents('.authorship').data('authorshipUri')
|
||||||
},
|
},
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
|
Loading…
Add table
Reference in a new issue