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
a34e071a
authored
Feb 20, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: stop event propagation on template-unshare
parent
46445a7f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
one/static/script/cloud.js
+3
-0
one/templates/box/template/box.html
+1
-1
one/templates/box/template/summary.html
+1
-1
No files found.
one/static/script/cloud.js
View file @
a34e071a
...
...
@@ -138,6 +138,9 @@ $(function() {
})
$
(
'#modal'
).
show
();
});
$
(
'.template-unshare'
).
click
(
function
(
e
){
e
.
stopPropagation
();
});
$
(
'#old-upload'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
$
(
this
).
parent
().
parent
().
hide
().
parent
().
find
(
'#old-upload-form'
).
show
();
...
...
one/templates/box/template/box.html
View file @
a34e071a
...
...
@@ -64,7 +64,7 @@
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %}
<input
type=
"submit"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
<input
type=
"submit"
class=
"template-unshare"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
</form>
<div
class=
"clear"
></div>
</li>
...
...
one/templates/box/template/summary.html
View file @
a34e071a
...
...
@@ -17,7 +17,7 @@
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %}
<input
class=
"unshare"
type=
"submit"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
<input
class=
"
template-
unshare"
type=
"submit"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
</form>
<div
class=
"clear"
></div>
</li>
...
...
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