diff --git a/core/misc/ajax.js b/core/misc/ajax.js index 0309dc2..fd36c46 100644 --- a/core/misc/ajax.js +++ b/core/misc/ajax.js @@ -407,7 +407,6 @@ else { ajax.options.url += '&'; } - // @todo Passing both always is kinda redicilous! ajax.options.url += Drupal.ajax.AJAX_FORM_REQUEST + '=1&' + Drupal.ajax.WRAPPER_FORMAT + '=drupal_' + (element_settings.dialogType || 'ajax'); // Bind the ajaxSubmit function to the element event. diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index 5ac2c94..4bc7200 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -130,9 +130,10 @@ public static function valueCallback(&$element, $input, FormStateInterface $form /** * #ajax callback for managed_file upload forms. * - * This ajax callback takes care about ensuring that there is no broken - * request due to too big files, as well as adding a class to the response - * that a new file got uploaded. + * This ajax callback takes care of the following things: + * - Ensures that broken requests due to too big files are caught. + * - Adds a class to the response to be able to highlight in the UI, that + * a new file got uploaded. * * @param array $form * The build form.