Loading core/misc/ajax.es6.js +11 −7 Original line number Diff line number Diff line Loading @@ -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( Loading Loading @@ -1131,12 +1133,14 @@ (response.effect || ajax.effect) !== 'none' && $newContent.filter( i => !// We can not consider HTML comments or whitespace text as separate !( // 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) Loading core/misc/ajax.js +3 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr var statusText = void 0; var responseText = void 0; if (xmlhttp.status) { statusCode = '\n' + Drupal.t('An AJAX HTTP error occurred.') + '\n' + Drupal.t('HTTP Result Code: !status', { '!status': xmlhttp.status }); statusCode = '\n' + Drupal.t('An AJAX HTTP error occurred.') + '\n' + Drupal.t('HTTP Result Code: !status', { '!status': xmlhttp.status }); } else { statusCode = '\n' + Drupal.t('An AJAX HTTP request terminated abnormally.'); } Loading core/modules/color/preview.es6.js +2 −6 Original line number Diff line number Diff line Loading @@ -65,18 +65,14 @@ colorStart = farb.unpack( form .find( `.color-palette input[name="palette[${ settings.gradients[i].colors[0] }]"]`, `.color-palette input[name="palette[${settings.gradients[i].colors[0]}]"]`, ) .val(), ); colorEnd = farb.unpack( form .find( `.color-palette input[name="palette[${ settings.gradients[i].colors[1] }]"]`, `.color-palette input[name="palette[${settings.gradients[i].colors[1]}]"]`, ) .val(), ); Loading core/modules/locale/locale.admin.es6.js +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ // Open/close the description details by toggling a tr class. $tbodies.on('click keydown', '.description', function(e) { if (e.keyCode && (e.keyCode !== 13 && e.keyCode !== 32)) { if (e.keyCode && e.keyCode !== 13 && e.keyCode !== 32) { return; } e.preventDefault(); Loading core/modules/quickedit/js/models/EntityModel.es6.js +2 −1 Original line number Diff line number Diff line Loading @@ -243,7 +243,8 @@ // proceed to set the fields to candidate state. if ( (changedFields.length || this.get('fieldsInTempStore').length) && (!options.saved && !options.confirmed) !options.saved && !options.confirmed ) { // Cancel deactivation until the user confirms save or discard. this.set('state', 'opened', { confirming: true }); Loading Loading
core/misc/ajax.es6.js +11 −7 Original line number Diff line number Diff line Loading @@ -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( Loading Loading @@ -1131,12 +1133,14 @@ (response.effect || ajax.effect) !== 'none' && $newContent.filter( i => !// We can not consider HTML comments or whitespace text as separate !( // 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) Loading
core/misc/ajax.js +3 −1 Original line number Diff line number Diff line Loading @@ -57,7 +57,9 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr var statusText = void 0; var responseText = void 0; if (xmlhttp.status) { statusCode = '\n' + Drupal.t('An AJAX HTTP error occurred.') + '\n' + Drupal.t('HTTP Result Code: !status', { '!status': xmlhttp.status }); statusCode = '\n' + Drupal.t('An AJAX HTTP error occurred.') + '\n' + Drupal.t('HTTP Result Code: !status', { '!status': xmlhttp.status }); } else { statusCode = '\n' + Drupal.t('An AJAX HTTP request terminated abnormally.'); } Loading
core/modules/color/preview.es6.js +2 −6 Original line number Diff line number Diff line Loading @@ -65,18 +65,14 @@ colorStart = farb.unpack( form .find( `.color-palette input[name="palette[${ settings.gradients[i].colors[0] }]"]`, `.color-palette input[name="palette[${settings.gradients[i].colors[0]}]"]`, ) .val(), ); colorEnd = farb.unpack( form .find( `.color-palette input[name="palette[${ settings.gradients[i].colors[1] }]"]`, `.color-palette input[name="palette[${settings.gradients[i].colors[1]}]"]`, ) .val(), ); Loading
core/modules/locale/locale.admin.es6.js +1 −1 Original line number Diff line number Diff line Loading @@ -74,7 +74,7 @@ // Open/close the description details by toggling a tr class. $tbodies.on('click keydown', '.description', function(e) { if (e.keyCode && (e.keyCode !== 13 && e.keyCode !== 32)) { if (e.keyCode && e.keyCode !== 13 && e.keyCode !== 32) { return; } e.preventDefault(); Loading
core/modules/quickedit/js/models/EntityModel.es6.js +2 −1 Original line number Diff line number Diff line Loading @@ -243,7 +243,8 @@ // proceed to set the fields to candidate state. if ( (changedFields.length || this.get('fieldsInTempStore').length) && (!options.saved && !options.confirmed) !options.saved && !options.confirmed ) { // Cancel deactivation until the user confirms save or discard. this.set('state', 'opened', { confirming: true }); Loading