Skip to content

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

@larikitty

Description

@larikitty

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions