From 90edd0bd94cd4ec451950b4dffafc1f9be521983 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Thu, 10 May 2012 18:52:25 +0100 Subject: [PATCH] Example - update: Use $ and fnUpdate in the index column example - 9840 --- examples/api/counter_column.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/api/counter_column.html b/examples/api/counter_column.html index 3e26879d..fa84f37c 100644 --- a/examples/api/counter_column.html +++ b/examples/api/counter_column.html @@ -15,13 +15,14 @@ $(document).ready(function() { $('#example').dataTable( { "fnDrawCallback": function ( oSettings ) { + var that = this; + /* Need to redo the counters if filtered or sorted */ if ( oSettings.bSorted || oSettings.bFiltered ) { - for ( var i=0, iLen=oSettings.aiDisplay.length ; i