Browse Source

fixed addtoany behaviours by calling drupal baheviours after each cartel ajax load

Bachir Soussi Chiadmi 6 years ago
parent
commit
6bf7c8e3d6

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


File diff suppressed because it is too large
+ 0 - 0
sites/all/themes/custom/edlptheme/assets/dist/styles/app.min.css


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

@@ -394,7 +394,7 @@
       // trigger other modules behaviours
       _$body.trigger({'type':'new-content-ajax-loaded'});
 
-      // and call druapl behaviours
+      // and call drupal behaviours
       Drupal.attachBehaviors(_$row[0]);
 
       _$body.attr('booted', 'booted');
@@ -1139,6 +1139,8 @@
         this.$cartel.html(data.rendered).removeClass('loading');
         _$body.trigger({'type':'new-audio-cartel-loaded'});
         initAjaxLinks();
+        // and call druapl behaviours
+        Drupal.attachBehaviors(this.$cartel);
         if(this.auto_open_article){
           this.$cartel.find('a.link-article').trigger('click');
           this.auto_open_article = false;

+ 5 - 5
sites/all/themes/custom/edlptheme/assets/styles/app.scss

@@ -806,11 +806,11 @@ main[role="main"]{
         opacity: 1;
       }
     }
-    article:not(.has-second-cartel){
-      .second-cartel{
-        display:none;
-      }
-    }
+    // article:not(.has-second-cartel){
+    //   .second-cartel{
+    //     display:none;
+    //   }
+    // }
   }
 
 }

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