Pārlūkot izejas kodu

production : closing agenda don't close the prod

Bachir Soussi Chiadmi 7 gadi atpakaļ
vecāks
revīzija
49c7906e11

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 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

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels