a little suggestion for uk_date sorting plug-in

a little suggestion for uk_date sorting plug-in

max4evermax4ever Posts: 45Questions: 0Answers: 0
edited September 2011 in General
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

Replies

  • allanallan Posts: 63,531Questions: 1Answers: 10,475 Site admin
    Good plan - thanks for the suggestion! I've just added that in.

    Regards,
    Allan
This discussion has been closed.