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

This commit is contained in:
2018-05-15 15:34:48 +02:00
parent dc8a77b761
commit 6bf7c8e3d6
4 changed files with 10 additions and 8 deletions
@@ -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;