Commit 6948330a authored by markcarver's avatar markcarver

Issue #2840308 by markcarver, MustangGB, hass, Thew: Sticky header loses styling

parent 7f50d345
......@@ -37,6 +37,8 @@ libraries-extend:
- bootstrap/drupal.states
core/drupal.tabledrag:
- bootstrap/drupal.tabledrag
core/drupal.tableheader:
- bootstrap/drupal.tableheader
image_widget_crop/cropper.integration:
- bootstrap/image_widget_crop
views/views.ajax:
......
......@@ -113,6 +113,10 @@ drupal.tabledrag:
js:
js/misc/tabledrag.js: {}
drupal.tableheader:
js:
js/misc/tableheader.js: {}
image_widget_crop:
js:
js/modules/image_widget_crop/ImageWidgetCrop.js: {}
......
/**
* @file
* Overrides core/misc/vertical-tabs.js.
*/
(function ($, Drupal) {
"use strict";
var createSticky = Drupal.TableHeader.prototype.createSticky;
Drupal.TableHeader.prototype.createSticky = function () {
createSticky.call(this);
this.$stickyTable.addClass(this.$originalTable.attr('class')).removeClass('sticky-enabled sticky-table');
};
})(window.jQuery, window.Drupal);
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