diff options
Diffstat (limited to 'core/misc/ajax.es6.js')
-rw-r--r-- | core/misc/ajax.es6.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/core/misc/ajax.es6.js b/core/misc/ajax.es6.js index 518e2a1f99dd..96d9be3886c5 100644 --- a/core/misc/ajax.es6.js +++ b/core/misc/ajax.es6.js @@ -102,7 +102,9 @@ if (xmlhttp.status) { statusCode = `\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t( 'HTTP Result Code: !status', - { '!status': xmlhttp.status }, + { + '!status': xmlhttp.status, + }, )}`; } else { statusCode = `\n${Drupal.t( @@ -1129,12 +1131,14 @@ (response.effect || ajax.effect) !== 'none' && $newContent.filter( i => - !// We can not consider HTML comments or whitespace text as separate - // roots, since they do not cause visual regression with effect. - ( - $newContent[i].nodeName === '#comment' || - ($newContent[i].nodeName === '#text' && - /^(\s|\n|\r)*$/.test($newContent[i].textContent)) + !( + // We can not consider HTML comments or whitespace text as separate + // roots, since they do not cause visual regression with effect. + ( + $newContent[i].nodeName === '#comment' || + ($newContent[i].nodeName === '#text' && + /^(\s|\n|\r)*$/.test($newContent[i].textContent)) + ) ), ).length > 1 ? Drupal.theme('ajaxWrapperMultipleRootElements', $newContent) |