Skip to content

Instantly share code, notes, and snippets.

@keeprock
Created March 4, 2015 08:34
Show Gist options
  • Save keeprock/a4bd99ce70c62db9fd2f to your computer and use it in GitHub Desktop.
Save keeprock/a4bd99ce70c62db9fd2f to your computer and use it in GitHub Desktop.
Reattach AJAX handlers after AJAX callback using views or whateva..
$commands[] = array('command' => 'MODULE_behaviors');
Drupal.ajax.prototype.commands.MODULE_behaviors = function(ajax, response, status) {
Drupal.attachBehaviors('Drupal.ajax');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment