|
|
@ -37,7 +37,7 @@ Demo.West = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
onSearch: function (op, callback) { |
|
|
|
onSearch: function (op, callback) { |
|
|
|
var result = BI.Func.getSearchResult(Demo.CONFIG, op.keyword, "text"); |
|
|
|
var result = BI.Func.getSearchResult(Demo.CONFIG, op.keyword, "text"); |
|
|
|
var items = result.match.concat(result.find); |
|
|
|
var items = BI.concat(result.match, result.find); |
|
|
|
var children = []; |
|
|
|
var children = []; |
|
|
|
BI.each(items, function (index, item) { |
|
|
|
BI.each(items, function (index, item) { |
|
|
|
var childList = BI.Func.getSearchResult(Demo.CONFIG, item.id, "pId"); |
|
|
|
var childList = BI.Func.getSearchResult(Demo.CONFIG, item.id, "pId"); |
|
|
@ -47,7 +47,7 @@ Demo.West = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
items = items.concat(children); |
|
|
|
items = BI.concat(items, children); |
|
|
|
callback(items); |
|
|
|
callback(items); |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
}], |
|
|
|