Skip to content

Instantly share code, notes, and snippets.

@keeprock
Created April 9, 2015 07:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeprock/f8568331d1f16334c9e0 to your computer and use it in GitHub Desktop.
Save keeprock/f8568331d1f16334c9e0 to your computer and use it in GitHub Desktop.
Successful Ajax XHR
var success = Drupal.ajax.prototype.success;
Drupal.ajax.prototype.success = function (xmlhttprequest, options) {
success.apply(this, arguments);
// do stuff here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment