diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js index c3a0f5a..c353f29 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -1506,6 +1506,14 @@ * @return {string} */ tableDragChangedWarning: function () { + var text = Drupal.t('!changeMarker Changes made in this table will not be saved until the form is submitted.', { + '!changeMarker': Drupal.theme('tableDragChangedMarker') + }); + // Announce the changes. + Drupal.announce(text); + + return '
' + text + '
'; + return ''; } }); diff --git a/core/modules/block/js/block.js b/core/modules/block/js/block.js index e5c0907..c81cfa8 100644 --- a/core/modules/block/js/block.js +++ b/core/modules/block/js/block.js @@ -141,4 +141,15 @@ } }; +// A custom message for the blocks page specifically. +Drupal.theme.tableDragChangedWarning = function () { + var text = Drupal.t('!changeMarker The changes to these blocks will not be saved until the %button button is clicked.', { + '!changeMarker': Drupal.theme('tableDragChangedMarker'), + '%button': Drupal.t('Save blocks') + }); + Drupal.announce(text); + + return '
' + text + '
'; +}; + })(jQuery, window);