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
18c6833f
authored
Feb 20, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: whitespace fix
parent
c1d5211f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
one/static/script/cloud.js
+14
-14
No files found.
one/static/script/cloud.js
View file @
18c6833f
...
...
@@ -14,17 +14,17 @@ $(function() {
e
.
stopPropagation
();
delete_template_confirm
(
$
(
this
).
data
(
'id'
),
$
(
this
).
data
(
'name'
));
});
$
(
'.delete-key-button'
).
click
(
function
(
e
){
var
id
=
$
(
this
).
data
(
'id'
);
$
(
'.delete-key-button'
).
click
(
function
(
e
)
{
var
id
=
$
(
this
).
data
(
'id'
);
e
.
preventDefault
();
e
.
stopPropagation
();
vm_confirm_popup
(
gettext
(
'Are you sure deleting key?'
),
gettext
(
'Delete'
),
function
(){
vm_confirm_popup
(
gettext
(
'Are you sure deleting key?'
),
gettext
(
'Delete'
),
function
()
{
$
.
ajax
({
'type'
:
'POST'
,
'data'
:
'id='
+
id
,
'data'
:
'id='
+
id
,
'url'
:
'/ajax/key/delete/'
,
'success'
:
function
(){
$
(
'#key-'
+
id
).
slideUp
(
700
);
'success'
:
function
()
{
$
(
'#key-'
+
id
).
slideUp
(
700
);
}
});
});
...
...
@@ -41,19 +41,19 @@ $(function() {
e
.
stopPropagation
();
});
}
$
(
'.rename-vm'
).
click
(
function
(
e
){
$
(
'.rename-vm'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
var
id
=
$
(
this
).
data
(
'id'
);
var
oldName
=
$
(
this
).
data
(
'name'
);
$
(
'#vm-'
+
id
+
'-name-details'
).
hide
();
$
(
'#vm-'
+
id
+
'-name'
).
html
(
'<input type="text" value="'
+
name
+
'" />\
<input type="submit" value="'
+
gettext
(
'Rename'
)
+
'" />'
);
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type="text"]'
).
click
(
function
(
f
)
{
var
id
=
$
(
this
).
data
(
'id'
);
var
oldName
=
$
(
this
).
data
(
'name'
);
$
(
'#vm-'
+
id
+
'-name-details'
).
hide
();
$
(
'#vm-'
+
id
+
'-name'
).
html
(
'<input type="text" value="'
+
name
+
'" />\
<input type="submit" value="'
+
gettext
(
'Rename'
)
+
'" />'
);
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type="text"]'
).
click
(
function
(
f
)
{
f
.
preventDefault
();
f
.
stopPropagation
();
}).
focus
();
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type=submit]'
).
click
(
function
(
f
)
{
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type=submit]'
).
click
(
function
(
f
)
{
f
.
preventDefault
();
f
.
stopPropagation
();
alert
(
$
(
this
).
prev
().
val
());
...
...
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