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
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() {
...
@@ -14,17 +14,17 @@ $(function() {
e
.
stopPropagation
();
e
.
stopPropagation
();
delete_template_confirm
(
$
(
this
).
data
(
'id'
),
$
(
this
).
data
(
'name'
));
delete_template_confirm
(
$
(
this
).
data
(
'id'
),
$
(
this
).
data
(
'name'
));
});
});
$
(
'.delete-key-button'
).
click
(
function
(
e
){
$
(
'.delete-key-button'
).
click
(
function
(
e
)
{
var
id
=
$
(
this
).
data
(
'id'
);
var
id
=
$
(
this
).
data
(
'id'
);
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
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
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'data'
:
'id='
+
id
,
'data'
:
'id='
+
id
,
'url'
:
'/ajax/key/delete/'
,
'url'
:
'/ajax/key/delete/'
,
'success'
:
function
(){
'success'
:
function
()
{
$
(
'#key-'
+
id
).
slideUp
(
700
);
$
(
'#key-'
+
id
).
slideUp
(
700
);
}
}
});
});
});
});
...
@@ -41,19 +41,19 @@ $(function() {
...
@@ -41,19 +41,19 @@ $(function() {
e
.
stopPropagation
();
e
.
stopPropagation
();
});
});
}
}
$
(
'.rename-vm'
).
click
(
function
(
e
){
$
(
'.rename-vm'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
id
=
$
(
this
).
data
(
'id'
);
var
id
=
$
(
this
).
data
(
'id'
);
var
oldName
=
$
(
this
).
data
(
'name'
);
var
oldName
=
$
(
this
).
data
(
'name'
);
$
(
'#vm-'
+
id
+
'-name-details'
).
hide
();
$
(
'#vm-'
+
id
+
'-name-details'
).
hide
();
$
(
'#vm-'
+
id
+
'-name'
).
html
(
'<input type="text" value="'
+
name
+
'" />\
$
(
'#vm-'
+
id
+
'-name'
).
html
(
'<input type="text" value="'
+
name
+
'" />\
<input type="submit" value="'
+
gettext
(
'Rename'
)
+
'" />'
);
<input type="submit" value="'
+
gettext
(
'Rename'
)
+
'" />'
);
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type="text"]'
).
click
(
function
(
f
)
{
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type="text"]'
).
click
(
function
(
f
)
{
f
.
preventDefault
();
f
.
preventDefault
();
f
.
stopPropagation
();
f
.
stopPropagation
();
}).
focus
();
}).
focus
();
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type=submit]'
).
click
(
function
(
f
)
{
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type=submit]'
).
click
(
function
(
f
)
{
f
.
preventDefault
();
f
.
preventDefault
();
f
.
stopPropagation
();
f
.
stopPropagation
();
alert
(
$
(
this
).
prev
().
val
());
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