[FIX]deduction delete confirmation not showing issue

This commit is contained in:
Horilla
2023-09-07 17:42:44 +05:30
parent 34bb9fc016
commit a80cddb24a
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@
aria-label="create outline"
></ion-icon>{% trans "Edit" %}
</a>
<a href="{% url 'delete-allowance' allowance.id %}" class="oh-btn oh-btn--danger"style="width: 50%;">
<a href="{% url 'delete-allowance' allowance.id %}" onclick="event.preventDefault();event.stopPropagation(); confirm(`Do you want to delete this allowance?`)" class="oh-btn oh-btn--danger"style="width: 50%;">
<ion-icon
name="trash-outline"
role="img"

View File

@@ -86,7 +86,7 @@
aria-label="create outline"
></ion-icon>{% trans "Edit" %}
</a>
<a href="{% url 'delete-deduction' deduction.id %}" class="oh-btn oh-btn--danger"style="width: 50%;">
<a href="{% url 'delete-deduction' deduction.id %}" onclick="event.preventDefault();event.stopPropagation(); confirm(`Do you want to delete this deduction?`)" class="oh-btn oh-btn--danger"style="width: 50%;">
<ion-icon
name="trash-outline"
role="img"