Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
2c4dfe47
authored
Mar 13, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: update activity when opening the activity tab
parent
7402e399
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
circle/dashboard/static/dashboard/dashboard.js
+2
-0
circle/dashboard/static/dashboard/vm-details.js
+0
-1
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
2c4dfe47
...
@@ -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'
);
}
}
...
...
circle/dashboard/static/dashboard/vm-details.js
View file @
2c4dfe47
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment