Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
when i get node with
$anode = node_load(45);
$node_html = drupal_render(node_view($anode));
and return it to page with ajax, the flag link doesnt have handler to this new DOM element, so ajax flagging don't work. how i can bind flag handler to this new dom element? i tried to call updateLink() from flag.js but it don't work.
Comments
Comment #1
joachim CreditAttribution: joachim commentedIIRC Drupal JS behaviours has a system for this, though it's way beyond my JS abilities.