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
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
Hide 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 @@
...
@@ -2,22 +2,21 @@
$
(
function
()
{
$
(
function
()
{
/* vm migrate */
/* vm operations */
$
(
'.vm-migrate'
).
click
(
function
(
e
)
{
$
(
'.operation.btn'
).
click
(
function
(
e
)
{
var
icon
=
$
(
this
).
children
(
"i"
);
var
icon
=
$
(
this
).
children
(
"i"
).
addClass
(
'icon-spinner icon-spin'
);
var
vm
=
$
(
this
).
data
(
"vm-pk"
);
icon
.
removeClass
(
"icon-truck"
).
addClass
(
"icon-spinner icon-spin"
);
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/dashboard/vm/'
+
vm
+
'/migrate/'
,
url
:
$
(
this
).
attr
(
'href'
),
success
:
function
(
data
)
{
success
:
function
(
data
)
{
icon
.
addClass
(
"icon-truck"
).
removeClass
(
"icon-spinner icon-spin"
);
icon
.
removeClass
(
"icon-spinner icon-spin"
);
$
(
'body'
).
append
(
data
);
$
(
'body'
).
append
(
data
);
$
(
'#c
reate
-modal'
).
modal
(
'show'
);
$
(
'#c
onfirmation
-modal'
).
modal
(
'show'
);
$
(
'#c
reate
-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
$
(
'#c
onfirmation
-modal'
).
on
(
'hidden.bs.modal'
,
function
()
{
$
(
'#c
reate
-modal'
).
remove
();
$
(
'#c
onfirmation
-modal'
).
remove
();
});
});
$
(
'#vm-migrate-node-list li'
).
click
(
function
(
e
)
{
$
(
'#vm-migrate-node-list li'
).
click
(
function
(
e
)
{
var
li
=
$
(
this
).
closest
(
'li'
);
var
li
=
$
(
this
).
closest
(
'li'
);
if
(
li
.
find
(
'input'
).
attr
(
'disabled'
))
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