title: How to detect that JQuery-Mobile dialog was closed
body: <p>I have a jQuery-Mobile <a href="http://api.jquerymobile.com/dialog" rel="nofollow">dialog</a> which I open from my page <code>main.html</code> like so:</p>
  
  <pre><code>$.mobile.changePage("settings.html", {
      role: "dialog",
      transiation: "pop",
      changeHash: true
  });
  </code></pre>
  
  <p>Now I would like to get a callback on my site <code>main.html</code>, when the dialog is closed so that I can proceed with the information entered in the dialog.</p>
  
  <p><strong>Update:</strong> Mentioned that I should receive the callback on my initial location <code>main.html</code></p>