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
be3727e7
authored
Mar 07, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: refresh activity on tab click
parent
38f7bc54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
circle/dashboard/static/dashboard/vm-details.js
+7
-3
No files found.
circle/dashboard/static/dashboard/vm-details.js
View file @
be3727e7
...
@@ -3,6 +3,10 @@ $(function() {
...
@@ -3,6 +3,10 @@ $(function() {
if
(
decideActivityRefresh
())
{
if
(
decideActivityRefresh
())
{
checkNewActivity
(
false
,
1
);
checkNewActivity
(
false
,
1
);
}
}
$
(
'a[href="#activity"]'
).
click
(
function
(){
$
(
'a[href="#activity"] i'
).
addClass
(
'icon-spin'
);
checkNewActivity
(
false
,
0
);
});
/* save resources */
/* save resources */
$
(
'#vm-details-resources-save'
).
click
(
function
()
{
$
(
'#vm-details-resources-save'
).
click
(
function
()
{
...
@@ -211,13 +215,13 @@ function checkNewActivity(only_state, runs) {
...
@@ -211,13 +215,13 @@ function checkNewActivity(only_state, runs) {
$
(
"[data-target=#_console]"
).
attr
(
"data-toggle"
,
"_pill"
).
attr
(
"href"
,
"#"
).
parent
(
"li"
).
addClass
(
"disabled"
);
$
(
"[data-target=#_console]"
).
attr
(
"data-toggle"
,
"_pill"
).
attr
(
"href"
,
"#"
).
parent
(
"li"
).
addClass
(
"disabled"
);
}
}
if
(
decideActivityRefresh
())
{
if
(
runs
>
0
&&
decideActivityRefresh
())
{
console
.
log
(
"szia"
);
setTimeout
(
setTimeout
(
function
()
{
checkNewActivity
(
only_state
,
runs
+
1
)},
function
()
{
checkNewActivity
(
only_state
,
runs
+
1
)},
1000
+
runs
*
250
1000
+
Math
.
exp
(
runs
*
0.05
)
);
);
}
}
$
(
'a[href="#activity"] i'
).
removeClass
(
'icon-spin'
);
},
},
error
:
function
()
{
error
:
function
()
{
...
...
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