Skip to content
Snippets Groups Projects

Issue #3188251: Cannot read property 'html' of undefined

1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
+ 8
0
@@ -121,6 +121,11 @@
*/
this.windowHeight = 0;
/**
* @type {?HTMLElement}
*/
this.$toggleWeightButton = null;
/**
* Check this table's settings to see if there are parent relationships in
* this table. For efficiency, large sections of code can be skipped if we
@@ -175,10 +180,13 @@
// Add a link before the table for users to show or hide weight columns.
var $button = $(Drupal.theme('btn-sm', {
'class': ['tabledrag-toggle-weight'],
'data-drupal-selector': ['tabledrag-toggle-weight'],
title: Drupal.t('Re-order rows by numerical weight instead of dragging.'),
'data-toggle': 'tooltip'
}));
this.$toggleWeightButton = $('[data-drupal-selector="tabledrag-toggle-weight"]');
$button
.on('click', $.proxy(function (e) {
e.preventDefault();
Loading