Dev - examples: Update the example code to take account of the event

changes from: ae0951b, 694f129 and 1f561e3
This commit is contained in:
Allan Jardine
2013-11-18 11:46:27 +00:00
parent 635a027057
commit cf8f008a4d
2 changed files with 3 additions and 3 deletions

View File

@@ -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 );
} );
} );