Hello,
I'm using $.blockUI plugin when clicking on links to change pages in my app (some pages take a couple of seconds more to load and a visual feedback is fine)
When I change field content and then click any link, DirtyForms is triggered: but when I cancel the process to stay on the page, $.blockUI starts its game, resulting in a stuck page
Here is a jsFiddle.
I also tried to leverage stay.dirtyforms and afterstay.dirtyforms events to unblock UI, but with no luck (example here). defer.dirtyforms seems to work but the event is triggered twice (I put a console.log() to check) and I am not sure this is the way to go...
Please, any solution?
Thanks :-)
Hello,
I'm using $.blockUI plugin when clicking on links to change pages in my app (some pages take a couple of seconds more to load and a visual feedback is fine)
When I change field content and then click any link, DirtyForms is triggered: but when I cancel the process to stay on the page,
$.blockUIstarts its game, resulting in a stuck pageHere is a jsFiddle.
I also tried to leverage
stay.dirtyformsandafterstay.dirtyformsevents to unblock UI, but with no luck (example here).defer.dirtyformsseems to work but the event is triggered twice (I put aconsole.log()to check) and I am not sure this is the way to go...Please, any solution?
Thanks :-)