Bladeren bron

production : closing agenda don't close the prod

Bachir Soussi Chiadmi 6 jaren geleden
bovenliggende
commit
49c7906e11

File diff suppressed because it is too large
+ 0 - 0
sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js


+ 3 - 2
sites/all/themes/custom/edlptheme/assets/scripts/main.js

@@ -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

Some files were not shown because too many files changed in this diff