initial commit
This commit is contained in:
26
static/js/examples/examples.datatables.ajax.js
Normal file
26
static/js/examples/examples.datatables.ajax.js
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
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]);
|
Reference in New Issue
Block a user