diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js
index faea38b..42b0532 100644
--- a/core/misc/tabledrag.js
+++ b/core/misc/tabledrag.js
@@ -1277,6 +1277,14 @@
return '
';
},
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 '' + Drupal.theme('tableDragChangedMarker') + ' ' + Drupal.t('You have unsaved changes.') + '
';
}
});
diff --git a/core/modules/block/js/block.js b/core/modules/block/js/block.js
index c3a4d0d..9cc9878 100644
--- a/core/modules/block/js/block.js
+++ b/core/modules/block/js/block.js
@@ -132,4 +132,16 @@
}
};
+// 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')
+ });
+ // Announce the changes.
+ Drupal.announce(text);
+
+ return '' + text + '
';
+};
+
})(jQuery, window);