Commit d5b3079f authored by markfullmer's avatar markfullmer Committed by Mark Fullmer

Issue #3000942 by Jorrit, tanc, mark_fullmer: Update tablesaw and use jquery version

parent dff8ed27
;(function( $ ) {
Drupal.behaviors.responsiveTablesFilter = {
attach: function (context, settings) {
// DOM-ready auto-init of plugins.
// Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM
$( function(){
/*! Tablesaw - v3.0.0-beta.1 - 2016-09-19
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2016 Filament Group; Licensed MIT
*/
$('.tablesaw thead tr th').attr('data-tablesaw-priority', '1');
$('.tablesaw thead tr th').first().attr('data-tablesaw-priority', 'persist');
$('.tablesaw thead tr th').addClass('tablesaw-priority-1');
$('.tablesaw thead tr th').first().removeClass('tablesaw-priority-1');
/*! Tablesaw - v3.1.2 - 2019-03-19
* https://github.com/filamentgroup/tablesaw
* Copyright (c) 2019 Filament Group; Licensed MIT */
(function (win) {
"use strict";
$( document ).trigger( "enhance.tablesaw" );
if ($(window).width() < 500) {
$('.tablesaw thead tr').nth-child(1).addClass('tablesaw-toggle-cellvisible');
$('.tablesaw thead tr th').toggleClass('tablesaw-toggle-cellvisible');
}
});
}
// DOM-ready auto-init of plugins.
// Many plugins bind to an "enhance" event to init themselves on dom ready, or when new markup is inserted into the DOM
// Use raw DOMContentLoaded instead of shoestring (may have issues in Android 2.3, exhibited by stack table)
if (!("Tablesaw" in win)) {
throw new Error("Tablesaw library not found.");
}
if (!("init" in Tablesaw)) {
throw new Error("Your tablesaw-init.js is newer than the core Tablesaw version.");
}
})( shoestring || jQuery );
Tablesaw.init();
})(typeof window !== "undefined" ? window : this);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
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