Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createProgress function is not available immediately in onLoad callback param obj #193

Open
ashraful19 opened this issue Jul 16, 2019 · 1 comment

Comments

@ashraful19
Copy link

Hi, First thank you for this awesome plugin.
after using it for years, i found a small issue today.
in onLoad callback, we have the obj param which should be used to createProgress with 3 params. but problem is this createProgress function is not available in obj param immediately after onLoad is called. it becomes available after a moment. so i had to do it inside a setInterval of 500 ms.

in the example you have done it with an ajax call, thats why you didnt find it out i think.

hope you will solve it.

Thanks

@PavelMove
Copy link

Looks like you don't need 500ms delay. Just one tick would be enough.
It heppens when ajaxForm plugin already loaded at first call of checkAjaxFormLoaded, so createProgress isn't setup properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants