From ef3dd0e7410842e2538314f7c62806d169ca3d03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= <jose.gonzalez@pandorafms.com>
Date: Wed, 29 Jun 2022 10:20:17 +0200
Subject: [PATCH] Improved error message

---
 pandora_console/index.php | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/pandora_console/index.php b/pandora_console/index.php
index c933aadeb4..3a5409aa16 100755
--- a/pandora_console/index.php
+++ b/pandora_console/index.php
@@ -1509,12 +1509,10 @@ require 'include/php_to_js_values.php';
     <?php if (empty($errorFileOutput) === false) : ?>
         // There are one issue with the file that you trying to catch. Show a dialog with message.
         $(document).ready(function() {
-            $('body').append('<div id="modalAlert"><?php echo io_safe_output($errorFileOutput); ?></div>');
-            $("#modalAlert").dialog ({
-                title: '<?php echo __('Error'); ?>',
-                resizable: false,
-                draggable: false,
-                width: 450
+            confirmDialog({
+                title: "<?php echo __('Error'); ?>",
+                message: "<?php echo io_safe_output($errorFileOutput); ?>",
+                hideCancelButton: true,
             });
         });
     <?php endif; ?>