Mercurial > hg > cmmr2012-drupal-site
comparison core/misc/tabledrag.es6.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 |
---|---|
227 }); | 227 }); |
228 | 228 |
229 // Add a link before the table for users to show or hide weight columns. | 229 // Add a link before the table for users to show or hide weight columns. |
230 $table.before( | 230 $table.before( |
231 $('<button type="button" class="link tabledrag-toggle-weight"></button>') | 231 $('<button type="button" class="link tabledrag-toggle-weight"></button>') |
232 .attr( | |
233 'title', | |
234 Drupal.t('Re-order rows by numerical weight instead of dragging.'), | |
235 ) | |
236 .on( | 232 .on( |
237 'click', | 233 'click', |
238 $.proxy(function(e) { | 234 $.proxy(function(e) { |
239 e.preventDefault(); | 235 e.preventDefault(); |
240 this.toggleColumns(); | 236 this.toggleColumns(); |