Current page lost on init when a language file loaded
Current page lost on init when a language file loaded
Cymo
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
- Without any language attribute on init (works) : http://jsfiddle.net/Cymo_/j7h7c5cg/23/
- With a language file loaded (does not load the correct page on refresh) : http://jsfiddle.net/Cymo_/j7h7c5cg/24/
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
Hi Tim,
It would appear that this is in fact being caused by the YADCF plug-in. If I add a
returnstatement immediately before the initialisation of YADCF it works as expected.If you initialise YADCF in
initCompletethen it all operates as expected.Allan
Awesome (and quick) reply,
Thanks a lot allan, works like a charm!