Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
After requesting content via AJAX, the response handler performs a Drupal.attachBehaviors() on the raw data returned from the AJAX request. Since this is a string and not a DOM object, the attachBehaviors is basically a no-op. This patch fixes that behavior. The method is similar to other modules, such as Views. It creates a jQuery object from the returned HTML string, inserts that into the DOM, then uses the objects parent as the context for the call to Drupal.attachBehaviors().
Comment | File | Size | Author |
---|---|---|---|
esi-6x-attachBehaviors.patch | 355 bytes | mgriego |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedCommitted you patch