Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 314388

Use jQuery live() for contextual links

$
0
0

I'm using the InfiniteScroll jQuery plugin to add items to my page when scrolling to the bottom of the page. This works fine, except for the contextual links. They are processed on a page load, but they don't detect new items. Can we use live() here?

Drupal.behaviors.contextualLinks = {
  attach: function (context) {
    $('div.contextual-links-wrapper', context).once('contextual-links', function () {
      // Added just once, sad puppy.
    });
  }
};

Viewing all articles
Browse latest Browse all 314388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>