Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8a8b4bbd
authored
Aug 15, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: make the node box clickable in mass migrate
parent
a9020eb7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
circle/dashboard/static/dashboard/vm-list.js
+6
-10
circle/dashboard/templates/dashboard/_vm-mass-migrate.html
+2
-1
No files found.
circle/dashboard/static/dashboard/vm-list.js
View file @
8a8b4bbd
...
...
@@ -51,7 +51,7 @@ $(function() {
if
(
selected
.
length
>
0
)
{
$
(
'#vm-mass-ops .mass-operation'
).
attr
(
'disabled'
,
false
);
}
else
{
$
(
'
.vm-list-group-control a
'
).
attr
(
'disabled'
,
true
);
$
(
'
#vm-mass-ops .mass-operation
'
).
attr
(
'disabled'
,
true
);
}
return
retval
;
});
...
...
@@ -61,14 +61,6 @@ $(function() {
e
.
stopPropagation
();
});
$
(
'tbody a'
).
click
(
function
(
e
)
{
// browser doesn't jump to top when clicked the buttons
if
(
!
$
(
this
).
hasClass
(
'real-link'
))
{
return
false
;
}
});
/* group actions */
/* select all */
...
...
@@ -82,7 +74,7 @@ $(function() {
}
});
if
(
selected
.
length
>
0
)
$
(
'
.vm-list-group-control a
'
).
attr
(
'disabled'
,
false
);
$
(
'
#vm-mass-ops .mass-operation
'
).
attr
(
'disabled'
,
false
);
return
false
;
});
...
...
@@ -170,6 +162,10 @@ $(function() {
event
.
preventDefault
();
});
$
(
document
).
on
(
"click"
,
".mass-migrate-node"
,
function
()
{
$
(
this
).
find
(
'input[type="radio"]'
).
prop
(
"checked"
,
true
);
});
if
(
checkStatusUpdate
())
{
updateStatuses
(
1
);
}
...
...
circle/dashboard/templates/dashboard/_vm-mass-migrate.html
View file @
8a8b4bbd
...
...
@@ -14,7 +14,8 @@ Choose a compute node to migrate the selected VMs to.
{% block formfields %}
<ul
id=
"vm-migrate-node-list"
class=
"list-unstyled"
>
{% for n in nodes %}
<li
class=
"panel panel-default"
><div
class=
"panel-body"
>
<li
class=
"panel panel-default mass-migrate-node"
>
<div
class=
"panel-body"
>
<label
for=
"migrate-to-{{n.pk}}"
>
<strong>
{{ n }}
</strong>
</label>
...
...
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