Commit a65701e5 authored by Sven Franck's avatar Sven Franck

app: fixed missing infolist array throwing error in searchbar

parent 687fb324
......@@ -2728,18 +2728,19 @@
* @return {object} finished config object
**/
factory.util.searchBar = function (spec) {
var i, element_list, search_id, props, class_list;
var i, element_list, search_id, props, class_list, spec_list;
search_id = spec.search_id = "search_" + util.uuid();
props = spec.slot ? {"slot": spec.slot} : {};
props.class_list = spec.class_list || "";
element_list = [factory.util.searchBarTemplate(spec)];
spec_list = spec.info_list || [];
for (i = 0; i < spec.info_list.length; i += 1) {
for (i = 0; i < spec_list.length; i += 1) {
element_list.push({
"type": "div",
"direct": {"className": "info"},
"attributes": {"data-info": spec.info_list[i]}
"attributes": {"data-info": spec_list[i]}
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment