forked from ZwiiCMS-Team/ZwiiCMS
Restriction module pas en barre latérale
This commit is contained in:
parent
6f4e058b67
commit
c29643f429
@ -28,7 +28,7 @@ class common {
|
||||
const GROUP_ADMIN = 3;
|
||||
// Numéro de version de développement :/
|
||||
// Désactive l'update auto
|
||||
const ZWII_VERSION = '9.0.00-dev10';
|
||||
const ZWII_VERSION = '9.0.00-dev11';
|
||||
// Numéro de version stable
|
||||
//const ZWII_VERSION = '9.0.00';
|
||||
|
||||
|
@ -30,11 +30,13 @@ var pageEditModuleIdDOM = $("#pageEditModuleId");
|
||||
pageEditModuleIdDOM.on("change", function() {
|
||||
if($(this).val() === "") {
|
||||
$("#pageEditModuleConfig").addClass("disabled");
|
||||
$("#pageEditContentContainer").slideDown();
|
||||
$("#pageEditContentContainer").slideDown();
|
||||
$("#pageEditBlock").append('<option value="bar">Barre latérale</option>');
|
||||
}
|
||||
else {
|
||||
$("#pageEditModuleConfig").removeClass("disabled");
|
||||
$("#pageEditContentContainer").slideUp();
|
||||
$("#pageEditContentContainer").slideUp();
|
||||
$("#pageEditBlock option[value='bar']").remove();
|
||||
}
|
||||
});
|
||||
|
||||
@ -123,7 +125,8 @@ if($("#pageEditModuleId").val() === "redirection" ||
|
||||
var pageEditBlockDOM = $("#pageEditBlock");
|
||||
pageEditBlockDOM.on("change", function() {
|
||||
switch ($(this).val()) {
|
||||
case "bar":
|
||||
case "bar":
|
||||
$("pageEditModuleId").val() = "";
|
||||
case "12":
|
||||
$("#pageEditBarLeftWrapper").removeClass("disabled");
|
||||
$("#pageEditBarLeftWrapper").slideUp();
|
||||
|
Loading…
Reference in New Issue
Block a user