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:
rjy7 2010-06-25 19:13:47 +00:00
parent fc15fd5d20
commit 401a95a029

View file

@ -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({