From 14d1ef16bcdbc84c5f115c08660c74a378f4017c Mon Sep 17 00:00:00 2001 From: Robin Kluth Date: Thu, 8 Feb 2024 17:13:08 +0100 Subject: [PATCH] Correct feeback direct response --- src/pages/content/direct_feedback.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/content/direct_feedback.php b/src/pages/content/direct_feedback.php index e5c58ff..91680ef 100644 --- a/src/pages/content/direct_feedback.php +++ b/src/pages/content/direct_feedback.php @@ -13,9 +13,13 @@ function betaFeedback() { }).fail(function (data) { alert('Error during HTTP request!'); }).done(function (data) { - alert(data.msg); + if (!data.success) { + alert(data.msg); + } else { + alert("Beta feedback sent! Thank you!"); + } }).always(function () { - $('#ab_beta_feedback').html(''); + $('#ab_beta_feedback').val(''); }); } \ No newline at end of file