Improved error message

This commit is contained in:
José González 2022-06-29 10:20:17 +02:00
parent e86d8b761d
commit ef3dd0e741

View File

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