Commit 611118a9 authored by stef's avatar stef
Browse files

[fix] confirm button on index not a link, but button

parent 76839f2b
...@@ -77,8 +77,8 @@ $(document).ready(function(){ ...@@ -77,8 +77,8 @@ $(document).ready(function(){
+ "-h6,hr[size|noshade],dd,dl,dt,cite,abbr,acronym," + "-h6,hr[size|noshade],dd,dl,dt,cite,abbr,acronym,"
+ "del[datetime|cite],ins[datetime|cite]", + "del[datetime|cite],ins[datetime|cite]",
}); });
$(".confirm > .button").click(function(){ $(".confirm").click(function(){
$(this).parent().parent().parent().find('.info-validate').toggle(); $(this).parent().parent().find('.info-validate').toggle();
}); });
$(".cancel-button").click(function(){ $(".cancel-button").click(function(){
$(this).parent().parent().hide(); $(this).parent().parent().hide();
...@@ -137,12 +137,12 @@ $(document).ready(function(){ ...@@ -137,12 +137,12 @@ $(document).ready(function(){
<input type="text" name="email" /> <input type="text" name="email" />
<input type="hidden" value="{{ violation.pk }}" /> <input type="hidden" value="{{ violation.pk }}" />
<input type="submit" value="{% trans "confirm" %}" /> <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> </form>
</div> </div>
</td> </td>
<td class='align-right'>{{ violation.confirmations }}</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> </td>
</tr> </tr>
{% endfor %} {% endfor %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment