Unverified Commit 9096cb6b authored by alexpott's avatar alexpott
Browse files

Issue #3023966 by Karan Sen, eblue, pawandubey, andrewmacpherson: Remove...

Issue #3023966 by Karan Sen, eblue, pawandubey, andrewmacpherson: Remove unnecessary title attribute from show-row-weights button
parent bdfafab7
...@@ -229,10 +229,6 @@ ...@@ -229,10 +229,6 @@
// Add a link before the table for users to show or hide weight columns. // Add a link before the table for users to show or hide weight columns.
$table.before( $table.before(
$('<button type="button" class="link tabledrag-toggle-weight"></button>') $('<button type="button" class="link tabledrag-toggle-weight"></button>')
.attr(
'title',
Drupal.t('Re-order rows by numerical weight instead of dragging.'),
)
.on( .on(
'click', 'click',
$.proxy(function(e) { $.proxy(function(e) {
......
...@@ -86,7 +86,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol ...@@ -86,7 +86,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
self.makeDraggable(this); 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(); e.preventDefault();
this.toggleColumns(); this.toggleColumns();
}, this)).wrap('<div class="tabledrag-toggle-weight-wrapper"></div>').parent()); }, this)).wrap('<div class="tabledrag-toggle-weight-wrapper"></div>').parent());
......
...@@ -301,7 +301,6 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen ...@@ -301,7 +301,6 @@ public function formElement(FieldItemListInterface $items, $delta, array $elemen
'media-library-widget__toggle-weight', 'media-library-widget__toggle-weight',
'js-media-library-widget-toggle-weight', 'js-media-library-widget-toggle-weight',
], ],
'title' => $this->t('Re-order media by numerical weight instead of dragging'),
], ],
]; ];
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment