collection-crud/public/js/app.js

14 lines
225 B
JavaScript

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