From cf8f008a4da3776830fbf7f13a37d9e8346a8bce Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 18 Nov 2013 11:46:27 +0000 Subject: [PATCH] Dev - examples: Update the example code to take account of the event changes from: ae0951b, 694f129 and 1f561e3 --- .datatables-commit-sync | 2 +- examples/resources/demo.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 292edf97..1c8678e8 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -1f561e301a608c35535bc0e0e3496d4440225830 +7b5141122b2fad2d3cef2a333c518646018dc531 diff --git a/examples/resources/demo.js b/examples/resources/demo.js index 587d24db..2fdbbecb 100644 --- a/examples/resources/demo.js +++ b/examples/resources/demo.js @@ -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 ); } ); } );