1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-11-29 11:24:10 +01:00

Fix: Was only binding xhr event where there was more than one table! Doh!

This commit is contained in:
Allan Jardine 2011-12-06 17:09:39 +00:00
parent c5172dc920
commit 486315a25c

View File

@ -333,7 +333,7 @@ var dtLinks = [
/* Show and syntax highlight XHR returns from the server */
$(document).ready( function () {
if ( $.fn.dataTableSettings.length > 1 ) {
if ( $.fn.dataTableSettings.length >= 1 ) {
$('#example').dataTable().bind('xhr', function ( e, oSettings ) {
var n = document.getElementById('latest_xhr');
n.innerHTML = JSON.stringify(