From 111deef9231399b54854ec8762d13a6e120b252c Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 4 Feb 2024 01:27:44 +0100 Subject: [PATCH] Feedback form: code optimization --- emhttp/plugins/dynamix/scripts/feedback | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/feedback b/emhttp/plugins/dynamix/scripts/feedback index a3bfc8626..7717d7cb2 100755 --- a/emhttp/plugins/dynamix/scripts/feedback +++ b/emhttp/plugins/dynamix/scripts/feedback @@ -192,13 +192,13 @@ function form_submit(url, params, tab, diagnostics) { var success_message = '

!

'+data.message+'

'; $('#reply_panel').html(success_message).fadeIn('fast'); } - }).fail(function(jqXHR, textStatus, errorThrown) { + }).fail(function(jqXHR, textStatus, errorThrown){ if (jqXHR.responseJSON && jqXHR.responseJSON.error) { errorThrown = jqXHR.responseJSON.error; } var failure_message = "

. .

"; $('#reply_panel').html(failure_message).fadeIn('fast'); - }).always(function() { + }).always(function(){ $('#spinner_image').fadeOut('fast'); panel.fadeOut('fast').find('textarea').prop('disabled',false); });