From 9c234eef8542febb8165a49bde2327b773be5b8b Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 11 May 2021 13:48:09 +0000 Subject: [PATCH] Ent 7087 mensaje duplicado en los test mails --- pandora_console/godmode/setup/setup_general.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/setup/setup_general.php b/pandora_console/godmode/setup/setup_general.php index 50733b2727..f611b14b7f 100644 --- a/pandora_console/godmode/setup/setup_general.php +++ b/pandora_console/godmode/setup/setup_general.php @@ -641,8 +641,8 @@ echo ''.__('Mail configuration').''; $table_mail_test->width = '100%'; $table_mail_test->class = 'databox filters'; $table_mail_test->data = []; - $table_mail_test->style[0] = 'font-weight: bold'; - $table_mail_test->colspan[1][0] = 2; + $table_mail_test->style[0] = 'font-weight: bold;'; + $table_mail_test->style[1] = 'font-weight: bold;display: flex;height: 54px;align-items: center;'; $table_mail_test->data[0][0] = __('Address'); $table_mail_test->data[0][1] = html_print_input_text( @@ -661,7 +661,9 @@ echo ''.__('Mail configuration').''; '', 'class="sub next"', true - ).'  Email could not be sent'; + ); + + $table_mail_test->data[1][1] = '  Email could not be sent'; echo ''; } @@ -703,6 +705,9 @@ function show_email_test(id) { } function perform_email_test () { + $('#email_test_sent_message').hide(); + $('#email_test_failure_message').hide(); + var test_address = $('#text-email_test_address').val(); $.ajax({ @@ -713,12 +718,15 @@ function perform_email_test () { success: function(data) { if (parseInt(data) === 1) { $('#email_test_sent_message').show(); + $('#email_test_failure_message').hide(); } else { $('#email_test_failure_message').show(); + $('#email_test_sent_message').hide(); } }, error: function() { $('#email_test_failure_message').show(); + $('#email_test_sent_message').hide(); }, }); }