title: trigger jQuery function after location.reload() completes
body: <p>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().</p>
  
  <p>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?</p>
  
  <p>Right now the dialog is loading up before location.reload() is done.  This is causing the dialog to disappear.</p>