ajaxForm "after" callback should call Drupal.attachBehaviors()

James Andres - August 20, 2009 - 02:46
Project:Advanced Poll
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Because ajaxForm alters the DOM, in order to be compatible with Drupal behaviors the ajaxForm "after" callback should call Drupal.attachBehaviors(). This allows designers and contributed modules change the returned HTML.

AttachmentSize
advpoll-vote.js_.attachBehaviors.patch658 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.