comparison core/misc/tabledrag.js @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
84 84
85 $table.find('> tr.draggable, > tbody > tr.draggable').each(function () { 85 $table.find('> tr.draggable, > tbody > tr.draggable').each(function () {
86 self.makeDraggable(this); 86 self.makeDraggable(this);
87 }); 87 });
88 88
89 $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) { 89 $table.before($('<button type="button" class="link tabledrag-toggle-weight"></button>').on('click', $.proxy(function (e) {
90 e.preventDefault(); 90 e.preventDefault();
91 this.toggleColumns(); 91 this.toggleColumns();
92 }, this)).wrap('<div class="tabledrag-toggle-weight-wrapper"></div>').parent()); 92 }, this)).wrap('<div class="tabledrag-toggle-weight-wrapper"></div>').parent());
93 93
94 self.initColumns(); 94 self.initColumns();