Multiple tables on one page, sort/search only working in the first table

Multiple tables on one page, sort/search only working in the first table

richardsonjmrichardsonjm Posts: 1Questions: 0Answers: 0
edited January 2014 in General
Have three datatables on one page. The tables look right, but sort/search only working in the first of the tables.
Environment is rails 3.2. Think it probably has something to do with my coffeescript below.
Thanks in advance for any help.

Cheers,
John

[code]
jQuery ->
$('#reviews').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null,
{ "bSortable": false },
{ "bSortable": false },
{ "bSortable": false }
]

jQuery ->
$('#candidates').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null
]

jQuery ->
$('#reviewers').dataTable
sPaginationType: "full_numbers"
bJQueryUI: true
"aoColumns": [ null,
null,
null
]
[/code]

Replies

  • netaisllcnetaisllc Posts: 24Questions: 2Answers: 0
    Hi,
    Are there any console messages logged when you attempt to use the 2nd and 3rd tables? Maybe post a link to your page so the JS is exposed to the community.
This discussion has been closed.