Commit 2c4dfe47 by Kálmán Viktor

dashboard: update activity when opening the activity tab

parent 7402e399
......@@ -66,6 +66,8 @@ $(function () {
if (window.location.hash) {
if(window.location.hash.substring(1,4) == "ipv")
$("a[href=#network]").tab('show');
if(window.location.hash == "activity")
checkNewActivity(false, 1);
$("a[href=" + window.location.hash +"]").tab('show');
}
......
......@@ -209,7 +209,6 @@ function checkNewActivity(only_state, runs) {
url: '/dashboard/vm/' + instance + '/activity/',
data: {'only_state': only_state},
success: function(data) {
console.log(data['activities']);
if(!only_state) {
$("#activity-timeline").html(data['activities']);
$("[title]").tooltip();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment