datatables.net 2.3.0 → 2.3.1

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/js/dataTables.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! DataTables 2.3.0
1
+ /*! DataTables 2.3.1
2
2
  * © SpryMedia Ltd - datatables.net/license
3
3
  */
4
4
 
@@ -1871,6 +1871,10 @@ function _fnCompatOpts ( init )
1871
1871
  init.orderIndicators = false;
1872
1872
  init.orderHandler = false;
1873
1873
  }
1874
+ else if (init.bSort === true) {
1875
+ init.orderIndicators = true;
1876
+ init.orderHandler = true;
1877
+ }
1874
1878
 
1875
1879
  // Which cells are the title cells?
1876
1880
  if (typeof init.bSortCellsTop === 'boolean') {
@@ -3538,7 +3542,9 @@ function _fnReDraw( settings, holdPosition, recompute )
3538
3542
 
3539
3543
  _fnDraw( settings );
3540
3544
 
3541
- settings._drawHold = false;
3545
+ settings.api.one('draw', function () {
3546
+ settings._drawHold = false;
3547
+ });
3542
3548
  }
3543
3549
 
3544
3550
 
@@ -10158,7 +10164,7 @@ function cleanHeader(node, className) {
10158
10164
  * @type string
10159
10165
  * @default Version number
10160
10166
  */
10161
- DataTable.version = "2.3.0";
10167
+ DataTable.version = "2.3.1";
10162
10168
 
10163
10169
  /**
10164
10170
  * Private data store, containing all of the settings objects that are
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "js/dataTables.js",
5
5
  "module": "js/dataTables.mjs",
6
6
  "types": "./types/types.d.ts",
7
- "version": "2.3.0",
7
+ "version": "2.3.1",
8
8
  "files": [
9
9
  "js/**/*.js",
10
10
  "js/**/*.mjs",
package/types/types.d.ts CHANGED
@@ -3405,7 +3405,7 @@ type FunctionPreDrawCallback = (this: JQueryDataTables, settings: InternalSettin
3405
3405
 
3406
3406
  type FunctionRowCallback = (this: JQueryDataTables, row: HTMLTableRowElement, data: any[] | object, index: number) => void;
3407
3407
 
3408
- type FunctionStateLoadCallback = (this: JQueryDataTables, settings: InternalSettings, callback: ((state) => void)) => void | object;
3408
+ type FunctionStateLoadCallback = (this: JQueryDataTables, settings: InternalSettings, callback: ((state: State) => void)) => void | object;
3409
3409
 
3410
3410
  type FunctionStateLoaded = (this: JQueryDataTables, settings: InternalSettings, data: object) => void;
3411
3411