From 781f7fcaef40e99b2b994e9983a969410484e1ce Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Mon, 10 Aug 2015 14:57:47 +0100 Subject: [PATCH] Update - examples: All examples now use `$().DataTable()` to construct the table. - The API examples already used the new form, but many were still `$().dataTable()`, which still works, but the new API form method is prefered. --- .datatables-commit-sync | 2 +- examples/advanced_init/column_render.html | 4 ++-- examples/advanced_init/complex_header.html | 4 ++-- examples/advanced_init/defaults.html | 4 ++-- examples/advanced_init/dom_multiple_elements.html | 4 ++-- examples/advanced_init/dom_toolbar.html | 4 ++-- examples/advanced_init/dt_events.html | 4 ++-- examples/advanced_init/events_live.html | 4 ++-- examples/advanced_init/footer_callback.html | 4 ++-- examples/advanced_init/language_file.html | 4 ++-- examples/advanced_init/length_menu.html | 4 ++-- examples/advanced_init/row_callback.html | 4 ++-- examples/advanced_init/sort_direction_control.html | 4 ++-- examples/ajax/custom_data_flat.html | 4 ++-- examples/ajax/custom_data_property.html | 4 ++-- examples/ajax/deep.html | 4 ++-- examples/ajax/defer_render.html | 4 ++-- examples/ajax/objects.html | 4 ++-- examples/ajax/objects_subarrays.html | 4 ++-- examples/ajax/orthogonal-data.html | 4 ++-- examples/ajax/simple.html | 4 ++-- examples/api/api_in_init.html | 4 ++-- examples/api/regex.html | 4 ++-- examples/basic_init/alt_pagination.html | 4 ++-- examples/basic_init/comma-decimal.html | 4 ++-- examples/basic_init/complex_header.html | 4 ++-- examples/basic_init/dom.html | 4 ++-- examples/basic_init/filter_only.html | 4 ++-- examples/basic_init/flexible_width.html | 4 ++-- examples/basic_init/hidden_columns.html | 4 ++-- examples/basic_init/language.html | 4 ++-- examples/basic_init/multi_col_sort.html | 4 ++-- examples/basic_init/multiple_tables.html | 4 ++-- examples/basic_init/scroll_x.html | 4 ++-- examples/basic_init/scroll_xy.html | 4 ++-- examples/basic_init/scroll_y.html | 4 ++-- examples/basic_init/state_save.html | 4 ++-- examples/basic_init/table_sorting.html | 4 ++-- examples/data_sources/ajax.html | 4 ++-- examples/data_sources/dom.html | 4 ++-- examples/data_sources/js_array.html | 4 ++-- examples/data_sources/server_side.html | 4 ++-- examples/plug-ins/dom_sort.html | 4 ++-- examples/plug-ins/sorting_auto.html | 4 ++-- examples/plug-ins/sorting_manual.html | 4 ++-- examples/server_side/custom_vars.html | 4 ++-- examples/server_side/defer_loading.html | 4 ++-- examples/server_side/ids.html | 4 ++-- examples/server_side/jsonp.html | 4 ++-- examples/server_side/object_data.html | 4 ++-- examples/server_side/pipeline.html | 4 ++-- examples/server_side/post.html | 4 ++-- examples/server_side/select_rows.html | 4 ++-- examples/server_side/simple.html | 4 ++-- examples/styling/bootstrap.html | 4 ++-- examples/styling/cell-border.html | 4 ++-- examples/styling/compact.html | 4 ++-- examples/styling/display.html | 4 ++-- examples/styling/foundation.html | 4 ++-- examples/styling/hover.html | 4 ++-- examples/styling/jqueryUI.html | 4 ++-- examples/styling/no-classes.html | 4 ++-- examples/styling/order-column.html | 4 ++-- examples/styling/row-border.html | 4 ++-- examples/styling/stripe.html | 4 ++-- 65 files changed, 129 insertions(+), 129 deletions(-) diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 547ac559..8bad0d0c 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -bc2b4c87f2b853484b113046e54e59016e795a26 +d2d0e05d9d169d5a8bfc4031ff6db51b0e58cd3e diff --git a/examples/advanced_init/column_render.html b/examples/advanced_init/column_render.html index d63e195c..d492a0e0 100644 --- a/examples/advanced_init/column_render.html +++ b/examples/advanced_init/column_render.html @@ -20,7 +20,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "columnDefs": [ { // The `data` parameter refers to the data for the cell (defined by the @@ -550,7 +550,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "columnDefs": [ { // The `data` parameter refers to the data for the cell (defined by the diff --git a/examples/advanced_init/complex_header.html b/examples/advanced_init/complex_header.html index 4dde0c8a..b5b5fc35 100644 --- a/examples/advanced_init/complex_header.html +++ b/examples/advanced_init/complex_header.html @@ -20,7 +20,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "columnDefs": [ { "visible": false, "targets": -1 @@ -550,7 +550,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "columnDefs": [ { "visible": false, "targets": -1 diff --git a/examples/advanced_init/defaults.html b/examples/advanced_init/defaults.html index 41936f25..2ae25c43 100644 --- a/examples/advanced_init/defaults.html +++ b/examples/advanced_init/defaults.html @@ -26,7 +26,7 @@ $.extend( $.fn.dataTable.defaults, { $(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } ); @@ -547,7 +547,7 @@ $(document).ready(function() { $(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/advanced_init/dom_multiple_elements.html b/examples/advanced_init/dom_multiple_elements.html index 3ffb500f..35641f93 100644 --- a/examples/advanced_init/dom_multiple_elements.html +++ b/examples/advanced_init/dom_multiple_elements.html @@ -28,7 +28,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "dom": '<"top"iflp<"clear">>rt<"bottom"iflp<"clear">>' } ); } ); @@ -546,7 +546,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "dom": '<"top"iflp<"clear">>rt<"bottom"iflp<"clear">>' } ); } ); diff --git a/examples/advanced_init/dom_toolbar.html b/examples/advanced_init/dom_toolbar.html index 0f7541e4..9f4cbb39 100644 --- a/examples/advanced_init/dom_toolbar.html +++ b/examples/advanced_init/dom_toolbar.html @@ -26,7 +26,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "dom": '<"toolbar">frtip' } ); @@ -551,7 +551,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "dom": '<"toolbar">frtip' } ); diff --git a/examples/advanced_init/dt_events.html b/examples/advanced_init/dt_events.html index c726f789..e60de012 100644 --- a/examples/advanced_init/dt_events.html +++ b/examples/advanced_init/dt_events.html @@ -30,7 +30,7 @@ $(document).ready(function() { .on( 'order.dt', function () { eventFired( 'Order' ); } ) .on( 'search.dt', function () { eventFired( 'Search' ); } ) .on( 'page.dt', function () { eventFired( 'Page' ); } ) - .dataTable(); + .DataTable(); } ); @@ -562,7 +562,7 @@ $(document).ready(function() { .on( 'order.dt', function () { eventFired( 'Order' ); } ) .on( 'search.dt', function () { eventFired( 'Search' ); } ) .on( 'page.dt', function () { eventFired( 'Page' ); } ) - .dataTable(); + .DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/advanced_init/events_live.html b/examples/advanced_init/events_live.html index d691259d..2e92a485 100644 --- a/examples/advanced_init/events_live.html +++ b/examples/advanced_init/events_live.html @@ -20,7 +20,7 @@ $(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); $('#example tbody').on('click', 'tr', function () { var name = $('td', this).eq(0).text(); @@ -539,7 +539,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); $('#example tbody').on('click', 'tr', function () { var name = $('td', this).eq(0).text(); diff --git a/examples/advanced_init/footer_callback.html b/examples/advanced_init/footer_callback.html index fe3c0102..88bec442 100644 --- a/examples/advanced_init/footer_callback.html +++ b/examples/advanced_init/footer_callback.html @@ -22,7 +22,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "footerCallback": function ( row, data, start, end, display ) { var api = this.api(), data; @@ -511,7 +511,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "footerCallback": function ( row, data, start, end, display ) { var api = this.api(), data; diff --git a/examples/advanced_init/language_file.html b/examples/advanced_init/language_file.html index 91ba7584..80551953 100644 --- a/examples/advanced_init/language_file.html +++ b/examples/advanced_init/language_file.html @@ -20,7 +20,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "language": { "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json" } @@ -539,7 +539,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "language": { "url": "//cdn.datatables.net/plug-ins/9dcbecd42ad/i18n/German.json" } diff --git a/examples/advanced_init/length_menu.html b/examples/advanced_init/length_menu.html index f1d3346a..37fc29fe 100644 --- a/examples/advanced_init/length_menu.html +++ b/examples/advanced_init/length_menu.html @@ -20,7 +20,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]] } ); } ); @@ -543,7 +543,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]] } ); } ); diff --git a/examples/advanced_init/row_callback.html b/examples/advanced_init/row_callback.html index 202ef903..9d7a1f18 100644 --- a/examples/advanced_init/row_callback.html +++ b/examples/advanced_init/row_callback.html @@ -25,7 +25,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "createdRow": function ( row, data, index ) { if ( data[5].replace(/[\$,]/g, '') * 1 > 150000 ) { $('td', row).eq(5).addClass('highlight'); @@ -547,7 +547,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "createdRow": function ( row, data, index ) { if ( data[5].replace(/[\$,]/g, '') * 1 > 150000 ) { $('td', row).eq(5).addClass('highlight'); diff --git a/examples/advanced_init/sort_direction_control.html b/examples/advanced_init/sort_direction_control.html index 2c212596..db6f5c7e 100644 --- a/examples/advanced_init/sort_direction_control.html +++ b/examples/advanced_init/sort_direction_control.html @@ -20,7 +20,7 @@ $(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "aoColumns": [ null, null, @@ -556,7 +556,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable( { + $('#example').DataTable( { "aoColumns": [ null, null, diff --git a/examples/ajax/custom_data_flat.html b/examples/ajax/custom_data_flat.html index cd58ecbe..5200a843 100644 --- a/examples/ajax/custom_data_flat.html +++ b/examples/ajax/custom_data_flat.html @@ -19,7 +19,7 @@ @@ -539,7 +539,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/basic_init/dom.html b/examples/basic_init/dom.html index 6990e28e..28b1cc7c 100644 --- a/examples/basic_init/dom.html +++ b/examples/basic_init/dom.html @@ -19,7 +19,7 @@ @@ -537,7 +537,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/basic_init/hidden_columns.html b/examples/basic_init/hidden_columns.html index e3da15a4..4a908416 100644 --- a/examples/basic_init/hidden_columns.html +++ b/examples/basic_init/hidden_columns.html @@ -19,7 +19,7 @@ @@ -254,7 +254,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('table.display').dataTable(); + $('table.display').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/basic_init/scroll_x.html b/examples/basic_init/scroll_x.html index 82b83297..45b30548 100644 --- a/examples/basic_init/scroll_x.html +++ b/examples/basic_init/scroll_x.html @@ -24,7 +24,7 @@ @@ -537,7 +537,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/cell-border.html b/examples/styling/cell-border.html index 68d5542a..729f53e8 100644 --- a/examples/styling/cell-border.html +++ b/examples/styling/cell-border.html @@ -19,7 +19,7 @@ @@ -528,7 +528,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/compact.html b/examples/styling/compact.html index a6632e6d..6b9556d6 100644 --- a/examples/styling/compact.html +++ b/examples/styling/compact.html @@ -19,7 +19,7 @@ @@ -529,7 +529,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/display.html b/examples/styling/display.html index 71bdeab6..5e9539c0 100644 --- a/examples/styling/display.html +++ b/examples/styling/display.html @@ -19,7 +19,7 @@ @@ -543,7 +543,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/foundation.html b/examples/styling/foundation.html index d106f597..f89db333 100644 --- a/examples/styling/foundation.html +++ b/examples/styling/foundation.html @@ -21,7 +21,7 @@ @@ -529,7 +529,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/jqueryUI.html b/examples/styling/jqueryUI.html index c6a41cb3..4ed75bcc 100644 --- a/examples/styling/jqueryUI.html +++ b/examples/styling/jqueryUI.html @@ -21,7 +21,7 @@ @@ -540,7 +540,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/no-classes.html b/examples/styling/no-classes.html index a1967f34..6fbd1d35 100644 --- a/examples/styling/no-classes.html +++ b/examples/styling/no-classes.html @@ -19,7 +19,7 @@ @@ -528,7 +528,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/order-column.html b/examples/styling/order-column.html index 3ef80a3c..11c042a1 100644 --- a/examples/styling/order-column.html +++ b/examples/styling/order-column.html @@ -19,7 +19,7 @@ @@ -529,7 +529,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/row-border.html b/examples/styling/row-border.html index 08206d4b..0e65544f 100644 --- a/examples/styling/row-border.html +++ b/examples/styling/row-border.html @@ -19,7 +19,7 @@ @@ -528,7 +528,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example:

diff --git a/examples/styling/stripe.html b/examples/styling/stripe.html index 0f246663..62bef3d9 100644 --- a/examples/styling/stripe.html +++ b/examples/styling/stripe.html @@ -19,7 +19,7 @@ @@ -528,7 +528,7 @@ $(document).ready(function() {

The Javascript shown below is used to initialise the table shown in this example:

$(document).ready(function() { - $('#example').dataTable(); + $('#example').DataTable(); } );

In addition to the above code, the following Javascript library files are loaded for use in this example: