Hides saved application searches in historical host browsing mode

Historical top application searches have a different meaning in the
historical browsing contex and are thus hidden.
This commit is contained in:
Simone Mainardi 2016-02-26 17:48:14 +01:00
parent bcf65a13ee
commit 7f40994c95

View file

@ -805,8 +805,14 @@ var populatePeersPerHostByApplication = function(host, proto_id){
var populateHostTopAppsTable = function(host){
emptyAppsBreadCrumb();
$('#historical-apps-container').attr("host", host);
$('#historical-apps-container').removeAttr("proto");
$('#historical-apps-container').removeAttr("proto_id");
$("#bc-apps").append('<li>Protocols spoken by ' + host +'</li>');
// remove the favourite top apps dropdowns
$('#top_applications_app').parent().closest('div').detach();
$('#top_applications_host_peers_by_app').parent().closest('div').detach();
hideAll("app-talkers");
hideAll("peers-by-app");
showOne('historical-interface-apps', 'historical-interface-top-apps-table');