diff --git a/core/misc/tabledrag.es6.js b/core/misc/tabledrag.es6.js index 76643c3..1ee9a74 100644 --- a/core/misc/tabledrag.es6.js +++ b/core/misc/tabledrag.es6.js @@ -229,10 +229,6 @@ // Add a link before the table for users to show or hide weight columns. $table.before( $('') - .attr( - 'title', - Drupal.t('Re-order rows by numerical weight instead of dragging.'), - ) .on( 'click', $.proxy(function(e) { diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js index 97ead1c..05df370 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -86,8 +86,8 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol self.makeDraggable(this); }); - $table.before($('').attr('title', Drupal.t('Re-order rows by numerical weight instead of dragging.')).on('click', $.proxy(function (e) { - e.preventDefault(); + $table.before($('').on('click', $.proxy(function (e) { + e.preventDefault(); this.toggleColumns(); }, this)).wrap('
').parent());