Issue #3023966 by Karan Sen, eblue, pawandubey, andrewmacpherson: Remove unnecessary title attribute from show-row-weights button

8.7.x
Alex Pott 2019-02-24 10:10:43 +00:00
parent bdfafab7fb
commit 9096cb6b81
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
3 changed files with 1 additions and 6 deletions

View File

@ -229,10 +229,6 @@
// 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) {

View File

@ -86,7 +86,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
self.makeDraggable(this);
});
$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) {
$table.before($('<button type="button" class="link tabledrag-toggle-weight"></button>').on('click', $.proxy(function (e) {
e.preventDefault();
this.toggleColumns();
}, this)).wrap('<div class="tabledrag-toggle-weight-wrapper"></div>').parent());

View File

@ -301,7 +301,6 @@ class MediaLibraryWidget extends WidgetBase implements ContainerFactoryPluginInt
'media-library-widget__toggle-weight',
'js-media-library-widget-toggle-weight',
],
'title' => $this->t('Re-order media by numerical weight instead of dragging'),
],
];
}