datatables.net 2.1.3 → 2.1.4
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.js +26 -9
- package/js/dataTables.min.js +2 -2
- package/js/dataTables.min.mjs +2 -2
- package/js/dataTables.mjs +25 -8
- package/package.json +1 -1
package/js/dataTables.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/*! DataTables 2.1.
|
|
1
|
+
/*! DataTables 2.1.4
|
|
2
2
|
* © SpryMedia Ltd - datatables.net/license
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @summary DataTables
|
|
7
7
|
* @description Paginate, search and order HTML tables
|
|
8
|
-
* @version 2.1.
|
|
8
|
+
* @version 2.1.4
|
|
9
9
|
* @author SpryMedia Ltd
|
|
10
10
|
* @contact www.datatables.net
|
|
11
11
|
* @copyright SpryMedia Ltd.
|
|
@@ -8482,8 +8482,10 @@
|
|
|
8482
8482
|
switch( match[2] ) {
|
|
8483
8483
|
case 'visIdx':
|
|
8484
8484
|
case 'visible':
|
|
8485
|
-
|
|
8485
|
+
// Selector is a column index
|
|
8486
|
+
if (match[1] && match[1].match(/^\d+$/)) {
|
|
8486
8487
|
var idx = parseInt( match[1], 10 );
|
|
8488
|
+
|
|
8487
8489
|
// Visible index given, convert to column index
|
|
8488
8490
|
if ( idx < 0 ) {
|
|
8489
8491
|
// Counting from the right
|
|
@@ -8496,9 +8498,19 @@
|
|
|
8496
8498
|
return [ _fnVisibleToColumnIndex( settings, idx ) ];
|
|
8497
8499
|
}
|
|
8498
8500
|
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8501
|
+
return columns.map( function (col, idx) {
|
|
8502
|
+
// Not visible, can't match
|
|
8503
|
+
if (! col.bVisible) {
|
|
8504
|
+
return null;
|
|
8505
|
+
}
|
|
8506
|
+
|
|
8507
|
+
// Selector
|
|
8508
|
+
if (match[1]) {
|
|
8509
|
+
return $(nodes[idx]).filter(match[1]).length > 0 ? idx : null;
|
|
8510
|
+
}
|
|
8511
|
+
|
|
8512
|
+
// `:visible` on its own
|
|
8513
|
+
return idx;
|
|
8502
8514
|
} );
|
|
8503
8515
|
|
|
8504
8516
|
case 'name':
|
|
@@ -9811,7 +9823,7 @@
|
|
|
9811
9823
|
* @type string
|
|
9812
9824
|
* @default Version number
|
|
9813
9825
|
*/
|
|
9814
|
-
DataTable.version = "2.1.
|
|
9826
|
+
DataTable.version = "2.1.4";
|
|
9815
9827
|
|
|
9816
9828
|
/**
|
|
9817
9829
|
* Private data store, containing all of the settings objects that are
|
|
@@ -12485,7 +12497,7 @@
|
|
|
12485
12497
|
pre: function ( a ) {
|
|
12486
12498
|
// This is a little complex, but faster than always calling toString,
|
|
12487
12499
|
// http://jsperf.com/tostring-v-check
|
|
12488
|
-
return _empty(a) ?
|
|
12500
|
+
return _empty(a) && typeof a !== 'boolean' ?
|
|
12489
12501
|
'' :
|
|
12490
12502
|
typeof a === 'string' ?
|
|
12491
12503
|
a.toLowerCase() :
|
|
@@ -12738,6 +12750,12 @@
|
|
|
12738
12750
|
return; // table, not a nested one
|
|
12739
12751
|
}
|
|
12740
12752
|
|
|
12753
|
+
var sorting = ctx.sortDetails;
|
|
12754
|
+
|
|
12755
|
+
if (! sorting) {
|
|
12756
|
+
return;
|
|
12757
|
+
}
|
|
12758
|
+
|
|
12741
12759
|
var i;
|
|
12742
12760
|
var orderClasses = classes.order;
|
|
12743
12761
|
var columns = ctx.api.columns( cell );
|
|
@@ -12746,7 +12764,6 @@
|
|
|
12746
12764
|
var ariaType = '';
|
|
12747
12765
|
var indexes = columns.indexes();
|
|
12748
12766
|
var sortDirs = columns.orderable(true).flatten();
|
|
12749
|
-
var sorting = ctx.sortDetails;
|
|
12750
12767
|
var orderedColumns = _pluck(sorting, 'col');
|
|
12751
12768
|
|
|
12752
12769
|
cell
|