@ntlab/ntjs-assets 2.100.0 → 2.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/DataTables/DataTables/js/dataTables.js +110 -122
- package/assets/js/DataTables/DataTables/js/dataTables.min.js +2 -2
- package/assets/js/DataTables/Extensions/AutoFill/js/autoFill.bootstrap5.min.js +1 -1
- package/assets/js/DataTables/Extensions/AutoFill/js/autoFill.dataTables.min.js +1 -1
- package/assets/js/DataTables/Extensions/AutoFill/js/dataTables.autoFill.js +6 -4
- package/assets/js/DataTables/Extensions/AutoFill/js/dataTables.autoFill.min.js +2 -2
- package/assets/js/DataTables/Extensions/Buttons/css/buttons.bootstrap5.css +56 -39
- package/assets/js/DataTables/Extensions/Buttons/css/buttons.bootstrap5.min.css +1 -1
- package/assets/js/DataTables/Extensions/Buttons/js/buttons.bootstrap5.js +14 -6
- package/assets/js/DataTables/Extensions/Buttons/js/buttons.bootstrap5.min.js +1 -1
- package/assets/js/DataTables/Extensions/Buttons/js/buttons.html5.js +8 -3
- package/assets/js/DataTables/Extensions/Buttons/js/buttons.html5.min.js +1 -1
- package/assets/js/DataTables/Extensions/Buttons/js/buttons.print.js +0 -16
- package/assets/js/DataTables/Extensions/Buttons/js/buttons.print.min.js +1 -1
- package/assets/js/DataTables/Extensions/Buttons/js/dataTables.buttons.js +15 -8
- package/assets/js/DataTables/Extensions/Buttons/js/dataTables.buttons.min.js +2 -2
- package/assets/js/DataTables/Extensions/DateTime/css/dataTables.dateTime.css +123 -131
- package/assets/js/DataTables/Extensions/DateTime/css/dataTables.dateTime.min.css +1 -1
- package/assets/js/DataTables/Extensions/DateTime/js/dataTables.dateTime.js +45 -16
- package/assets/js/DataTables/Extensions/DateTime/js/dataTables.dateTime.min.js +2 -2
- package/assets/js/DataTables/Extensions/FixedColumns/css/fixedColumns.bootstrap5.css +13 -17
- package/assets/js/DataTables/Extensions/FixedColumns/css/fixedColumns.bootstrap5.min.css +1 -1
- package/assets/js/DataTables/Extensions/FixedColumns/css/fixedColumns.dataTables.css +13 -17
- package/assets/js/DataTables/Extensions/FixedColumns/css/fixedColumns.dataTables.min.css +1 -1
- package/assets/js/DataTables/Extensions/FixedColumns/js/FixedColumns.js +1 -1
- package/assets/js/DataTables/Extensions/FixedColumns/js/dataTables.fixedColumns.js +4 -4
- package/assets/js/DataTables/Extensions/FixedColumns/js/dataTables.fixedColumns.min.js +2 -2
- package/assets/js/DataTables/Extensions/FixedColumns/js/fixedColumns.bootstrap5.min.js +1 -1
- package/assets/js/DataTables/Extensions/FixedColumns/js/fixedColumns.dataTables.min.js +1 -1
- package/assets/js/DataTables/Extensions/FixedColumns/js/index.js +3 -3
- package/assets/js/DataTables/Extensions/RowGroup/js/dataTables.rowGroup.js +30 -12
- package/assets/js/DataTables/Extensions/RowGroup/js/dataTables.rowGroup.min.js +2 -2
- package/assets/js/DataTables/Extensions/SearchBuilder/js/dataTables.searchBuilder.js +16 -9
- package/assets/js/DataTables/Extensions/SearchBuilder/js/dataTables.searchBuilder.min.js +2 -2
- package/assets/js/DataTables/Extensions/StateRestore/js/StateRestore.js +19 -12
- package/assets/js/DataTables/Extensions/StateRestore/js/StateRestoreCollection.js +81 -12
- package/assets/js/DataTables/Extensions/StateRestore/js/dataTables.stateRestore.js +105 -28
- package/assets/js/DataTables/Extensions/StateRestore/js/dataTables.stateRestore.min.js +2 -2
- package/assets/js/DataTables/Extensions/StateRestore/js/index.js +5 -4
- package/assets/js/DataTables/Extensions/StateRestore/js/stateRestore.bootstrap5.min.js +1 -1
- package/assets/js/DataTables/Extensions/StateRestore/js/stateRestore.dataTables.min.js +1 -1
- package/assets/js/cdn.json +8 -8
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! DataTables 2.3.
|
|
1
|
+
/*! DataTables 2.3.4
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
@@ -166,6 +166,9 @@
|
|
|
166
166
|
this.id = sId;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
+
// Replacing an existing colgroup with our own. Not ideal, but a merge could take a lot of code
|
|
170
|
+
$this.children('colgroup').remove();
|
|
171
|
+
|
|
169
172
|
/* Create the settings object for this table and set some of the default parameters */
|
|
170
173
|
var oSettings = $.extend( true, {}, DataTable.models.oSettings, {
|
|
171
174
|
"sDestroyWidth": $this[0].style.width,
|
|
@@ -4158,24 +4161,21 @@
|
|
|
4158
4161
|
* DataTables - may be augmented by developer callbacks
|
|
4159
4162
|
* @param {function} fn Callback function to run when data is obtained
|
|
4160
4163
|
*/
|
|
4161
|
-
function _fnBuildAjax(
|
|
4162
|
-
{
|
|
4164
|
+
function _fnBuildAjax(oSettings, data, fn) {
|
|
4163
4165
|
var ajaxData;
|
|
4164
4166
|
var ajax = oSettings.ajax;
|
|
4165
4167
|
var instance = oSettings.oInstance;
|
|
4166
|
-
var callback = function (
|
|
4167
|
-
var status = oSettings.jqXHR
|
|
4168
|
-
? oSettings.jqXHR.status
|
|
4169
|
-
: null;
|
|
4168
|
+
var callback = function (json) {
|
|
4169
|
+
var status = oSettings.jqXHR ? oSettings.jqXHR.status : null;
|
|
4170
4170
|
|
|
4171
|
-
if (
|
|
4171
|
+
if (json === null || (typeof status === 'number' && status == 204)) {
|
|
4172
4172
|
json = {};
|
|
4173
|
-
_fnAjaxDataSrc(
|
|
4173
|
+
_fnAjaxDataSrc(oSettings, json, []);
|
|
4174
4174
|
}
|
|
4175
4175
|
|
|
4176
4176
|
var error = json.error || json.sError;
|
|
4177
|
-
if (
|
|
4178
|
-
_fnLog(
|
|
4177
|
+
if (error) {
|
|
4178
|
+
_fnLog(oSettings, 0, error);
|
|
4179
4179
|
}
|
|
4180
4180
|
|
|
4181
4181
|
// Microsoft often wrap JSON as a string in another JSON object
|
|
@@ -4183,30 +4183,27 @@
|
|
|
4183
4183
|
if (json.d && typeof json.d === 'string') {
|
|
4184
4184
|
try {
|
|
4185
4185
|
json = JSON.parse(json.d);
|
|
4186
|
-
}
|
|
4187
|
-
catch (e) {
|
|
4186
|
+
} catch (e) {
|
|
4188
4187
|
// noop
|
|
4189
4188
|
}
|
|
4190
4189
|
}
|
|
4191
4190
|
|
|
4192
4191
|
oSettings.json = json;
|
|
4193
4192
|
|
|
4194
|
-
_fnCallbackFire(
|
|
4195
|
-
fn(
|
|
4193
|
+
_fnCallbackFire(oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR], true);
|
|
4194
|
+
fn(json);
|
|
4196
4195
|
};
|
|
4197
4196
|
|
|
4198
|
-
if (
|
|
4199
|
-
{
|
|
4197
|
+
if ($.isPlainObject(ajax) && ajax.data) {
|
|
4200
4198
|
ajaxData = ajax.data;
|
|
4201
4199
|
|
|
4202
|
-
var newData =
|
|
4203
|
-
ajaxData
|
|
4204
|
-
|
|
4200
|
+
var newData =
|
|
4201
|
+
typeof ajaxData === 'function'
|
|
4202
|
+
? ajaxData(data, oSettings) // fn can manipulate data or return
|
|
4203
|
+
: ajaxData; // an object or array to merge
|
|
4205
4204
|
|
|
4206
4205
|
// If the function returned something, use that alone
|
|
4207
|
-
data = typeof ajaxData === 'function' && newData ?
|
|
4208
|
-
newData :
|
|
4209
|
-
$.extend( true, data, newData );
|
|
4206
|
+
data = typeof ajaxData === 'function' && newData ? newData : $.extend(true, data, newData);
|
|
4210
4207
|
|
|
4211
4208
|
// Remove the data property as we've resolved it already and don't want
|
|
4212
4209
|
// jQuery to do it again (it is restored at the end of the function)
|
|
@@ -4214,50 +4211,53 @@
|
|
|
4214
4211
|
}
|
|
4215
4212
|
|
|
4216
4213
|
var baseAjax = {
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4214
|
+
url: typeof ajax === 'string' ? ajax : '',
|
|
4215
|
+
data: data,
|
|
4216
|
+
success: callback,
|
|
4217
|
+
dataType: 'json',
|
|
4218
|
+
cache: false,
|
|
4219
|
+
type: oSettings.sServerMethod,
|
|
4220
|
+
error: function (xhr, error) {
|
|
4221
|
+
var ret = _fnCallbackFire(
|
|
4222
|
+
oSettings,
|
|
4223
|
+
null,
|
|
4224
|
+
'xhr',
|
|
4225
|
+
[oSettings, null, oSettings.jqXHR],
|
|
4226
|
+
true
|
|
4227
|
+
);
|
|
4228
|
+
|
|
4229
|
+
if (ret.indexOf(true) === -1) {
|
|
4230
|
+
if (error == 'parsererror') {
|
|
4231
|
+
_fnLog(oSettings, 0, 'Invalid JSON response', 1);
|
|
4231
4232
|
}
|
|
4232
|
-
else if (
|
|
4233
|
-
_fnLog(
|
|
4233
|
+
else if (xhr.readyState === 4) {
|
|
4234
|
+
_fnLog(oSettings, 0, 'Ajax error', 7);
|
|
4234
4235
|
}
|
|
4235
4236
|
}
|
|
4236
4237
|
|
|
4237
|
-
_fnProcessingDisplay(
|
|
4238
|
+
_fnProcessingDisplay(oSettings, false);
|
|
4238
4239
|
}
|
|
4239
4240
|
};
|
|
4240
4241
|
|
|
4241
4242
|
// If `ajax` option is an object, extend and override our default base
|
|
4242
|
-
if (
|
|
4243
|
-
$.extend(
|
|
4243
|
+
if ($.isPlainObject(ajax)) {
|
|
4244
|
+
$.extend(baseAjax, ajax);
|
|
4244
4245
|
}
|
|
4245
4246
|
|
|
4246
4247
|
// Store the data submitted for the API
|
|
4247
4248
|
oSettings.oAjaxData = data;
|
|
4248
4249
|
|
|
4249
4250
|
// Allow plug-ins and external processes to modify the data
|
|
4250
|
-
_fnCallbackFire(
|
|
4251
|
+
_fnCallbackFire(oSettings, null, 'preXhr', [oSettings, data, baseAjax], true);
|
|
4251
4252
|
|
|
4252
4253
|
// Custom Ajax option to submit the parameters as a JSON string
|
|
4253
4254
|
if (baseAjax.submitAs === 'json' && typeof data === 'object') {
|
|
4254
4255
|
baseAjax.data = JSON.stringify(data);
|
|
4255
4256
|
}
|
|
4256
4257
|
|
|
4257
|
-
if (
|
|
4258
|
-
{
|
|
4258
|
+
if (typeof ajax === 'function') {
|
|
4259
4259
|
// Is a function - let the caller define what needs to be done
|
|
4260
|
-
oSettings.jqXHR = ajax.call(
|
|
4260
|
+
oSettings.jqXHR = ajax.call(instance, data, callback, oSettings);
|
|
4261
4261
|
}
|
|
4262
4262
|
else if (ajax.url === '') {
|
|
4263
4263
|
// No url, so don't load any data. Just apply an empty data array
|
|
@@ -4269,37 +4269,30 @@
|
|
|
4269
4269
|
}
|
|
4270
4270
|
else {
|
|
4271
4271
|
// Object to extend the base settings
|
|
4272
|
-
oSettings.jqXHR = $.ajax(
|
|
4272
|
+
oSettings.jqXHR = $.ajax(baseAjax);
|
|
4273
4273
|
}
|
|
4274
4274
|
|
|
4275
4275
|
// Restore for next time around
|
|
4276
|
-
if (
|
|
4276
|
+
if (ajaxData) {
|
|
4277
4277
|
ajax.data = ajaxData;
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
4280
|
|
|
4281
|
-
|
|
4282
4281
|
/**
|
|
4283
4282
|
* Update the table using an Ajax call
|
|
4284
4283
|
* @param {object} settings dataTables settings object
|
|
4285
4284
|
* @returns {boolean} Block the table drawing or not
|
|
4286
4285
|
* @memberof DataTable#oApi
|
|
4287
4286
|
*/
|
|
4288
|
-
function _fnAjaxUpdate(
|
|
4289
|
-
{
|
|
4287
|
+
function _fnAjaxUpdate(settings) {
|
|
4290
4288
|
settings.iDraw++;
|
|
4291
|
-
_fnProcessingDisplay(
|
|
4289
|
+
_fnProcessingDisplay(settings, true);
|
|
4292
4290
|
|
|
4293
|
-
_fnBuildAjax(
|
|
4294
|
-
settings,
|
|
4295
|
-
|
|
4296
|
-
function(json) {
|
|
4297
|
-
_fnAjaxUpdateDraw( settings, json );
|
|
4298
|
-
}
|
|
4299
|
-
);
|
|
4291
|
+
_fnBuildAjax(settings, _fnAjaxParameters(settings), function (json) {
|
|
4292
|
+
_fnAjaxUpdateDraw(settings, json);
|
|
4293
|
+
});
|
|
4300
4294
|
}
|
|
4301
4295
|
|
|
4302
|
-
|
|
4303
4296
|
/**
|
|
4304
4297
|
* Build up the parameters in an object needed for a server-side processing
|
|
4305
4298
|
* request.
|
|
@@ -4307,22 +4300,18 @@
|
|
|
4307
4300
|
* @returns {bool} block the table drawing or not
|
|
4308
4301
|
* @memberof DataTable#oApi
|
|
4309
4302
|
*/
|
|
4310
|
-
function _fnAjaxParameters(
|
|
4311
|
-
|
|
4312
|
-
var
|
|
4313
|
-
columns = settings.aoColumns,
|
|
4303
|
+
function _fnAjaxParameters(settings) {
|
|
4304
|
+
var columns = settings.aoColumns,
|
|
4314
4305
|
features = settings.oFeatures,
|
|
4315
4306
|
preSearch = settings.oPreviousSearch,
|
|
4316
4307
|
preColSearch = settings.aoPreSearchCols,
|
|
4317
|
-
colData = function (
|
|
4318
|
-
return typeof columns[idx][prop] === 'function' ?
|
|
4319
|
-
'function' :
|
|
4320
|
-
columns[idx][prop];
|
|
4308
|
+
colData = function (idx, prop) {
|
|
4309
|
+
return typeof columns[idx][prop] === 'function' ? 'function' : columns[idx][prop];
|
|
4321
4310
|
};
|
|
4322
4311
|
|
|
4323
4312
|
return {
|
|
4324
4313
|
draw: settings.iDraw,
|
|
4325
|
-
columns: columns.map(
|
|
4314
|
+
columns: columns.map(function (column, i) {
|
|
4326
4315
|
return {
|
|
4327
4316
|
data: colData(i, 'mData'),
|
|
4328
4317
|
name: column.sName,
|
|
@@ -4331,40 +4320,43 @@
|
|
|
4331
4320
|
search: {
|
|
4332
4321
|
value: preColSearch[i].search,
|
|
4333
4322
|
regex: preColSearch[i].regex,
|
|
4334
|
-
fixed: Object.keys(column.searchFixed)
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4323
|
+
fixed: Object.keys(column.searchFixed)
|
|
4324
|
+
.map(function (name) {
|
|
4325
|
+
return {
|
|
4326
|
+
name: name,
|
|
4327
|
+
term: typeof column.searchFixed[name] !== 'function'
|
|
4328
|
+
? column.searchFixed[name].toString()
|
|
4329
|
+
: 'function'
|
|
4330
|
+
};
|
|
4331
|
+
})
|
|
4340
4332
|
}
|
|
4341
4333
|
};
|
|
4342
|
-
}
|
|
4343
|
-
order: _fnSortFlatten(
|
|
4334
|
+
}),
|
|
4335
|
+
order: _fnSortFlatten(settings).map(function (val) {
|
|
4344
4336
|
return {
|
|
4345
4337
|
column: val.col,
|
|
4346
4338
|
dir: val.dir,
|
|
4347
4339
|
name: colData(val.col, 'sName')
|
|
4348
4340
|
};
|
|
4349
|
-
}
|
|
4341
|
+
}),
|
|
4350
4342
|
start: settings._iDisplayStart,
|
|
4351
|
-
length: features.bPaginate ?
|
|
4352
|
-
settings._iDisplayLength :
|
|
4353
|
-
-1,
|
|
4343
|
+
length: features.bPaginate ? settings._iDisplayLength : -1,
|
|
4354
4344
|
search: {
|
|
4355
4345
|
value: preSearch.search,
|
|
4356
4346
|
regex: preSearch.regex,
|
|
4357
|
-
fixed: Object.keys(settings.searchFixed)
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4347
|
+
fixed: Object.keys(settings.searchFixed)
|
|
4348
|
+
.map(function (name) {
|
|
4349
|
+
return {
|
|
4350
|
+
name: name,
|
|
4351
|
+
term: typeof settings.searchFixed[name] !== 'function'
|
|
4352
|
+
? settings.searchFixed[name].toString()
|
|
4353
|
+
: 'function'
|
|
4354
|
+
};
|
|
4355
|
+
})
|
|
4363
4356
|
}
|
|
4364
4357
|
};
|
|
4365
4358
|
}
|
|
4366
4359
|
|
|
4367
|
-
|
|
4368
4360
|
/**
|
|
4369
4361
|
* Data the data from the server (nuking the old) and redraw the table
|
|
4370
4362
|
* @param {object} oSettings dataTables settings object
|
|
@@ -4376,42 +4368,40 @@
|
|
|
4376
4368
|
* @param {string} [json.sColumns] Column ordering (sName, comma separated)
|
|
4377
4369
|
* @memberof DataTable#oApi
|
|
4378
4370
|
*/
|
|
4379
|
-
function _fnAjaxUpdateDraw
|
|
4380
|
-
{
|
|
4371
|
+
function _fnAjaxUpdateDraw(settings, json) {
|
|
4381
4372
|
var data = _fnAjaxDataSrc(settings, json);
|
|
4382
4373
|
var draw = _fnAjaxDataSrcParam(settings, 'draw', json);
|
|
4383
4374
|
var recordsTotal = _fnAjaxDataSrcParam(settings, 'recordsTotal', json);
|
|
4384
4375
|
var recordsFiltered = _fnAjaxDataSrcParam(settings, 'recordsFiltered', json);
|
|
4385
4376
|
|
|
4386
|
-
if (
|
|
4377
|
+
if (draw !== undefined) {
|
|
4387
4378
|
// Protect against out of sequence returns
|
|
4388
|
-
if (
|
|
4379
|
+
if (draw * 1 < settings.iDraw) {
|
|
4389
4380
|
return;
|
|
4390
4381
|
}
|
|
4391
4382
|
settings.iDraw = draw * 1;
|
|
4392
4383
|
}
|
|
4393
4384
|
|
|
4394
4385
|
// No data in returned object, so rather than an array, we show an empty table
|
|
4395
|
-
if (
|
|
4386
|
+
if (!data) {
|
|
4396
4387
|
data = [];
|
|
4397
4388
|
}
|
|
4398
4389
|
|
|
4399
|
-
_fnClearTable(
|
|
4400
|
-
settings._iRecordsTotal
|
|
4390
|
+
_fnClearTable(settings);
|
|
4391
|
+
settings._iRecordsTotal = parseInt(recordsTotal, 10);
|
|
4401
4392
|
settings._iRecordsDisplay = parseInt(recordsFiltered, 10);
|
|
4402
4393
|
|
|
4403
|
-
for (
|
|
4404
|
-
_fnAddData(
|
|
4394
|
+
for (var i = 0, iLen = data.length; i < iLen; i++) {
|
|
4395
|
+
_fnAddData(settings, data[i]);
|
|
4405
4396
|
}
|
|
4406
4397
|
settings.aiDisplay = settings.aiDisplayMaster.slice();
|
|
4407
4398
|
|
|
4408
4399
|
_fnColumnTypes(settings);
|
|
4409
|
-
_fnDraw(
|
|
4410
|
-
_fnInitComplete(
|
|
4411
|
-
_fnProcessingDisplay(
|
|
4400
|
+
_fnDraw(settings, true);
|
|
4401
|
+
_fnInitComplete(settings);
|
|
4402
|
+
_fnProcessingDisplay(settings, false);
|
|
4412
4403
|
}
|
|
4413
4404
|
|
|
4414
|
-
|
|
4415
4405
|
/**
|
|
4416
4406
|
* Get the data from the JSON data source to use for drawing a table. Using
|
|
4417
4407
|
* `_fnGetObjectDataFn` allows the data to be sourced from a property of the
|
|
@@ -4420,11 +4410,10 @@
|
|
|
4420
4410
|
* @param {object} json Data source object / array from the server
|
|
4421
4411
|
* @return {array} Array of data to use
|
|
4422
4412
|
*/
|
|
4423
|
-
function _fnAjaxDataSrc
|
|
4424
|
-
{
|
|
4413
|
+
function _fnAjaxDataSrc(settings, json, write) {
|
|
4425
4414
|
var dataProp = 'data';
|
|
4426
4415
|
|
|
4427
|
-
if ($.isPlainObject(
|
|
4416
|
+
if ($.isPlainObject(settings.ajax) && settings.ajax.dataSrc !== undefined) {
|
|
4428
4417
|
// Could in inside a `dataSrc` object, or not!
|
|
4429
4418
|
var dataSrc = settings.ajax.dataSrc;
|
|
4430
4419
|
|
|
@@ -4437,20 +4426,18 @@
|
|
|
4437
4426
|
}
|
|
4438
4427
|
}
|
|
4439
4428
|
|
|
4440
|
-
if (
|
|
4441
|
-
if (
|
|
4429
|
+
if (!write) {
|
|
4430
|
+
if (dataProp === 'data') {
|
|
4442
4431
|
// If the default, then we still want to support the old style, and safely ignore
|
|
4443
4432
|
// it if possible
|
|
4444
4433
|
return json.aaData || json[dataProp];
|
|
4445
4434
|
}
|
|
4446
4435
|
|
|
4447
|
-
return dataProp !==
|
|
4448
|
-
_fnGetObjectDataFn( dataProp )( json ) :
|
|
4449
|
-
json;
|
|
4436
|
+
return dataProp !== '' ? _fnGetObjectDataFn(dataProp)(json) : json;
|
|
4450
4437
|
}
|
|
4451
|
-
|
|
4438
|
+
|
|
4452
4439
|
// set
|
|
4453
|
-
_fnSetObjectDataFn(
|
|
4440
|
+
_fnSetObjectDataFn(dataProp)(json, write);
|
|
4454
4441
|
}
|
|
4455
4442
|
|
|
4456
4443
|
/**
|
|
@@ -4460,14 +4447,12 @@
|
|
|
4460
4447
|
* @param {*} json JSON data
|
|
4461
4448
|
* @returns Resolved value
|
|
4462
4449
|
*/
|
|
4463
|
-
function _fnAjaxDataSrcParam
|
|
4464
|
-
var dataSrc = $.isPlainObject( settings.ajax
|
|
4465
|
-
? settings.ajax.dataSrc
|
|
4466
|
-
: null;
|
|
4450
|
+
function _fnAjaxDataSrcParam(settings, param, json) {
|
|
4451
|
+
var dataSrc = $.isPlainObject(settings.ajax) ? settings.ajax.dataSrc : null;
|
|
4467
4452
|
|
|
4468
4453
|
if (dataSrc && dataSrc[param]) {
|
|
4469
4454
|
// Get from custom location
|
|
4470
|
-
return _fnGetObjectDataFn(
|
|
4455
|
+
return _fnGetObjectDataFn(dataSrc[param])(json);
|
|
4471
4456
|
}
|
|
4472
4457
|
|
|
4473
4458
|
// else - Default behaviour
|
|
@@ -4484,9 +4469,7 @@
|
|
|
4484
4469
|
old = 'iTotalDisplayRecords';
|
|
4485
4470
|
}
|
|
4486
4471
|
|
|
4487
|
-
return json[old] !== undefined
|
|
4488
|
-
? json[old]
|
|
4489
|
-
: json[param];
|
|
4472
|
+
return json[old] !== undefined ? json[old] : json[param];
|
|
4490
4473
|
}
|
|
4491
4474
|
|
|
4492
4475
|
|
|
@@ -6501,7 +6484,9 @@
|
|
|
6501
6484
|
|
|
6502
6485
|
// If the api is defined then we need to adjust the columns once the visibility has been changed
|
|
6503
6486
|
if (api) {
|
|
6504
|
-
api.
|
|
6487
|
+
api.one('draw', function () {
|
|
6488
|
+
api.columns.adjust();
|
|
6489
|
+
});
|
|
6505
6490
|
}
|
|
6506
6491
|
}
|
|
6507
6492
|
}
|
|
@@ -10221,7 +10206,7 @@
|
|
|
10221
10206
|
* @type string
|
|
10222
10207
|
* @default Version number
|
|
10223
10208
|
*/
|
|
10224
|
-
DataTable.version = "2.3.
|
|
10209
|
+
DataTable.version = "2.3.4";
|
|
10225
10210
|
|
|
10226
10211
|
/**
|
|
10227
10212
|
* Private data store, containing all of the settings objects that are
|
|
@@ -12638,7 +12623,10 @@
|
|
|
12638
12623
|
}
|
|
12639
12624
|
|
|
12640
12625
|
var formatted = to === null
|
|
12641
|
-
? __mld(dt, 'toDate', 'toJSDate', '')[localeString](
|
|
12626
|
+
? __mld(dt, 'toDate', 'toJSDate', '')[localeString](
|
|
12627
|
+
navigator.language,
|
|
12628
|
+
{ timeZone: "UTC" }
|
|
12629
|
+
)
|
|
12642
12630
|
: __mld(dt, 'format', 'toFormat', 'toISOString', to);
|
|
12643
12631
|
|
|
12644
12632
|
// XSS protection
|