<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
- $("#dialog").dialog({
+ // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
+ $("#dialog").dialog("destroy");
+
+ $("#dialog-confirm").dialog({
stackfix: true,
resizable: false,
height:140,
<div class="demo">
-<div id="dialog" title="Empty the recycle bin?">
+<div id="dialog-confirm" title="Empty the recycle bin?">
<p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p>
</div>
</style>
<script type="text/javascript">
$(function() {
+ // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
+ $("#dialog").dialog("destroy");
var name = $("#name"),
email = $("#email"),
}
- $("#dialog").dialog({
+ $("#dialog-form").dialog({
stackfix: true,
autoOpen: false,
height: 300,
$('#create-user').click(function() {
- $('#dialog').dialog('open');
+ $('#dialog-form').dialog('open');
})
.hover(
function() {
<div class="demo">
-<div id="dialog" title="Create new user">
+<div id="dialog-form" title="Create new user">
<p id="validateTips">All form fields are required.</p>
<form>
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
- $("#dialog").dialog({
+ // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
+ $("#dialog").dialog("destroy");
+
+ $("#dialog-message").dialog({
stackfix: true,
modal: true,
buttons: {
<div class="demo">
-<div id="dialog" title="Download complete">
+<div id="dialog-message" title="Download complete">
<p>
<span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
Your files have downloaded successfully into the My Downloads folder.
<link type="text/css" href="../demos.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
- $("#dialog").dialog({
+ // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
+ $("#dialog").dialog("destroy");
+
+ $("#dialog-modal").dialog({
stackfix: true,
height: 140,
modal: true
<div class="demo">
-<div id="dialog" title="Basic modal dialog">
+<div id="dialog-modal" title="Basic modal dialog">
<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>