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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
a123cd4a
authored
Mar 18, 2013
by
Bence Dányi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: vm-rename fixed
parent
350e4d2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
one/static/script/cloud.js
+2
-1
one/templates/box/vm/summary.html
+1
-1
No files found.
one/static/script/cloud.js
View file @
a123cd4a
...
...
@@ -63,6 +63,7 @@ $(function() {
var
oldName
=
$
(
this
).
data
(
'name'
);
var
content
=
$
(
'#vm-'
+
id
+
'-name'
).
html
();
var
self
=
this
;
var
url
=
$
(
this
).
data
(
'url'
);
$
(
this
).
unbind
(
'click'
).
click
(
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
...
...
@@ -72,7 +73,7 @@ $(function() {
})
$
(
'#vm-'
+
id
+
'-name-details'
).
hide
();
$
(
'#vm-'
+
id
+
'-name'
).
html
(
'<input type="text" value="'
+
oldName
+
'" />\
<input type="submit" value="'
+
gettext
(
'Rename'
)
+
'" />'
);
<input type="submit" value="'
+
gettext
(
'Rename'
)
+
'"
data-url="'
+
url
+
'"
/>'
);
$
(
'#vm-'
+
id
+
'-name'
).
find
(
'input[type="text"]'
).
click
(
function
(
f
)
{
f
.
preventDefault
();
f
.
stopPropagation
();
...
...
one/templates/box/vm/summary.html
View file @
a123cd4a
...
...
@@ -23,7 +23,7 @@
{% endblock status %}
{% block actions %}
<a
href=
"#"
class=
"rename-vm"
data-name=
"{{ vm.name }}"
data-id=
"{{ vm.id }}"
title=
"{% trans "
Edit
name
"
%}"
>
<a
href=
"#"
class=
"rename-vm"
data-name=
"{{ vm.name }}"
data-id=
"{{ vm.id }}"
title=
"{% trans "
Edit
name
"
%}"
data-url=
"{% url one.views.vm_ajax_rename iid=vm.id %}"
>
<img
src=
"{% static "
icons
/
pencil
.
png
"
%}"
alt=
"{% trans "
Edit
name
"
%}"
/>
</a>
{% if vm.waiting %}
...
...
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