[10.0.69.dev] ajoute une confirmation lors de la suppression d'une langue

This commit is contained in:
fredtempez 2019-11-05 09:46:24 +01:00
parent 51020a8a86
commit 6930a2093c
2 changed files with 22 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class common {
const TEMP_DIR = 'site/tmp/';
// Numéro de version
const ZWII_VERSION = '10.0.68.dev';
const ZWII_VERSION = '10.0.69.dev';
public static $actions = [];
public static $coreModuleIds = [

View File

@ -0,0 +1,21 @@
/**
* 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-2020, Frédéric Tempez
* @license GNU General Public License, version 3
* @link http://zwiicms.com/
*/
/**
* Confirmation de suppression
*/
$(".i18nDelete").on("click", function() {
var _this = $(this);
return core.confirm("Êtes-vous sûr de vouloir supprimer cette langue ?", function() {
$(location).attr("href", _this.attr("href"));
});
});