Skip to content

Commit 2dd676e

Browse files
committed
Dialog demos: safer selectors for the demo system workaround.
1 parent 9d88b56 commit 2dd676e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

demos/dialog/modal-confirmation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<script>
1818
$(function() {
1919
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
20-
$( "#dialog" ).dialog( "destroy" );
20+
$( "#dialog:ui-dialog" ).dialog( "destroy" );
2121

2222
$( "#dialog-confirm" ).dialog({
2323
resizable: false,

demos/dialog/modal-form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
$(function() {
3333
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
34-
$( "#dialog" ).dialog( "destroy" );
34+
$( "#dialog:ui-dialog" ).dialog( "destroy" );
3535

3636
var name = $( "#name" ),
3737
email = $( "#email" ),

demos/dialog/modal-message.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<script>
1919
$(function() {
2020
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
21-
$( "#dialog" ).dialog( "destroy" );
21+
$( "#dialog:ui-dialog" ).dialog( "destroy" );
2222

2323
$( "#dialog-message" ).dialog({
2424
modal: true,

demos/dialog/modal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<script>
1818
$(function() {
1919
// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
20-
$( "#dialog" ).dialog( "destroy" );
20+
$( "#dialog:ui-dialog" ).dialog( "destroy" );
2121

2222
$( "#dialog-modal" ).dialog({
2323
height: 140,

0 commit comments

Comments
 (0)