diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 82a5cb3..196551f 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -1042,8 +1042,8 @@ function template_preprocess_table(&$variables) { } } } - if (!empty($variables['no_striping'])) { - $variables['attributes']['data-no-striping'] = 1; + if (!isset($variables['no_striping']) || (isset($variables['no_striping']) && !$variables['no_striping'])) { + $variables['attributes']['data-striping'] = 1; } } diff --git a/core/misc/tabledrag.js b/core/misc/tabledrag.js index ea4512d..0795e30 100644 --- a/core/misc/tabledrag.js +++ b/core/misc/tabledrag.js @@ -60,7 +60,7 @@ this.changed = false; // Whether anything in the entire table has changed. this.maxDepth = 0; // Maximum amount of allowed parenting. this.rtl = $(this.table).css('direction') === 'rtl' ? -1 : 1; // Direction of the table. - this.noStriping = $(this.table).data('no-striping') === 1; + this.striping = $(this.table).data('striping') === 1; // Configure the scroll settings. this.scrollSettings = {amount: 4, interval: 50, trigger: 70}; @@ -460,7 +460,7 @@ $(self.oldRowElement).removeClass('drag-previous'); } self.oldRowElement = item; - if (self.noStriping === false) { + if (self.striping === true) { self.restripeTable(); } self.onDrag(); @@ -559,7 +559,7 @@ else { self.rowObject.swap('before', currentRow, self); } - if (self.noStriping === false) { + if (self.striping === true) { self.restripeTable(); } }