Skip to content

Commit

Permalink
Fixed typeahead query object in service
Browse files Browse the repository at this point in the history
  • Loading branch information
arijitdasgupta committed Apr 12, 2016
1 parent 400799f commit 905d5df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -6,3 +6,4 @@ build
.sass-cache
tmp
FUSION_CONFIG.js
packages/
1 change: 1 addition & 0 deletions client/assets/components/searchBox/searchBoxDataService.js
Expand Up @@ -15,6 +15,7 @@
////////////

function getTypeaheadResults(query){
$log.info(query);
var deferred = $q.defer();

var queryString = QueryBuilder.objectToURLString(query);
Expand Down
3 changes: 2 additions & 1 deletion client/assets/components/searchBox/searchBoxDirective.js
Expand Up @@ -38,14 +38,15 @@
}

function updateSearchQuery(inputString) {
$log.info(inputString);
ta.query = inputString;
}

function doTypeaheadSearch(userInputString, timeoutPromise) {
var deferred = $q.defer();

SearchBoxDataService
.getTypeaheadResults(QueryService.getQueryObject())
.getTypeaheadResults({q: ta.query, wt: 'json'})
.then(function (resp) {
if(resp.hasOwnProperty('response')) {
var objectToResolve = {
Expand Down

0 comments on commit 905d5df

Please sign in to comment.