Created
March 4, 2015 08:34
-
-
Save keeprock/a4bd99ce70c62db9fd2f to your computer and use it in GitHub Desktop.
Reattach AJAX handlers after AJAX callback using views or whateva..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$commands[] = array('command' => 'MODULE_behaviors'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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