title: Why is jQueryMobile reloading the page on dialog close?
body: <p>I load a jQueryMobile dialog using this code:</p>
  
  <pre><code>&lt;a data-rel="dialog" href="/path/to/dialog?arg1=val1" data-theme="b" id="deleteButton" class="ui-btn-right home" data-direction="reverse" data-transition="slidedown"&gt;Delete&lt;/a&gt;
  </code></pre>
  
  <p>My dialog has two buttons:</p>
  
  <pre><code>&lt;a data-role="button" href="/path/to/page/that/showed/dialog" id="deleteAddressButton" data-rel="back"&gt;Delete&lt;/a&gt;
  &lt;a data-role="button" data-theme="a" href="/path/to/page/that/showed/dialog" data-rel="back"&gt;Cancel&lt;/a&gt;
  </code></pre>
  
  <p>When I click the buttons the dialog closes and returns to the page that opened the dialog. However, the page that opened the dialogs is being reloaded via ajax, which seems unnecessary and is breaking things.  Does anyone have any idea why this happening? Shouldn't the dialog just be able to close without reloading the calling page?</p>
  
  <p>Note: The calling page is only reloaded if I originally go to a different page, for example:</p>
  
  <p>Home page -> Page that calls dialog -> Dialog</p>
  
  <p>The problem happens when I go to home page first, then page that calls dialog. If I do a full page reload on Page that calls dialog and then open and close the dialog, the page that calls dialog is not reloaded via ajax.</p>
  
  <p>Edit: This is happening on jQuery Mobile's documentation site also.  To see this:</p>
  
  <ol>
  <li>Go to <a href="http://jquerymobile.com/demos/1.0.1/" rel="nofollow">http://jquerymobile.com/demos/1.0.1/</a></li>
  <li>Navigate to "Pages &amp; Dialogs"</li>
  <li>Navigate to "Dialogs"</li>
  <li>Click on the first "Open Dialog" button.</li>
  <li>Use Firebug or something similar to watch the Ajax calls.</li>
  <li>Close the dialog using either button.</li>
  <li>Notice that Ajax calls are fired to reload the calling page.</li>
  </ol>