2022-01-31 09:10:49 +01:00
|
|
|
/**
|
|
|
|
* This file is part of DeltaCMS.
|
|
|
|
* For full copyright and license information, please see the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
* @author Sylvain Lelièvre <lelievresylvain@free.fr>
|
|
|
|
* @copyright Copyright (C) 2021-2022, Sylvain Lelièvre
|
|
|
|
* @license GNU General Public License, version 3
|
|
|
|
* @link https://deltacms.fr/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Confirmation de suppression de tous les évènements
|
|
|
|
*/
|
|
|
|
$(".configSup").on("click", function() {
|
|
|
|
var _this = $(this);
|
2022-03-18 07:50:13 +01:00
|
|
|
var text="";
|
|
|
|
<?php if( $this->getData(['config', 'i18n', 'langAdmin' ]) === 'fr'){
|
|
|
|
echo 'text = "Êtes-vous sûr de vouloir supprimer tous les évènements de votre agenda ?";' ;
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
echo 'text = "Are you sure you want to delete all the events from your calendar ?";' ;
|
|
|
|
} ?>
|
|
|
|
|
|
|
|
return core.confirm( text, function() {
|
2022-01-31 09:10:49 +01:00
|
|
|
$(location).attr("href", _this.attr("href"));
|
|
|
|
});
|
|
|
|
});
|