Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
78ec43bf
authored
Feb 24, 2014
by
Oláh István Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: refresh node activity on ajax success
parent
808f7c95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
+5
-1
circle/dashboard/static/dashboard/node-list.js
+2
-0
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
+2
-0
circle/dashboard/templates/dashboard/node-detail/activity.html
+1
-1
No files found.
circle/dashboard/static/dashboard/node-list.js
View file @
78ec43bf
...
@@ -162,6 +162,7 @@ $(function() {
...
@@ -162,6 +162,7 @@ $(function() {
// change big status span
// change big status span
$
(
'#node-info-pane'
).
load
(
location
.
href
+
" #node-info-data"
);
$
(
'#node-info-pane'
).
load
(
location
.
href
+
" #node-info-data"
);
$
(
'#activity-timeline-wrapper'
).
load
(
location
.
href
+
" #activity-timeline"
);
}
}
$
(
'#table_container'
).
on
(
'click'
,
'.node-enable'
,
function
()
{
$
(
'#table_container'
).
on
(
'click'
,
'.node-enable'
,
function
()
{
...
@@ -173,6 +174,7 @@ $(function() {
...
@@ -173,6 +174,7 @@ $(function() {
$
(
'#node-info-pane'
).
on
(
'click'
,
'.node-enable'
,
function
(){
$
(
'#node-info-pane'
).
on
(
'click'
,
'.node-enable'
,
function
(){
// post, change node status
// post, change node status
enablenode
(
$
(
this
).
attr
(
'data-node-pk'
),
$
(
this
).
attr
(
'data-status'
),
enabledetailsSuccess
);
enablenode
(
$
(
this
).
attr
(
'data-node-pk'
),
$
(
this
).
attr
(
'data-status'
),
enabledetailsSuccess
);
return
false
;
return
false
;
});
});
...
...
circle/dashboard/templates/dashboard/node-detail/_activity-timeline.html
View file @
78ec43bf
{% load i18n %}
{% load i18n %}
<div
id=
"activity-timeline"
class=
"timeline"
>
{% for a in activities %}
{% for a in activities %}
<div
class=
"activity"
data-activity-id=
"{{ a.pk }}"
>
<div
class=
"activity"
data-activity-id=
"{{ a.pk }}"
>
<span
class=
"timeline-icon{% if a.has_failed %} timeline-icon-failed{% endif %}"
>
<span
class=
"timeline-icon{% if a.has_failed %} timeline-icon-failed{% endif %}"
>
...
@@ -25,3 +26,4 @@
...
@@ -25,3 +26,4 @@
{% endif %}
{% endif %}
</div>
</div>
{% endfor %}
{% endfor %}
</div>
circle/dashboard/templates/dashboard/node-detail/activity.html
View file @
78ec43bf
...
@@ -2,6 +2,6 @@
...
@@ -2,6 +2,6 @@
<h3>
{% trans "Activity" %}
</h3>
<h3>
{% trans "Activity" %}
</h3>
<div
id=
"activity-timeline
"
class=
"timeline
"
>
<div
id=
"activity-timeline
-wrapper
"
>
{% include "dashboard/node-detail/_activity-timeline.html" %}
{% include "dashboard/node-detail/_activity-timeline.html" %}
</div>
</div>
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