mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-28 01:54:15 +01:00
New: When making an Ajax call for data (fnServerData) and the server responds with the JSON parameter "sError" set, DataTables 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
45a6d2b505
commit
ed935f3fb8
4
media/js/jquery.dataTables.js
vendored
4
media/js/jquery.dataTables.js
vendored
@ -8685,6 +8685,10 @@
|
||||
"url": sUrl,
|
||||
"data": aoData,
|
||||
"success": function (json) {
|
||||
if ( json.sError ) {
|
||||
alert( json.sError );
|
||||
}
|
||||
|
||||
$(oSettings.oInstance).trigger('xhr', oSettings);
|
||||
fnCallback( json );
|
||||
},
|
||||
|
@ -918,6 +918,10 @@ DataTable.defaults = {
|
||||
"url": sUrl,
|
||||
"data": aoData,
|
||||
"success": function (json) {
|
||||
if ( json.sError ) {
|
||||
alert( json.sError );
|
||||
}
|
||||
|
||||
$(oSettings.oInstance).trigger('xhr', oSettings);
|
||||
fnCallback( json );
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user