From 3e3f9496fec09e0083b282f0a35f4e0a191280bc Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 15 Feb 2019 10:09:29 +0100 Subject: [PATCH] suppression module inutile --- core/module/page/view/block/block.js.php | 102 ----------------------- core/module/page/view/block/block.php | 33 -------- 2 files changed, 135 deletions(-) delete mode 100644 core/module/page/view/block/block.js.php delete mode 100644 core/module/page/view/block/block.php diff --git a/core/module/page/view/block/block.js.php b/core/module/page/view/block/block.js.php deleted file mode 100644 index d21cf5f7..00000000 --- a/core/module/page/view/block/block.js.php +++ /dev/null @@ -1,102 +0,0 @@ -/** - * 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 Rémi Jean - * @copyright Copyright (C) 2008-2018, Rémi Jean - * @license GNU General Public License, version 3 - * @link http://zwiicms.com/ - */ - -/** - * Confirmation de suppression - */ -$("#pageEditDelete").on("click", function() { - var _this = $(this); - return core.confirm("Êtes-vous sûr de vouloir supprimer cette page ?", function() { - $(location).attr("href", _this.attr("href")); - }); -}); - -/** - * Bloque/Débloque le bouton de configuration au changement de module - */ -var pageEditModuleIdDOM = $("#pageEditModuleId"); -pageEditModuleIdDOM.on("change", function() { - if($(this).val() === "") { - $("#pageEditModuleConfig").addClass("disabled"); - $("#pageEditContentContainer").slideDown(); - } - else { - $("#pageEditModuleConfig").removeClass("disabled"); - $("#pageEditContentContainer").slideUp(); - } -}); - -/** - * Soumission du formulaire pour éditer le module - */ -$("#pageEditModuleConfig").on("click", function() { - $("#pageEditModuleRedirect").val(1); - $("#pageEditForm").trigger("submit"); -}); - -/** - * Affiche les pages en fonction de la page parent dans le choix de la position - */ -var hierarchy = getHierarchy()); ?>; -var pages = getData(['page'])); ?>; -$("#pageEditParentPageId").on("change", function() { - var positionDOM = $("#pageEditPosition"); - positionDOM.empty().append( - $("