diff --git a/demo/js/west.js b/demo/js/west.js index 2c68f3795..d4cc9d59b 100644 --- a/demo/js/west.js +++ b/demo/js/west.js @@ -37,7 +37,17 @@ Demo.West = BI.inherit(BI.Widget, { }, onSearch: function (op, callback) { 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 = []; + BI.each(items, function (index, item) { + var childList = BI.Func.getSearchResult(Demo.CONFIG, item.id, "pId"); + BI.each(childList.match, function (index, child) { + if (child.value) { + children.push(child); + } + }); + }); + items = BI.concat(items, children); callback(items); } }],