1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-20 18:54:15 +01:00

Fix - example: Form input example doesn't use live DOM sorting, so shouldn't show the input columns as sortable

- DD-823
This commit is contained in:
Allan Jardine 2019-10-01 13:08:42 +00:00
parent 1ea1821bf8
commit 68e41c4a6c
2 changed files with 13 additions and 3 deletions

View File

@ -1 +1 @@
9ac58b7b02d2d9979a622465d8eaa556f869edb5
ad8a5b8006d7201339245300e31c0988154f93a6

View File

@ -19,7 +19,12 @@
$(document).ready(function() {
var table = $('#example').DataTable();
var table = $('#example').DataTable({
columnDefs: [{
orderable: false,
targets: [1,2,3]
}]
});
$('button').click( function() {
var data = table.$('input, select').serialize();
@ -1336,7 +1341,12 @@ $(document).ready(function() {
<div class="tabs">
<div class="js">
<p>The Javascript shown below is used to initialise the table shown in this example:</p><code class="multiline language-js">$(document).ready(function() {
var table = $('#example').DataTable();
var table = $('#example').DataTable({
columnDefs: [{
orderable: false,
targets: [1,2,3]
}]
});
$('button').click( function() {
var data = table.$('input, select').serialize();