Skip to content
Permalink
Browse files

dialog: added a visual test page for the buttons option

  • Loading branch information
rdworth committed Sep 25, 2009
1 parent 217266f commit 0cbda3aaf17291d4457a6a3d5c3628227a5470fa
Showing with 34 additions and 0 deletions.
  1. +34 −0 tests/visual/dialog/dialog_option_buttons_OK_Cancel.html
@@ -0,0 +1,34 @@
<!doctype html>
<html lang="en">
<head>
<title>Dialog Visual Test : Dialog option buttons OK Cancel</title>
<link rel="stylesheet" href="../visual.css" type="text/css" />
<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css">
<script type="text/javascript" src="../../../jquery-1.3.2.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.stackfix.js"></script>
<script type="text/javascript" src="../../../ui/jquery.ui.dialog.js"></script>
<script type="text/javascript">
$(function() {
$("#dialog").dialog({
buttons: {
"OK": function() { $(this).dialog('close'); },
"Cancel": function() { $(this).dialog('close'); }
}
});
});
</script>
</head>
<body>

<div id="dialog" title="Dialog Title">
<p>
Dialog Content
</p>
</div>

</body>
</html>

0 comments on commit 0cbda3a

Please sign in to comment.
You can’t perform that action at this time.