Issue #3268651: Allow triggering element definition
1 open thread
Merge request reports
Activity
added 1 commit
103 104 let ajax_call = Drupal.ajax(ajax_settings); 105 106 // Load right away. 107 if (execute) { 108 ajax_call.execute(); 109 } 110 } 111 } 112 113 Drupal.behaviors.lazyViewsAjax = { 114 attach: function (context) { 115 // Attach ajax action to any item. 116 let lazyViews = new LazyViews(); 117 $('[data-lv-id]', context).each(lazyViews.attachLazyAjax); 118 $('[data-lv-trigger]', context).each(lazyViews.attachTriggerLazyAjax); changed this line in version 2 of the diff
Ok @b_sharpe, I've simplified the code, and set the trigger data to be on the same element.
added 1 commit
- 222906c3 - Refactored ajax.js in order to simplify behavior attachment.
Please register or sign in to reply