summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/tabledrag.es6.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/misc/tabledrag.es6.js')
-rw-r--r--core/misc/tabledrag.es6.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/core/misc/tabledrag.es6.js b/core/misc/tabledrag.es6.js
index 93cc0349c23e..6105aeeae6e6 100644
--- a/core/misc/tabledrag.es6.js
+++ b/core/misc/tabledrag.es6.js
@@ -211,14 +211,15 @@
});
// Add a link before the table for users to show or hide weight columns.
- $table.before($('<button type="button" class="link tabledrag-toggle-weight"></button>')
- .attr('title', Drupal.t('Re-order rows by numerical weight instead of dragging.'))
- .on('click', $.proxy(function (e) {
- e.preventDefault();
- this.toggleColumns();
- }, this))
- .wrap('<div class="tabledrag-toggle-weight-wrapper"></div>')
- .parent(),
+ $table.before(
+ $('<button type="button" class="link tabledrag-toggle-weight"></button>')
+ .attr('title', Drupal.t('Re-order rows by numerical weight instead of dragging.'))
+ .on('click', $.proxy(function (e) {
+ e.preventDefault();
+ this.toggleColumns();
+ }, this))
+ .wrap('<div class="tabledrag-toggle-weight-wrapper"></div>')
+ .parent(),
);
// Initialize the specified columns (for example, weight or parent columns)