mirror of
https://github.com/DataTables/DataTables.git
synced 2026-04-25 03:00:08 -04:00
Dev - examples: Update the example code to take account of the event
changes from: ae0951b, 694f129 and 1f561e3
This commit is contained in:
@@ -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 );
|
||||
} );
|
||||
} );
|
||||
|
||||
Reference in New Issue
Block a user