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

How to reload window after Messenger().run() message closes? #121

Open
larikitty opened this issue Jan 9, 2017 · 0 comments
Open

How to reload window after Messenger().run() message closes? #121

larikitty opened this issue Jan 9, 2017 · 0 comments

Comments

@larikitty
Copy link

larikitty commented Jan 9, 2017

I'm writing an MVC app and I really need a reload window after message (both error and success) closes.
How can I achieve this?

Actually, I'm trying this code on my button click, but no luck:

        Messenger().run({
            successMessage: 'Record Removed!',
            errorMessage: 'Error',
            progressMessage: 'Removing record...',
            events: {
                "click": function () {
                    window.location.reload();
                }
            }
        }, {
            method: 'DELETE',
            url: $(this).data('url'),
            error: function (jqXHR, textStatus, errorThrown) {
                return errorThrown;
            }
        });

bitmoji

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

1 participant