Fix bug where cancelling deletion confirmation would not work
This commit is contained in:
parent
dca300fd58
commit
0194a4e006
@ -57,7 +57,7 @@
|
||||
|
||||
<div class="flex justify-end mt-4 space-x-2">
|
||||
{% if assertion and assertion.id %}
|
||||
<button type="submit" name="action" value="delete" class="btn-secondary text-red-600 ring-red-500" onclick="confirm('Are you sure you want to delete this balance assertion? This operation is irreversible.')">Delete</button>
|
||||
<button type="submit" name="action" value="delete" class="btn-secondary text-red-600 ring-red-500" onclick="return confirm('Are you sure you want to delete this balance assertion? This operation is irreversible.');">Delete</button>
|
||||
{% endif %}
|
||||
<button type="submit" class="btn-primary">Save</button>
|
||||
</div>
|
||||
|
@ -176,7 +176,7 @@
|
||||
|
||||
<div class="flex justify-end mt-4 space-x-2">
|
||||
{% if transaction and transaction.id %}
|
||||
<button type="submit" name="action" value="delete" class="btn-secondary text-red-600 ring-red-500" onclick="confirm('Are you sure you want to delete this transaction? This operation is irreversible.')">Delete</button>
|
||||
<button type="submit" name="action" value="delete" class="btn-secondary text-red-600 ring-red-500" onclick="return confirm('Are you sure you want to delete this transaction? This operation is irreversible.');">Delete</button>
|
||||
{% endif %}
|
||||
<button type="submit" class="btn-primary">Save</button>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user