mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-17 15:54:14 +01:00
Dev fix: iDataSort and aDataSort conflicting on camelCase
- Simple fix is to check if it is a number or not
This commit is contained in:
parent
8573d5955c
commit
6bd699b537
@ -1 +1 @@
|
||||
4e31fb7585a9b338257edd8472de37255f924a0d
|
||||
41d498be3fc7e9d78db83ceb1b4715d6688030f8
|
||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -296,7 +296,7 @@
|
||||
/* iDataSort to be applied (backwards compatibility), but aDataSort will take
|
||||
* priority if defined
|
||||
*/
|
||||
if ( oOptions.iDataSort !== undefined )
|
||||
if ( typeof oOptions.iDataSort === 'number' )
|
||||
{
|
||||
oCol.aDataSort = [ oOptions.iDataSort ];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user