- Better result normalization.
- Updated styles.
This commit is contained in:
Matt Gilman 2014-12-12 10:37:02 -05:00
parent 68e0898399
commit d307a13c5d
2 changed files with 7 additions and 1 deletions

View File

@ -456,6 +456,7 @@ input.search-flow {
overflow: auto;
border: 1px solid #aaaaaa;
z-index: 1251;
border-radius: 0;
}
#search-flow-results .ui-menu .ui-menu-item a.ui-state-focus {

View File

@ -36,6 +36,11 @@ nf.Search = (function () {
var ul = this.menu.element;
ul.width(399);
},
_normalize: function(searchResults) {
var items = [];
items.push(searchResults);
return items;
},
_renderMenu: function (ul, items) {
var self = this;
@ -130,7 +135,7 @@ nf.Search = (function () {
dataType: 'json',
url: config.urls.search
}).done(function (searchResponse) {
response(searchResponse);
response(searchResponse.searchResultsDTO);
});
},
select: function (event, ui) {