diff --git a/core/misc/tabledrag.es6.js b/core/misc/tabledrag.es6.js index 67fc2b2ee7..8045d128ad 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 db92666093..b42e4475fe 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -86,7 +86,7 @@ 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) { + $table.before($('').on('click', $.proxy(function (e) { e.preventDefault(); this.toggleColumns(); }, this)).wrap('
').parent()); diff --git a/core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php b/core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php index ec4e1c501e..9c748946df 100644 --- a/core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php +++ b/core/modules/media_library/src/Plugin/Field/FieldWidget/MediaLibraryWidget.php @@ -140,7 +140,6 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen 'media-library-widget__toggle-weight', 'js-media-library-widget-toggle-weight', ], - 'title' => $this->t('Re-order media by numerical weight instead of dragging'), ], ]; }