avertissement backup et (restore à terminer)

This commit is contained in:
fredtempez 2021-11-15 14:22:36 +01:00
parent 12e21a3067
commit 3cd1f633ed
2 changed files with 35 additions and 0 deletions

View File

@ -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();
}
});
});

View File

@ -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 <frederic.tempez@outlook.com>
* @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');
});
});