aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual/dialog.html
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2008-12-19 01:08:32 +0000
committerScott González <scott.gonzalez@gmail.com>2008-12-19 01:08:32 +0000
commitf00247f9c9d8bd9cf35d8315328726950dddff48 (patch)
tree9272335b551d825cecf03d7f27d74b821e429785 /tests/visual/dialog.html
parentcc22cc0de3a12b59bbce247e944ab5187e6b376e (diff)
downloadjquery-ui-f00247f9c9d8bd9cf35d8315328726950dddff48.tar.gz
jquery-ui-f00247f9c9d8bd9cf35d8315328726950dddff48.zip
Dialog visual test:
- Made it possible to close and re-open the dialog. - Added buttons.
Diffstat (limited to 'tests/visual/dialog.html')
-rw-r--r--tests/visual/dialog.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/visual/dialog.html b/tests/visual/dialog.html
index 7429608e9..60c74171c 100644
--- a/tests/visual/dialog.html
+++ b/tests/visual/dialog.html
@@ -11,9 +11,16 @@
<script type="text/javascript" src="../../ui/ui.resizable.js"></script>
<script type="text/javascript">
$(function() {
- var dlg = $("#dlg").remove();
+ var dlg = $("#dlg").dialog({
+ autoOpen: false,
+ width: 600,
+ buttons: {
+ Ok: function() {},
+ Cancel: function() {}
+ }
+ });
$("#dialog").click(function() {
- dlg.appendTo('body').dialog({width: 600});
+ dlg.dialog('open');
});
});
</script>