production : closing agenda don't close the prod

This commit is contained in:
2018-05-15 15:00:09 +02:00
parent 6484320adf
commit 49c7906e11
2 changed files with 4 additions and 3 deletions
@@ -472,8 +472,9 @@
if(theme != ''){
_$body.trigger({'type':theme+'-col-closed'});
}
if(_$body.is('.entity-type-node.bundle-page')){
// remove all the col (prod page and agenda in case)
if(_$body.is('.entity-type-node.bundle-page') && $(this).next().is('.node--type-page')){
// remove all the col (prod page and agenda in case) only if closing the main page col
// if closing the aside col (agenda) leave the main col in place
$col.add($col.siblings('.col')).remove();
}else{
// remove the col