NIHVIVO-646 Reimplement uri filtering in AutoCompleteController so it's part of the query, instead of removing from query results afterward
This commit is contained in:
parent
fc15fd5d20
commit
401a95a029
1 changed files with 3 additions and 1 deletions
|
@ -148,6 +148,8 @@ var addAuthorForm = {
|
|||
// NB For some reason this doesn't delete the value from the last name
|
||||
// field when the form is redisplayed. Need to do in initFormView.
|
||||
this.hideFields(this.lastNameWrapper);
|
||||
this.hideFields(this.firstNameWrapper);
|
||||
this.hideFields(this.middleNameWrapper);
|
||||
|
||||
// Cancel restores form to initial state
|
||||
this.cancel.unbind('click');
|
||||
|
@ -170,7 +172,7 @@ var addAuthorForm = {
|
|||
var existingAuthorUris = addAuthorForm.getExistingAuthorUris();
|
||||
|
||||
jQuery.each(existingAuthorUris, function(index, element) {
|
||||
url += '&filter=' + element;
|
||||
url += '&excludeUri=' + element;
|
||||
});
|
||||
|
||||
$('#lastName').autocomplete({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue