aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>