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

callback problem #108

Open
phachon opened this issue Apr 20, 2017 · 1 comment
Open

callback problem #108

phachon opened this issue Apr 20, 2017 · 1 comment

Comments

@phachon
Copy link

phachon commented Apr 20, 2017

I want to execute the callback function after the ntify execution is complete:

<script> testSubmit(element, callback) { //submit success $('button[name="submit"]').notify('submit success', {position: "right", className: 'error'}) callback(); } </script>

callback() execute before the notify,this is exactly the opposite of what I expected

I looked at the document, notify does not seem to support callback

Is there any way to solve my problem?

Thanks..

@dleger
Copy link

dleger commented Aug 7, 2017

I agree, this would be very good to have callback support on this good library. At the moment, the only way is to use a timeout function which I find redundant and not very nice.

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