Fix the delete button submitting the form
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 25 Feb 2009 20:41:28 +0000
changeset 1499 1dec049246d3
parent 1498 00293057b009
child 1500 a495ae7efc70
Fix the delete button submitting the form Patch by: Sverre Rabbelier
app/soc/templates/soc/models/edit.html
--- a/app/soc/templates/soc/models/edit.html	Wed Feb 25 20:11:22 2009 +0000
+++ b/app/soc/templates/soc/models/edit.html	Wed Feb 25 20:41:28 2009 +0000
@@ -62,10 +62,10 @@
    {% block delete_button %}
    <td>
 
-   <input type="submit" class="button" value="Delete"
+   <input type="button" class="button" value="Delete"
     onclick="if(confirm('Are you sure you want to delete this {{ entity_type }}?')) {
-                location.href='/{{ entity_type_url|lower }}/delete/{{ entity_suffix }}'
-                };"/>
+                location.href='/{{ entity_type_url|lower }}/delete/{{ entity_suffix }}';
+                }"/>
 
    </td>
    {% endblock %}