Current page lost on init when a language file loaded

Current page lost on init when a language file loaded

CymoCymo Posts: 6Questions: 1Answers: 0

Hi,

I have discovered a bug :
When I load a language file in the options :
"language": { "url": "/json/dataTables.i18n.french.json"

Then the current pagination is lost when refreshing the page, it does not occur with the default language.

Of course it happens when "stateSave": true

It seems like the _fnInitialise function that is called in the ajax callback (line 6346) does not have the right value for iInitDisplayStart. Indeed, it does not take the one that is in the localStorage but 0 instead.

I am using the version 1.10.7

Thanks for your work Allan, such a great plugin !
Tim

Replies

  • allanallan Posts: 63,683Questions: 1Answers: 10,498 Site admin

    Hi Tim,

    It would appear that this is in fact being caused by the YADCF plug-in. If I add a return statement immediately before the initialisation of YADCF it works as expected.

    If you initialise YADCF in initComplete then it all operates as expected.

    Allan

  • CymoCymo Posts: 6Questions: 1Answers: 0
    edited June 2015

    Awesome (and quick) reply,

    Thanks a lot allan, works like a charm!

This discussion has been closed.