Explorar el Código

production : closing agenda don't close the prod

Bachir Soussi Chiadmi hace 7 años
padre
commit
49c7906e11

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio