mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
New: When making an Ajax call for data (fnServerData) and the server responds with the JSON parameter "sError" set, Data
Tables will alert this out. Typically end users should never see this - it is useful for error reporting from the server though.
This commit is contained in:
parent
ed935f3fb8
commit
320f53e217
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -8686,7 +8686,7 @@
|
||||
"data": aoData,
|
||||
"success": function (json) {
|
||||
if ( json.sError ) {
|
||||
alert( json.sError );
|
||||
oSettings.oApi._fnLog( oSettings, 0, json.sError );
|
||||
}
|
||||
|
||||
$(oSettings.oInstance).trigger('xhr', oSettings);
|
||||
|
@ -919,7 +919,7 @@ DataTable.defaults = {
|
||||
"data": aoData,
|
||||
"success": function (json) {
|
||||
if ( json.sError ) {
|
||||
alert( json.sError );
|
||||
oSettings.oApi._fnLog( oSettings, 0, json.sError );
|
||||
}
|
||||
|
||||
$(oSettings.oInstance).trigger('xhr', oSettings);
|
||||
|
Loading…
x
Reference in New Issue
Block a user