Improved error message

This commit is contained in:
José González 2022-06-29 10:20:17 +02:00
parent e86d8b761d
commit ef3dd0e741
1 changed files with 4 additions and 6 deletions

View File

@ -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; ?>