StateRestore: ajax function is ignored when alternative UI is set
StateRestore: ajax function is ignored when alternative UI is set
bagelsesame
Posts: 5Questions: 0Answers: 0
Hi,
I noticed that StateRestore ignores the ajax function when initializing with an alternative UI ('all-in-one' drop-down menu) as described on this example page: https://datatables.net/extensions/staterestore/examples/initialisation/alternative.html
Link to test case: https://jsfiddle.net/bagelsesame/5ont1xad/4/
The ajax function is ignored unless the following lines are removed:
buttons: [
'createState',
'removeAllStates'
],
Best regards
Replies
Hi,
Thanks for letting me know about this. I've added a fix for this and it will be in the nightly build in the next 10 minutes.
There is still a little bit of disconnect in the code that I'm not happy with - overlapping localStorage when using that alert, but I'll come back to look at that. Hopefully this still get you going.
Allan
Thank you for your answer and for your awesome product