Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
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
e7d82c3f
authored
Apr 17, 2014
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: add generic vm-operation js
parent
f3e07864
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
circle/dashboard/static/dashboard/vm-common.js
+9
-10
No files found.
circle/dashboard/static/dashboard/vm-common.js
View file @
e7d82c3f
...
...
@@ -2,22 +2,21 @@
$
(
function
()
{
/* vm migrate */
$
(
'.vm-migrate'
).
click
(
function
(
e
)
{
var
icon
=
$
(
this
).
children
(
"i"
);
var
vm
=
$
(
this
).
data
(
"vm-pk"
);
icon
.
removeClass
(
"icon-truck"
).
addClass
(
"icon-spinner icon-spin"
);
/* vm operations */
$
(
'.operation.btn'
).
click
(
function
(
e
)
{
var
icon
=
$
(
this
).
children
(
"i"
).
addClass
(
'icon-spinner icon-spin'
);
$
.
ajax
({
type
:
'GET'
,
url
:
'/dashboard/vm/'
+
vm
+
'/migrate/'
,
url
:
$
(
this
).
attr
(
'href'
),
success
:
function
(
data
)
{
icon
.
addClass
(
"icon-truck"
).
removeClass
(
"icon-spinner icon-spin"
);
icon
.
removeClass
(
"icon-spinner icon-spin"
);
$
(
'body'
).
append
(
data
);
$
(
'#c
reate
-modal'
).
modal
(
'show'
);
$
(
'#c
reate
-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
$
(
'#c
reate
-modal'
).
remove
();
$
(
'#c
onfirmation
-modal'
).
modal
(
'show'
);
$
(
'#c
onfirmation
-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
$
(
'#c
onfirmation
-modal'
).
remove
();
});
$
(
'#vm-migrate-node-list li'
).
click
(
function
(
e
)
{
var
li
=
$
(
this
).
closest
(
'li'
);
if
(
li
.
find
(
'input'
).
attr
(
'disabled'
))
...
...
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