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

doing operations on modal close #238

Open
mustafabereket opened this issue Apr 13, 2018 · 1 comment
Open

doing operations on modal close #238

mustafabereket opened this issue Apr 13, 2018 · 1 comment

Comments

@mustafabereket
Copy link

Hey guys,

I want to be able to call some functions and do some calculations when modal is closing, but I couldnt find anything like "onClose".
The existing modal.close.then(function(result) {}) thing doesnt even get fired when I close my modal.
Not sure if "modal.close.then" is something that I am looking for. But all I want to simply do is, when the user clicks on "Save" button on my modal, I want to make an $http call and refresh the table on the previous view before modal.

Anyone can help me with this?

@decherneyge
Copy link
Contributor

modal.close.then(function(result){}) should provide you with a hook to do things after the modal is closed. If you want to post some more context I'd be happy to take a look and see why its not working for you.

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