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
c8a7027b
authored
Feb 19, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: ajax delete (public keys)
parent
eb6e3c83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
one/static/script/cloud.js
+15
-0
one/templates/box/key/entry.html
+1
-1
No files found.
one/static/script/cloud.js
View file @
c8a7027b
...
...
@@ -14,6 +14,21 @@ $(function() {
e
.
stopPropagation
();
delete_template_confirm
(
$
(
this
).
data
(
'id'
),
$
(
this
).
data
(
'name'
));
});
$
(
'.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
(){
$
.
ajax
({
'type'
:
'POST'
,
'data'
:
'id='
+
id
,
'url'
:
'/ajax/key/delete/'
,
'success'
:
function
(){
$
(
'#key-'
+
id
).
slideUp
(
700
);
}
});
});
});
$
(
'.entry .summary'
).
unbind
(
'click'
).
click
(
toggleDetails
);
if
(
window
.
navigator
.
userAgent
.
indexOf
(
'cloud-gui'
)
>
-
1
)
{
$
(
'.connect-vm-button'
).
click
(
function
(
e
)
{
...
...
one/templates/box/key/entry.html
View file @
c8a7027b
...
...
@@ -3,7 +3,7 @@
{% get_current_language as LANGUAGE_CODE %}
{% block content %}
<li
class=
"entry"
>
<li
class=
"entry"
id=
"key-{{key.id}}"
>
{{block.super}}
</li>
{% endblock content %}
...
...
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