diff --git a/media/src/core/core.ajax.js b/media/src/core/core.ajax.js index 321cb602..507c86de 100644 --- a/media/src/core/core.ajax.js +++ b/media/src/core/core.ajax.js @@ -50,7 +50,7 @@ function _fnBuildAjax( oSettings, data, fn ) if ( json.sError ) { oSettings.oApi._fnLog( oSettings, 0, json.sError ); } - + $(oSettings.oInstance).trigger('xhr', [oSettings, json]); fn( json ); }, @@ -59,7 +59,7 @@ function _fnBuildAjax( oSettings, data, fn ) "type": oSettings.sServerMethod, "error": function (xhr, error, thrown) { if ( error == "parsererror" ) { - oSettings.oApi._fnLog( oSettings, 0, "DataTables: invalid JSON response" ); + oSettings.oApi._fnLog( oSettings, 0, 'Invalid JSON response', 1 ); } } }; diff --git a/media/src/core/core.constructor.js b/media/src/core/core.constructor.js index 15354227..51c24fce 100644 --- a/media/src/core/core.constructor.js +++ b/media/src/core/core.constructor.js @@ -9,8 +9,7 @@ var oInitEmpty = oInit === undefined ? true : false; /* Sanity check */ if ( this.nodeName.toLowerCase() != 'table' ) { - _fnLog( null, 0, "Attempted to initialise DataTables on a node which is not a "+ - "table: "+this.nodeName ); + _fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 ); return; } @@ -45,9 +44,7 @@ for ( i=0, iLen=DataTable.settings.length ; i