From 526a25929d1731022b84208a644dfcff4ff3b94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sondre=20Gr=C3=B8n=C3=A5s?= Date: Tue, 19 Sep 2023 11:12:22 +0200 Subject: [PATCH] Update return.html --- BookingSystem/templates/forms/return.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/BookingSystem/templates/forms/return.html b/BookingSystem/templates/forms/return.html index c48ed8b..d0817b4 100644 --- a/BookingSystem/templates/forms/return.html +++ b/BookingSystem/templates/forms/return.html @@ -43,16 +43,18 @@ $('#active tr').filter(function () { return $(this).find('td').eq(0).text() === $('#id').val(); }).remove(); + // Clear the input field + $('#id').val(''); }, error: function (result) { iziToast.error({ title: 'Feil!', message: result.responseText, }) + // Clear the input field + $('#id').val(''); } }); - // Clear the input field - $('#id').val(''); }); }); - \ No newline at end of file +