r2916 - workaround for #4375
Author: joern.zaefferer
Date: Sat Jul 11 07:00:08 2009
New Revision: 2916
Modified:
trunk/demos/dialog/modal-confirmation.html
trunk/demos/dialog/modal-form.html
trunk/demos/dialog/modal-message.html
trunk/demos/dialog/modal.html
Log:
workaround for #4375
Modified: trunk/demos/dialog/modal-confirmation.html
==============================================================================
--- trunk/demos/dialog/modal-confirmation.html (original)
+++ trunk/demos/dialog/modal-confirmation.html Sat Jul 11 07:00:08 2009
@@ -12,7 +12,10 @@
<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,
@@ -37,7 +40,7 @@
<div class="demo">
-<div id="dialog" title="Empty the recycle bin?">
+<div id="dialog-confirm" title="Empty the recycle bin?">
<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?
</div>
Modified: trunk/demos/dialog/modal-form.html
==============================================================================
--- trunk/demos/dialog/modal-form.html (original)
+++ trunk/demos/dialog/modal-form.html Sat Jul 11 07:00:08 2009
@@ -28,6 +28,8 @@
</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"),
@@ -63,7 +65,7 @@
}
- $("#dialog").dialog({
+ $("#dialog-form").dialog({
stackfix: true,
autoOpen: false,
height: 300,
@@ -103,7 +105,7 @@
$('#create-user').click(function() {
- $('#dialog').dialog('open');
+ $('#dialog-form').dialog('open');
})
.hover(
function() {
@@ -133,7 +135,7 @@
<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.
<form>
Modified: trunk/demos/dialog/modal-message.html
==============================================================================
--- trunk/demos/dialog/modal-message.html (original)
+++ trunk/demos/dialog/modal-message.html Sat Jul 11 07:00:08 2009
@@ -12,7 +12,10 @@
<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: {
@@ -28,7 +31,7 @@
<div class="demo">
-<div id="dialog" title="Download complete">
+<div id="dialog-message" title="Download complete">
<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.
Modified: trunk/demos/dialog/modal.html
==============================================================================
--- trunk/demos/dialog/modal.html (original)
+++ trunk/demos/dialog/modal.html Sat Jul 11 07:00:08 2009
@@ -12,7 +12,10 @@
<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
@@ -25,7 +28,7 @@
<div class="demo">
-<div id="dialog" title="Basic modal dialog">
+<div id="dialog-modal" title="Basic modal dialog">
Adding the modal overlay screen makes the dialog look more prominent
because it dims out the page content.
</div>