diff --git a/core/module/config/view/backup/backup.js.php b/core/module/config/view/backup/backup.js.php index cfa4a152..c6de6e3f 100644 --- a/core/module/config/view/backup/backup.js.php +++ b/core/module/config/view/backup/backup.js.php @@ -36,5 +36,14 @@ $( document).ready(function() { } }); }); + + /** + * Avertissement de sauvegarde complète + */ + $("#configBackupSubmit").click(function(event) { + if( core.alert("Une sauvegarde complète pourra prendre du temps, merci de patienter.") ) { + event.preventDefault(); + } + }); }); diff --git a/core/module/config/view/restore/restore.js.php b/core/module/config/view/restore/restore.js.php new file mode 100644 index 00000000..80e2c6d9 --- /dev/null +++ b/core/module/config/view/restore/restore.js.php @@ -0,0 +1,26 @@ +/** + * This file is part of Zwii. + * + * For full copyright and license information, please see the LICENSE + * file that was distributed with this source code. + * + * @author Frédéric Tempez + * @copyright Copyright (C) 2018-2021, Frédéric Tempez + * @license GNU General Public License, version 3 + * @link http://zwiicms.fr/ + */ + +$( document).ready(function() { + + $('body').css('cursor', 'default'); + + /** + * Avertissement de restauration + */ + $("#configRestoreSubmit").click(function(event) { + if( core.alert("Une restauration complète pourra prendre du temps, merci de patienter.") ) + event.preventDefault(); + $('body').css('cursor', 'wait'); + }); + +}); \ No newline at end of file