Makes historical saves per-user per-interface

This commit is contained in:
Simone Mainardi 2016-02-27 13:56:15 +01:00
parent ec691b8148
commit 0d7873d7ac
2 changed files with 5 additions and 3 deletions

View file

@ -325,7 +325,6 @@ var emptyBreadCrumb = function(){
var refreshBreadCrumbInterface = function(){
emptyBreadCrumb();
$("#bc-talkers").append('<li>Interface ]] print(getInterfaceName(ifid)) print [[</li>');
$('#historical-container').attr("ifname", "]] print(getInterfaceName(ifid)) print [[");
$('#historical-container').removeAttr("host");
$('#historical-container').removeAttr("peer");
}
@ -548,6 +547,8 @@ $('a[href="#historical-top-talkers"]').on('shown.bs.tab', function (e) {
var target = $(e.target).attr("href"); // activated tab
$('#historical-container').attr("ifname", "]] print(getInterfaceName(ifid)) print [[");
// populate favourites dropdowns
populateFavourites('historical-container', 'top_talkers', 'talker', 'top_talkers_talker');
populateFavourites('historical-container', 'top_talkers', 'apps_per_host_pair', 'top_talkers_host_pairs');
@ -950,6 +951,7 @@ $('a[href="#historical-top-apps"]').on('shown.bs.tab', function (e) {
// set epoch_begin and epoch_end status information to the container div
$('#historical-apps-container').attr("epoch_begin", "]] print(tostring(epoch_begin)) print[[");
$('#historical-apps-container').attr("epoch_end", "]] print(tostring(epoch_end)) print[[");
$("#historical-apps-container").attr("ifname", "]] print(getInterfaceName(ifid)) print [[");
// populate favourites dropdowns
populateFavourites('historical-apps-container', 'top_applications', 'app', 'top_applications_app');