${searchType!''}
@@ -45,7 +50,12 @@
loadContent(loadType);
// bind
$("#searchBtn").click(function () {
- loadTraceTreeData("${_base}");
+ var searchKey = $("#searchKey").val();
+ if (searchKey.match(/viewpoint:*/i)){
+ loadContent("showAnlyResult")
+ }else {
+ loadContent("showTraceInfo");
+ }
})
});
@@ -55,6 +65,20 @@
loadTraceTreeData("${_base}");
}
+ if (loadType == "showAnlyResult"){
+ var template = $.templates("#anlyResultPanelTmpl");
+ var htmlOutput = template.render({});
+ $("#mainPanel").empty();
+ $("#mainPanel").html(htmlOutput);
+ var searchKey = $("#searchKey").val();
+ var index = searchKey.indexOf(':');
+ if (index != -1) {
+ searchKey = searchKey.substr(index + 1);
+ }
+ toSearchAnlyResult(searchKey);
+ return;
+ }
+
if (loadType == "applicationList") {
loadAllApplications();
return;