Created
August 10, 2016 09:43
-
-
Save petebarnett/2f0db781a5e615b635ef85bf5caba9c7 to your computer and use it in GitHub Desktop.
This file contains 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
(function($) { | |
var beforeSend = Drupal.ajax.prototype.beforeSend; | |
Drupal.ajax.prototype.beforeSend = function(xmlhttprequest, options) { | |
// Do your thing here... | |
// And call the original | |
beforeSend.call(this, xmlhttprequest, options); | |
} | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment