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
Commit
1bde322c
authored
Mar 11, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: use urls in js from dom data attrs 1
parent
b50cf907
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
one/static/script/cloud.js
+3
-3
one/templates/box/file/box.html
+1
-1
one/templates/box/key/entry.html
+1
-1
No files found.
one/static/script/cloud.js
View file @
1bde322c
...
...
@@ -25,7 +25,7 @@ $(function() {
$
.
ajax
({
'type'
:
'POST'
,
'data'
:
'id='
+
id
,
'url'
:
'/ajax/key/delete/'
,
'url'
:
$
(
this
).
data
(
'url'
)
,
'success'
:
function
()
{
$
(
'#key-'
+
id
).
slideUp
(
700
);
}
...
...
@@ -36,7 +36,7 @@ $(function() {
vm_confirm_popup
(
gettext
(
'Are you sure about reseting store credentials?<br /> You will lose your access to your store account on your existing virtual machines!'
),
gettext
(
'Reset'
),
function
()
{
$
.
ajax
({
type
:
'POST'
,
url
:
'/ajax/key/reset/'
,
url
:
$
(
this
).
data
(
'url'
)
,
success
:
function
()
{
window
.
location
.
reload
();
}
...
...
@@ -85,7 +85,7 @@ $(function() {
type
:
'POST'
,
data
:
'name='
+
newName
,
dataType
:
'json'
,
url
:
'/ajax/vm/rename/'
+
id
+
'/'
,
url
:
$
(
this
).
data
(
'url'
)
,
success
:
function
(
data
)
{
$
(
'#vm-'
+
id
+
'-name-details'
).
removeAttr
(
'style'
);
$
(
'#vm-'
+
id
+
'-name'
).
text
(
data
.
name
);
...
...
one/templates/box/file/box.html
View file @
1bde322c
...
...
@@ -115,7 +115,7 @@
</div>
</li>
<li
class=
"entry small-row key"
style=
"display: none"
>
<div
class=
"summary"
id=
"reset-key"
>
<div
class=
"summary"
id=
"reset-key"
data-url=
"{% url one.views.key_ajax_reset %}"
>
<div
class=
"name"
>
{% trans "Reset key" %}
</div>
<div
class=
"clear"
></div>
</div>
...
...
one/templates/box/key/entry.html
View file @
1bde322c
...
...
@@ -15,7 +15,7 @@
{{key}}
</div>
<div
class=
"actions"
>
<a
href=
"#"
class=
"remove delete-key"
data-id=
"{{key.id}}"
>
<a
href=
"#"
class=
"remove delete-key"
data-
url=
"{% url one.views.key_ajax_delete %}"
data-
id=
"{{key.id}}"
>
<img
src=
"{% static "
icons
/
minus-circle
.
png
"
%}"
alt=
"{% trans 'Remove' %}"
/>
</a>
</div>
...
...
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