ui: Add withdrawal confirm popup.

This commit is contained in:
tecnovert committed 2021-11-01 17:33:51 +02:00
1 parent f9f26c92c2
commit 965db389f6
5 files changed
+16 -13

No files matched your search

+2 -2
View File
@@ -65,7 +65,7 @@
{% else %}
<input type="submit" name="newbid" value="New Bid">
{% if data.sent == 'True' and data.was_revoked != true %}
<input name="revoke_offer" type="submit" value="Revoke Offer" onclick="confirmPopup()">
<input name="revoke_offer" type="submit" value="Revoke Offer" onclick="return confirmPopup();">
{% endif %}
{% endif %}
<input type="hidden" name="formid" value="{{ form_id }}">
@@ -83,7 +83,7 @@
<script>
function confirmPopup() {
confirm("Are you sure?");
return confirm("Are you sure?");
}
</script>
</body></html>