fnFilterOnReturn plug-in doesn't work when oLanguage is set

fnFilterOnReturn plug-in doesn't work when oLanguage is set

ivanovtivanovt Posts: 5Questions: 0Answers: 0
edited April 2013 in General
Hi Allan,

I use DataTables 1.9.4 and the fnFilterOnReturn plug-in has always worked fine for me.
But now I have to change the language, so I created a text file based on the translataion I found here on the DataTables website. I use it as follows: oLanguage : {"sUrl": "language/datatables_lang_HU.txt"}
Everything is fine with it, texts are translated, but the fnFilterOnReturn plug-in doesn't work any more.
Could you please help me what could I do with it?

Timea

Replies

  • allanallan Posts: 64,774Questions: 1Answers: 10,724 Site admin
    Try calling the plug-in in fnInitComplete rather than just after the initialisation. Ajax loading is async remember, so the function will return before the table is fully initialised.

    Allan
This discussion has been closed.