diff --git a/src/sunstone/public/js/plugins/hosts-tab.js b/src/sunstone/public/js/plugins/hosts-tab.js index ccbe03791c..5c7e6dfaf3 100644 --- a/src/sunstone/public/js/plugins/hosts-tab.js +++ b/src/sunstone/public/js/plugins/hosts-tab.js @@ -210,6 +210,7 @@ var host_actions = { updateHostElement(request, response); if (Sunstone.rightInfoVisible($("#hosts-tab"))) { updateHostInfo(request, response); + $(".right-info-tabs > dd.active > a", "#hosts-tab").trigger("click"); } }, error: onError @@ -1042,8 +1043,10 @@ function updateHostInfo(request,host){ //pop up panel while we retrieve the graphs - Sunstone.runAction("Host.monitor",host_info.ID, - {monitor_resources : "HOST_SHARE/CPU_USAGE,HOST_SHARE/USED_CPU,HOST_SHARE/MAX_CPU,HOST_SHARE/MEM_USAGE,HOST_SHARE/USED_MEM,HOST_SHARE/MAX_MEM"}); + $("[href='#host_monitoring_tab']").on("click", function(){ + Sunstone.runAction("Host.monitor",host_info.ID, + {monitor_resources : "HOST_SHARE/CPU_USAGE,HOST_SHARE/USED_CPU,HOST_SHARE/MAX_CPU,HOST_SHARE/MEM_USAGE,HOST_SHARE/USED_MEM,HOST_SHARE/MAX_MEM"}); + }); } //Prepares the host creation dialog