2017-11-10 09:03:20 -05:00
|
|
|
$(document).foundation();
|
|
|
|
|
|
|
|
(function() {
|
2024-03-27 16:23:08 -04:00
|
|
|
// Disable weird scrolling behavior on input[type=number] fields
|
|
|
|
// Based on https://stackoverflow.com/questions/9712295/disable-scrolling-on-input-type-number/38589039#38589039
|
|
|
|
document.addEventListener('wheel', () => {
|
|
|
|
if (document.activeElement !== null && document.activeElement['type'] === 'number') {
|
|
|
|
document.activeElement['blur']()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
2022-10-07 16:04:56 -04:00
|
|
|
let tables = document.querySelectorAll('table.sortable');
|
|
|
|
let i = 0;
|
|
|
|
let len = tables.length;
|
2017-11-10 09:03:20 -05:00
|
|
|
|
2018-07-18 11:35:27 -04:00
|
|
|
if (len > 0) {
|
|
|
|
for (;i < len; i++) {
|
|
|
|
tsorter.create(tables[i], 1);
|
|
|
|
}
|
2017-11-10 09:03:20 -05:00
|
|
|
}
|
|
|
|
}());
|