Permalink
Browse files

[dialog docs] Mention chaining as an exception to our claim that clic…

…king any link inside the dialog will close the dialog -- Fixes #5003
  • Loading branch information...
1 parent 59be4b9 commit e017ec7acdefccb0c2f175555d8d6ee7314bd61c @gabrielschulhof gabrielschulhof committed Sep 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/pages/dialog/index.html
@@ -62,7 +62,7 @@
<h2>Closing dialogs</h2>
- <p>When any link is clicked within a dialog, the framework will automatically close the dialog and transition to the requested page, just as if the dialog were a normal page. To create a "cancel" button in a dialog, just link to the page that triggered the dialog to open and add the <code>data-rel="back"</code> attribute to your link. This pattern of linking to the previous page is also usable in non-JS devices as well.</p>
+ <p>When any link is clicked within a dialog, the framework will automatically close the dialog and transition to the requested page, just as if the dialog were a normal page. Nevertheless, dialogs can also be chained, as explained below under <strong>"Chaining Dialogs"</strong>. To create a "cancel" button in a dialog, just link to the page that triggered the dialog to open and add the <code>data-rel="back"</code> attribute to your link. This pattern of linking to the previous page is also usable in non-JS devices as well.</p>
<p>For JavaScript-generated links, you can simply set the href attribute to "#" and use the <code>data-rel="back"</code> attribute. You can also call the dialog's <code>close()</code> method to programmatically close dialogs, for example: <code>$('.ui-dialog').dialog('close')</code>. </p>
<h3>Setting the close button text</h3>

0 comments on commit e017ec7

Please sign in to comment.