mirror of
https://github.com/DataTables/DataTables.git
synced 2025-03-15 16:29:16 +01:00
Dev - examples: Update the example code to take account of the event
changes from: ae0951b, 694f129 and 1f561e3
This commit is contained in:
parent
635a027057
commit
cf8f008a4d
@ -1 +1 @@
|
||||
1f561e301a608c35535bc0e0e3496d4440225830
|
||||
7b5141122b2fad2d3cef2a333c518646018dc531
|
||||
|
@ -31,7 +31,7 @@ $(document).ready( function () {
|
||||
// json
|
||||
var ajaxTab = $('ul.tabs li').eq(3).css('display', 'none');
|
||||
|
||||
$.fn.dataTable.on( 'construct', function ( settings ) {
|
||||
$(document).on( 'init.dt', function ( e, settings ) {
|
||||
var api = new $.fn.dataTable.Api( settings );
|
||||
|
||||
var show = function ( str ) {
|
||||
@ -56,7 +56,7 @@ $(document).ready( function () {
|
||||
}
|
||||
|
||||
// Subsequent draws
|
||||
api.on( 'xhr', function ( e, settings, json ) {
|
||||
api.on( 'xhr.dt', function ( e, settings, json ) {
|
||||
show( json );
|
||||
} );
|
||||
} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user