Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
Hide 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() {
...
@@ -138,6 +138,9 @@ $(function() {
})
})
$
(
'#modal'
).
show
();
$
(
'#modal'
).
show
();
});
});
$
(
'.template-unshare'
).
click
(
function
(
e
){
e
.
stopPropagation
();
});
$
(
'#old-upload'
).
click
(
function
(
e
)
{
$
(
'#old-upload'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
$
(
this
).
parent
().
parent
().
hide
().
parent
().
find
(
'#old-upload-form'
).
show
();
$
(
this
).
parent
().
parent
().
hide
().
parent
().
find
(
'#old-upload-form'
).
show
();
...
...
one/templates/box/template/box.html
View file @
a34e071a
...
@@ -64,7 +64,7 @@
...
@@ -64,7 +64,7 @@
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{i.get_running}}/{{i.instance_limit}})
({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %}
{% csrf_token %}
<input
type=
"submit"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
<input
type=
"submit"
class=
"template-unshare"
value=
"{% trans "
Delete
"
%}"
style=
"float: right"
/>
</form>
</form>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</li>
</li>
...
...
one/templates/box/template/summary.html
View file @
a34e071a
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
<span
title=
"{{i.name}}"
>
{{i.name|truncatechars:20}}
</span>
({{i.get_running}}/{{i.instance_limit}})
({{i.get_running}}/{{i.instance_limit}})
{% csrf_token %}
{% 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>
</form>
<div
class=
"clear"
></div>
<div
class=
"clear"
></div>
</li>
</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