From b44693e22a1e740a016fb5b6a090e137655ef916 Mon Sep 17 00:00:00 2001 From: Chris Nizzardini Date: Thu, 26 Jun 2014 14:14:18 -0600 Subject: [PATCH] added mDataProp to other datatable instances --- test/app/webroot/js/examples.js | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/test/app/webroot/js/examples.js b/test/app/webroot/js/examples.js index cdff906..ad7f6f5 100644 --- a/test/app/webroot/js/examples.js +++ b/test/app/webroot/js/examples.js @@ -35,9 +35,10 @@ $(function() { "sAjaxSource": "/cities/containable.json", "sDom": 'CRTfrtip', "aoColumns": [ - {mData:"Preference.name"}, - {mData:"Preference.category"}, - {mData:"Preference.value"} + {mData:"City.id"}, + {mData:"City.name"}, + {mData:"State.name"}, + {mData:"City.population"}, ], "fnCreatedRow": function(nRow, aData, iDataIndex){ $('td:eq(3)', nRow).html(''); @@ -53,9 +54,10 @@ $(function() { "sAjaxSource": "/cities/concat.json", "sDom": 'CRTfrtip', "aoColumns": [ - {mData:"Preference.name"}, - {mData:"Preference.category"}, - {mData:"Preference.value"} + {mData:"City.id"}, + {mData:"City.name"}, + {mData:"State.name"}, + {mData:"City.population"}, ], "fnCreatedRow": function(nRow, aData, iDataIndex){ $('td:eq(2)', nRow).html(''); @@ -73,9 +75,10 @@ $(function() { "sAjaxSource": "/cities/virtualFields.json", "sDom": 'CRTfrtip', "aoColumns": [ - {mData:"Preference.name"}, - {mData:"Preference.category"}, - {mData:"Preference.value"} + {mData:"City.id"}, + {mData:"City.name"}, + {mData:"State.name"}, + {mData:"City.population"}, ], "fnCreatedRow": function(nRow, aData, iDataIndex){ $('td:eq(2)', nRow).html(''); @@ -90,9 +93,10 @@ $(function() { "sAjaxSource": "/cities/noJsonHandler", "sDom": 'CRTfrtip', "aoColumns": [ - {mData:"Preference.name"}, - {mData:"Preference.category"}, - {mData:"Preference.value"} + {mData:"City.id"}, + {mData:"City.name"}, + {mData:"State.name"}, + {mData:"City.population"}, ], "fnCreatedRow": function(nRow, aData, iDataIndex){ $('td:eq(3)', nRow).html('');