Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
Respect My Net
Commits
611118a9
Commit
611118a9
authored
Sep 21, 2011
by
stef
Browse files
[fix] confirm button on index not a link, but button
parent
76839f2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/index.html
View file @
611118a9
...
...
@@ -77,8 +77,8 @@ $(document).ready(function(){
+
"
-h6,hr[size|noshade],dd,dl,dt,cite,abbr,acronym,
"
+
"
del[datetime|cite],ins[datetime|cite]
"
,
});
$
(
"
.confirm
> .button
"
).
click
(
function
(){
$
(
this
).
parent
().
parent
().
parent
().
find
(
'
.info-validate
'
).
toggle
();
$
(
"
.confirm
"
).
click
(
function
(){
$
(
this
).
parent
().
parent
().
find
(
'
.info-validate
'
).
toggle
();
});
$
(
"
.cancel-button
"
).
click
(
function
(){
$
(
this
).
parent
().
parent
().
hide
();
...
...
@@ -137,12 +137,12 @@ $(document).ready(function(){
<input
type=
"text"
name=
"email"
/>
<input
type=
"hidden"
value=
"{{ violation.pk }}"
/>
<input
type=
"submit"
value=
"{% trans "
confirm
"
%}"
/>
<input
class=
"cancel-button"
type=
"button"
value=
"{% trans "
cancel
"
%}"
/>
<input
class=
"cancel-button
button
"
type=
"button"
value=
"{% trans "
cancel
"
%}"
/>
</form>
</div>
</td>
<td
class=
'align-right'
>
{{ violation.confirmations }}
</td>
<td
class=
'align-right'
><
div
class=
"confirm"
><a
class=
"button"
>
confirm
</a></div
>
<td
class=
'align-right'
><
input
type=
"button"
class=
"confirm button"
value=
"confirm"
/
>
</td>
</tr>
{% endfor %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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