telegram_bots/static/js/examples/examples.datatables.ajax.js

26 lines
441 B
JavaScript
Raw Normal View History

2019-01-11 19:16:01 +00:00
/*
Name: Tables / Ajax - Examples
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 2.1.1
*/
(function($) {
'use strict';
var datatableInit = function() {
var $table = $('#datatable-ajax');
$table.dataTable({
dom: '<"row"<"col-lg-6"l><"col-lg-6"f>><"table-responsive"t>p',
bProcessing: true,
sAjaxSource: $table.data('url')
});
};
$(function() {
datatableInit();
});
}).apply(this, [jQuery]);