Skip to content
Snippets Groups Projects

Issue #3268651: Allow triggering element definition

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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);
  • added 1 commit

    • 222906c3 - Refactored ajax.js in order to simplify behavior attachment.

    Compare with previous version

  • Please register or sign in to reply
    Loading