From cd4ed108b89f9d4be424b0d094665ab299b397ca Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 6 Dec 2021 11:37:03 +0100 Subject: [PATCH] .18 cookie absent --- core/core.php | 2 +- core/module/config/view/index/index.js.php | 15 +++------------ 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/core/core.php b/core/core.php index 9b8d4f38..7de4ec1e 100644 --- a/core/core.php +++ b/core/core.php @@ -45,7 +45,7 @@ class common { // Numéro de version const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/'; - const ZWII_VERSION = '11.2.00.17'; + const ZWII_VERSION = '11.2.00.18'; const ZWII_UPDATE_CHANNEL = "test"; public static $actions = []; diff --git a/core/module/config/view/index/index.js.php b/core/module/config/view/index/index.js.php index 789f052e..ae90312f 100644 --- a/core/module/config/view/index/index.js.php +++ b/core/module/config/view/index/index.js.php @@ -39,17 +39,8 @@ $( document).ready(function() { } var configLayout = getCookie("configLayout"); - if (configLayout == "null") { - $("#localeContainer").hide(); - $("#socialContainer").hide(); - $("#connectContainer").hide(); - $("#networkContainer").hide(); - $("#setupContainer").show(); - $("#configSetupButton").addClass("activeButton"); - $("#configLocaleButton").removeClass("activeButton"); - $("#configSocialButton").removeClass("activeButton"); - $("#configConnectButton").removeClass("activeButton"); - $("#configNetworkButton").removeClass("activeButton"); + if (configLayout == null) { + configLayout = "setup"; setCookie("configLayout","setup"); } $("#localeContainer").hide(); @@ -235,4 +226,4 @@ function getCookie(name) { // Define function to capitalize the first letter of a string function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); - } \ No newline at end of file +} \ No newline at end of file