You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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();
The text was updated successfully, but these errors were encountered:
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();
The text was updated successfully, but these errors were encountered: