From 4b3e52f79dda452713912cabec4a239b8aabdd2a Mon Sep 17 00:00:00 2001 From: Darryl Norris Date: Tue, 9 Jun 2015 09:01:21 -0500 Subject: [PATCH] #2496053: Rename xmlhttprequest to jqXHR in Drupal Ajax JS --- core/misc/ajax.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/misc/ajax.js b/core/misc/ajax.js index 3cb1c8d..af8761f 100644 --- a/core/misc/ajax.js +++ b/core/misc/ajax.js @@ -387,9 +387,10 @@ ajax.ajaxing = true; return ajax.beforeSubmit(form_values, element_settings, options); }, - beforeSend: function (xmlhttprequest, options) { + beforeSend: function (jqXHR, options) { + console.log(jqXHR) ajax.ajaxing = true; - return ajax.beforeSend(xmlhttprequest, options); + return ajax.beforeSend(jqXHR, options); }, success: function (response, status) { // Sanity check for browser support (object expected). @@ -621,7 +622,7 @@ * @param {object} options * @param {object} options.extraData */ - Drupal.Ajax.prototype.beforeSend = function (xmlhttprequest, options) { + Drupal.Ajax.prototype.beforeSend = function (jqXHR, options) { // For forms without file inputs, the jQuery Form plugin serializes the // form values, and then calls jQuery's $.ajax() function, which invokes // this handler. In this circumstance, options.extraData is never used. For -- 2.3.2 (Apple Git-55)