From cfdfb49fa254ef778bf113d794c5946d9ae65fa7 Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 4 Feb 2024 02:59:07 +0100 Subject: [PATCH] Feedback form: code optimization --- emhttp/plugins/dynamix/scripts/feedback | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/scripts/feedback b/emhttp/plugins/dynamix/scripts/feedback index ce75ca9d8..526118150 100755 --- a/emhttp/plugins/dynamix/scripts/feedback +++ b/emhttp/plugins/dynamix/scripts/feedback @@ -195,9 +195,8 @@ function form_submit(url, params, tab, diagnostics) { var reply = "


.

"; $('#reply_panel').html(reply).fadeIn('fast'); } else { - data.message = data.message || ''; var name = tab.substr(1).toLowerCase(); - var reply = "


"+data.message+"

"; + var reply = "


"+(data.message||'')+"

"; $('#reply_panel').html(reply).fadeIn('fast'); } }).fail(function(jqXHR, textStatus, errorThrown){