Skip to content

Commit

Permalink
Showing suggested value on click on the INPUT field Refs #2135
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Apr 25, 2013
1 parent c57e1af commit b4c5661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/SegmentEditor/templates/Segmentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,7 @@ Segmentation = (function($) {
}, 'GET');
ajaxHandler.setCallback(function(response) {
loadingElement.hide();
console.log("RECEIVED Auto suggested:");
console.log(response);
console.log("How can we display it as autosuggest below this field?");

inputElement.autocomplete({
source: response,
minLength: 0,
Expand All @@ -427,6 +425,8 @@ Segmentation = (function($) {
$(inputElement).val(ui.item.value);
}
});

inputElement.click(function(e){ inputElement.keydown() });
});
ajaxHandler.send(true);
}
Expand Down

0 comments on commit b4c5661

Please sign in to comment.