mirror of https://github.com/apache/nifi.git
NIFI-27:
- Better result normalization. - Updated styles.
This commit is contained in:
parent
68e0898399
commit
d307a13c5d
|
@ -456,6 +456,7 @@ input.search-flow {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
border: 1px solid #aaaaaa;
|
border: 1px solid #aaaaaa;
|
||||||
z-index: 1251;
|
z-index: 1251;
|
||||||
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-flow-results .ui-menu .ui-menu-item a.ui-state-focus {
|
#search-flow-results .ui-menu .ui-menu-item a.ui-state-focus {
|
||||||
|
|
|
@ -36,6 +36,11 @@ nf.Search = (function () {
|
||||||
var ul = this.menu.element;
|
var ul = this.menu.element;
|
||||||
ul.width(399);
|
ul.width(399);
|
||||||
},
|
},
|
||||||
|
_normalize: function(searchResults) {
|
||||||
|
var items = [];
|
||||||
|
items.push(searchResults);
|
||||||
|
return items;
|
||||||
|
},
|
||||||
_renderMenu: function (ul, items) {
|
_renderMenu: function (ul, items) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
@ -130,7 +135,7 @@ nf.Search = (function () {
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
url: config.urls.search
|
url: config.urls.search
|
||||||
}).done(function (searchResponse) {
|
}).done(function (searchResponse) {
|
||||||
response(searchResponse);
|
response(searchResponse.searchResultsDTO);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
select: function (event, ui) {
|
select: function (event, ui) {
|
||||||
|
|
Loading…
Reference in New Issue