collection-crud/public/js/app.js

14 lines
225 B
JavaScript

$(document).foundation();
(function() {
let tables = document.querySelectorAll('table.sortable');
let i = 0;
let len = tables.length;
if (len > 0) {
for (;i < len; i++) {
tsorter.create(tables[i], 1);
}
}
}());