diff --git a/core/misc/ajax.js b/core/misc/ajax.js index 60e07a6..1f320e1 100644 --- a/core/misc/ajax.js +++ b/core/misc/ajax.js @@ -66,7 +66,7 @@ }; /** - * Extends Error to provide handling for Errors in AJAX + * Extends Error to provide handling for Errors in Ajax */ Drupal.AjaxError = function (xmlhttp, uri) { @@ -121,7 +121,7 @@ /** * Provides Ajax page updating via jQuery $.ajax. * - * The ajax request returns an array of commands encoded in JSON, which is + * The Ajax request returns an array of commands encoded in JSON, which is * then executed to make any changes that are necessary to the page. * * Drupal uses this file to enhance form elements with #ajax['url'] and @@ -165,7 +165,7 @@ /** * Contains all created Ajax objects. * - * @type {Object} + * @type {Array} */ Drupal.ajax.instances = []; @@ -221,11 +221,11 @@ this.url = this.$form.attr('action'); // @todo If there's a file input on this form, then jQuery will submit the - // AJAX response with a hidden Iframe rather than the XHR object. If the + // Ajax response with a hidden Iframe rather than the XHR object. If the // response to the submission is an HTTP redirect, then the Iframe will // follow it, but the server won't content negotiate it correctly, // because there won't be an ajax_iframe_upload POST variable. Until we - // figure out a work around to this problem, we prevent AJAX-enabling + // figure out a work around to this problem, we prevent Ajax-enabling // elements that submit to the same URL as the form when there's a file // input. For example, this means the Delete button on the edit form of // an Article node doesn't open its confirmation form in a dialog. @@ -302,7 +302,7 @@ // If necessary, prevent the browser default action of an additional event. // For example, prevent the browser default action of a click, even if the - // AJAX behavior binds to mousedown. + // Ajax behavior binds to mousedown. if (element_settings.prevent) { $(ajax.element).on(element_settings.prevent, false); } @@ -311,7 +311,7 @@ /** * Execute the ajax request. * - * Allows developers to execute an AJAX request manually without specifying + * Allows developers to execute an Ajax request manually without specifying * an event to respond to. */ Drupal.Ajax.prototype.execute = function () { @@ -365,7 +365,7 @@ * When an event that triggers an Ajax response happens, this method will * perform the actual Ajax call. It is bound to the event using * bind() in the constructor, and it uses the options specified on the - * ajax object. + * Ajax object. */ Drupal.Ajax.prototype.eventResponse = function (element, event) { event.preventDefault(); @@ -374,7 +374,7 @@ // Create a synonym for this to reduce code confusion. var ajax = this; - // Do not perform another ajax command if one is already in progress. + // Do not perform another Ajax command if one is already in progress. if (ajax.ajaxing) { return; }