diff options
author | Richard Worth <rdworth@gmail.com> | 2008-12-22 17:12:26 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-12-22 17:12:26 +0000 |
commit | 594ae9261b0cef4520a934838b3af477da7bde0a (patch) | |
tree | 9a8e4d6d57c11ace3b0eb783d1cfd0a1897c8514 /tests/visual/dialog.html | |
parent | 3522a23b507f049a8917401bd6acaa928ae37ed8 (diff) | |
download | jquery-ui-594ae9261b0cef4520a934838b3af477da7bde0a.tar.gz jquery-ui-594ae9261b0cef4520a934838b3af477da7bde0a.zip |
tests/visual: adjusted the formatting a bit. Separated dialog tests into simple dialog and dialog with buttons
Diffstat (limited to 'tests/visual/dialog.html')
-rw-r--r-- | tests/visual/dialog.html | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/tests/visual/dialog.html b/tests/visual/dialog.html index 60c74171c..cf8498ee1 100644 --- a/tests/visual/dialog.html +++ b/tests/visual/dialog.html @@ -1,7 +1,7 @@ <!doctype html> <html lang="en"> <head> - <title>Simple Dialog</title> + <title>Dialog Visual Tests Page</title> <link rel="stylesheet" href="all.css" type="text/css"> <link rel="stylesheet" href="../../themes/base/ui.all.css" type="text/css"> <script type="text/javascript" src="../../jquery-1.2.6.js"></script> @@ -11,7 +11,13 @@ <script type="text/javascript" src="../../ui/ui.resizable.js"></script> <script type="text/javascript"> $(function() { - var dlg = $("#dlg").dialog({ + // Simple Dialog + $("#dialog button").click(function() { + $("#dlg").clone().dialog(); + }); + + // Dialog with Buttons + var dlgbuttons = $("#dlgbuttons").dialog({ autoOpen: false, width: 600, buttons: { @@ -19,9 +25,10 @@ Cancel: function() {} } }); - $("#dialog").click(function() { - dlg.dialog('open'); + $("#dialogbuttons").click(function() { + dlgbuttons.dialog('open'); }); + }); </script> </head> @@ -37,6 +44,15 @@ </div> </div> </li> +<li class="plugin"> + Dialog with buttons + <div id="dialogbuttons"> + <button>Open</button> + <div id="dlgbuttons" title="Dialog Title"> + <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> + </div> + </div> +</li> </ul> </body> |