fixed addtoany behaviours by calling drupal baheviours after each cartel ajax load
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user