Script not working the same when using version 1.10.9 as it did in version 1.10.7
Script not working the same when using version 1.10.9 as it did in version 1.10.7
measterbro
Posts: 33Questions: 9Answers: 0
This page using version 1.10.9:
http://citydynasty.com/Hockey/NHL/Standings/Overall/2012-NHL-Standings-Overall%20-%20Copy.cshtml
does not run my script the same as this page which uses version 1.10.7:
http://citydynasty.com/Hockey/NHL/Standings/Overall/2012-NHL-Standings-Overall%20-%20Copy2.cshtml
The pages are identical except for the line:
or
The script is:
$(window).load(function () {
$('#cover').fadeOut(1000);
});
$(function () {
$(".table_id1").addClass("order-column");
$(".table_id1").addClass("CSSTableGenerator");
$(".table_id1").toggle();
});
$(document).ready(function () {
$.extend($.fn.DataTable.defaults, {
scrollX: true,
paging: false,
info: false,
searching: false,
bAutoWidth: false,
bPaginate: false
});
});
$(document).ready(function() {
var t = $('.table_id1').DataTable({
"columnDefs": [ {
"searchable": false,
"orderable": false,
"targets": 0
}]
,
"order": [[6, 'desc' ]]
} );
t.on( 'order.dt search.dt', function () {
t.column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
cell.innerHTML = i+1;
} );
}).draw();
new $.fn.DataTable.FixedColumns(t, {
leftColumns: 2,
rightColumns: 0
});
});
This discussion has been closed.
Replies
Thanks for raising this. This is an error in 1.10.8 and 1.10.9 which occurs when x-scrolling is enabled using a boolean value in the defaults - i.e.:
I've just committed a fix and it is available in the nightly version now.
Allan
Thank you for the response.
This seems to have fixed my problem. When will the files become part of a new version? I need the non-minified CSS files so I can re-do some changes I made and then I can minify them.
There is a non-min version in the nightly files I linked to - just remove the
.min
extension.I'll probably do a release at the end of the month, but it depends upon a number of variables.
Allan