]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog demos: safer selectors for the demo system workaround.
authorScott González <scott.gonzalez@gmail.com>
Mon, 27 Sep 2010 15:31:55 +0000 (11:31 -0400)
committerScott González <scott.gonzalez@gmail.com>
Mon, 27 Sep 2010 15:31:55 +0000 (11:31 -0400)
demos/dialog/modal-confirmation.html
demos/dialog/modal-form.html
demos/dialog/modal-message.html
demos/dialog/modal.html

index 77aa1593104ebfd05fc02f9747d9b5917415f34b..bed319a950f2750b8267b661c2f859ba28a9891a 100644 (file)
@@ -17,7 +17,7 @@
        <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $( "#dialog" ).dialog( "destroy" );
+               $( "#dialog:ui-dialog" ).dialog( "destroy" );
        
                $( "#dialog-confirm" ).dialog({
                        resizable: false,
index 291cad37b34949b56be7f58cb56b909855ec9b83..b008a8cf9e1b8487337c734306eb32f1fcaf76a8 100644 (file)
@@ -31,7 +31,7 @@
        <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $( "#dialog" ).dialog( "destroy" );
+               $( "#dialog:ui-dialog" ).dialog( "destroy" );
                
                var name = $( "#name" ),
                        email = $( "#email" ),
index 985f2aba0ddbe64046368bf11703d59e0ece38d6..18e84e87d0d2de701b61b83e7a0670598ea978cd 100644 (file)
@@ -18,7 +18,7 @@
        <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $( "#dialog" ).dialog( "destroy" );
+               $( "#dialog:ui-dialog" ).dialog( "destroy" );
        
                $( "#dialog-message" ).dialog({
                        modal: true,
index 832d66f6a2ae24d34714a4bf50a056260b9a722a..1664bd1a673412b76115eae86db1028b45172236 100644 (file)
@@ -17,7 +17,7 @@
        <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $( "#dialog" ).dialog( "destroy" );
+               $( "#dialog:ui-dialog" ).dialog( "destroy" );
        
                $( "#dialog-modal" ).dialog({
                        height: 140,