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

IFrame modalDialog onclose event redirection #111

Open
mainedufresne opened this issue Feb 23, 2017 · 0 comments
Open

IFrame modalDialog onclose event redirection #111

mainedufresne opened this issue Feb 23, 2017 · 0 comments

Comments

@mainedufresne
Copy link

One is unable to issue a redirect upon closing the dialog box using the onclose event.

$.modalDialog.create({ url: '/some/url', onclose: function(e) { document.location.href ='http://www.google.com'; console.log(document.location); } }).open();

The dialog box will close but the redirect will not happen.

Workaround is to add a timeout to the redirect such as:
$.modalDialog.create({ url: '/some/url', onclose: function(e) { window.setTimeout(function() { document.location.href ='http://www.google.com'; console.log(document.location); }, 1) } }).open();

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