Commit 2c4dfe47 by Kálmán Viktor

dashboard: update activity when opening the activity tab

parent 7402e399
...@@ -66,6 +66,8 @@ $(function () { ...@@ -66,6 +66,8 @@ $(function () {
if (window.location.hash) { if (window.location.hash) {
if(window.location.hash.substring(1,4) == "ipv") if(window.location.hash.substring(1,4) == "ipv")
$("a[href=#network]").tab('show'); $("a[href=#network]").tab('show');
if(window.location.hash == "activity")
checkNewActivity(false, 1);
$("a[href=" + window.location.hash +"]").tab('show'); $("a[href=" + window.location.hash +"]").tab('show');
} }
......
...@@ -209,7 +209,6 @@ function checkNewActivity(only_state, runs) { ...@@ -209,7 +209,6 @@ function checkNewActivity(only_state, runs) {
url: '/dashboard/vm/' + instance + '/activity/', url: '/dashboard/vm/' + instance + '/activity/',
data: {'only_state': only_state}, data: {'only_state': only_state},
success: function(data) { success: function(data) {
console.log(data['activities']);
if(!only_state) { if(!only_state) {
$("#activity-timeline").html(data['activities']); $("#activity-timeline").html(data['activities']);
$("[title]").tooltip(); $("[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