forked from ZwiiCMS-Team/ZwiiCMS
correction : breadcrumb pas actif par défaut
This commit is contained in:
parent
992be89413
commit
10569c7c60
@ -234,22 +234,25 @@ pageEditHideTitleDOM.on("change", function() {
|
||||
$("#pageEditbreadCrumbWrapper").slideDown();
|
||||
}
|
||||
});
|
||||
if ($(this).is(':unchecked')) {
|
||||
$("#pageEditbreadCrumbWrapper").addClass("disabled");
|
||||
$("#pageEditbreadCrumbWrapper").slideDown();
|
||||
}
|
||||
|
||||
|
||||
|
||||
var pageEditParentPageIdDOM = $("#pageEditParentPageId");
|
||||
pageEditParentPageIdDOM.on("change", function() {
|
||||
if ($(this).val() === "") {
|
||||
console.log('true');
|
||||
$("#pageEditbreadCrumbWrapper").removeClass("disabled");
|
||||
$("#pageEditbreadCrumbWrapper").slideUp();
|
||||
} else {
|
||||
console.log('faux');
|
||||
$("#pageEditbreadCrumbWrapper").addClass("disabled");
|
||||
$("#pageEditbreadCrumbWrapper").slideDown();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Soumission du formulaire pour éditer le module
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user