I have a Rails app that allows users to login via jQuery modal form. Once logged in, I refresh the original page using location.reload().
At this point, I'm attempting to create a new jQuery dialog. How can I open the dialog only after location.reload() has finished executing?
Right now the dialog is loading up before location.reload() is done. This is causing the dialog to disappear.