a little suggestion for uk_date sorting plug-in
a little suggestion for uk_date sorting plug-in
I am using the type detection plugin for uk dates http://datatables.net/plug-ins/type-detection#uk_date .
For some reason on a page i was getting sData is null error which stopped all my dataTables
so i had to change
[code]if (sData.match(/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/(19|20|21)\d\d$/))[/code]
with
[code]if (sData != null && sData.match(/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/(19|20|21)\d\d$/))[/code]
thought maybe it could help someone or it could update the official example
For some reason on a page i was getting sData is null error which stopped all my dataTables
so i had to change
[code]if (sData.match(/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/(19|20|21)\d\d$/))[/code]
with
[code]if (sData != null && sData.match(/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[012])\/(19|20|21)\d\d$/))[/code]
thought maybe it could help someone or it could update the official example
This discussion has been closed.
Replies
Regards,
Allan