From 62aef830134d4ea5c32371ea3d0df12a1cc69299 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 16 Oct 2013 12:03:14 +0100 Subject: [PATCH] Examples - Add initialisation code, HTML and other information to display - In the examples we want to show the following information to help developers to get to grips with DataTables more readily: - Init javascript code - HTML used for the table - Additional CSS used - Ajax loaded data - List of the libraries files loaded in the example - All but the last point is complete, a bit of styling and information text. --- .datatables-commit-sync | 2 +- media/js/jquery.dataTables.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index a334ec51..bbaa7530 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -3a5bc4eeac335e58d86cf32f16625db24904ba44 +6b8c9735e3281f8e42e61fd194c7c4e7f017db2d diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 53dfb2a3..b4f0d09a 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -6932,7 +6932,7 @@ var ctx = this.context; if ( ctx.length > 0 ) { - return this.context.json; + return ctx[0].json; } // else return undefined;