Fix bug where cancelling deletion confirmation would not work

This commit is contained in:
RunasSudo 2024-08-16 22:21:10 +10:00
parent dca300fd58
commit 0194a4e006
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>