]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog demos: Coding standards.
authorScott González <scott.gonzalez@gmail.com>
Fri, 10 Sep 2010 13:01:54 +0000 (09:01 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 10 Sep 2010 13:01:54 +0000 (09:01 -0400)
demos/dialog/animated.html
demos/dialog/default.html
demos/dialog/index.html
demos/dialog/modal-confirmation.html
demos/dialog/modal-form.html
demos/dialog/modal-message.html
demos/dialog/modal.html

index 26f298acc809ca0a29f0fede8f8c7354df908c2a..0d74662eebd3f07d782b5d0e7f8d5e91e5b4e1c5 100644 (file)
@@ -1,34 +1,34 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Dialog - Animation</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../external/jquery.bgiframe-2.1.1.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.mouse.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.dialog.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.effects.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.effects.blind.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.effects.explode.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.mouse.js"></script>
+       <script src="../../ui/jquery.ui.draggable.js"></script>
+       <script src="../../ui/jquery.ui.position.js"></script>
+       <script src="../../ui/jquery.ui.resizable.js"></script>
+       <script src="../../ui/jquery.ui.dialog.js"></script>
+       <script src="../../ui/jquery.effects.core.js"></script>
+       <script src="../../ui/jquery.effects.blind.js"></script>
+       <script src="../../ui/jquery.effects.explode.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        // increase the default animation speed to exaggerate the effect
        $.fx.speeds._default = 1000;
        $(function() {
-               $('#dialog').dialog({
+               $( "#dialog" ).dialog({
                        autoOpen: false,
-                       show: 'blind',
-                       hide: 'explode'
+                       show: "blind",
+                       hide: "explode"
                });
-               
-               $('#opener').click(function() {
-                       $('#dialog').dialog('open');
+
+               $( "#opener" ).click(function() {
+                       $( "#dialog" ).dialog( "open" );
                        return false;
                });
        });
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Dialogs may be animated by specifying an effect for the show and/or hide properties.  You must include the individual effects file for any effects you would like to use.</p>
 
+<div class="demo-description">
+<p>Dialogs may be animated by specifying an effect for the show and/or hide properties.  You must include the individual effects file for any effects you would like to use.</p>
 </div><!-- End demo-description -->
 
 </body>
index 492faabaa6e29d1d373a3ef1d3c56de14fd51c82..df38c712720ef8d24be9947afc921138c4f1fc44 100644 (file)
@@ -1,22 +1,22 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Dialog - Default functionality</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../external/jquery.bgiframe-2.1.1.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.mouse.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.dialog.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.mouse.js"></script>
+       <script src="../../ui/jquery.ui.draggable.js"></script>
+       <script src="../../ui/jquery.ui.position.js"></script>
+       <script src="../../ui/jquery.ui.resizable.js"></script>
+       <script src="../../ui/jquery.ui.dialog.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
-               $("#dialog").dialog();
+               $( "#dialog" ).dialog();
        });
        </script>
 </head>
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>The basic dialog window is an overlay positioned within the viewport and is protected from page content (like select elements) shining through with an iframe.  It has a title bar and a content area, and can be moved, resized and closed with the 'x' icon by default.</p>
 
+<div class="demo-description">
+<p>The basic dialog window is an overlay positioned within the viewport and is protected from page content (like select elements) shining through with an iframe.  It has a title bar and a content area, and can be moved, resized and closed with the 'x' icon by default.</p>
 </div><!-- End demo-description -->
 
 </body>
index 45d4a9f43ec65fa9659d751ad209540702cc275a..460e4fb361c434fe8c5f44a4e0b4c843ba205563 100644 (file)
@@ -1,9 +1,9 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Dialog Demos</title>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
+       <link rel="stylesheet" href="../demos.css">
 </head>
 <body>
 
index 4affb5964e96b56da53eaef2d244a47e3857d9f1..77aa1593104ebfd05fc02f9747d9b5917415f34b 100644 (file)
@@ -1,34 +1,34 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Dialog - Modal confirmation</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../external/jquery.bgiframe-2.1.1.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.button.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.dialog.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.mouse.js"></script>
+       <script src="../../ui/jquery.ui.button.js"></script>
+       <script src="../../ui/jquery.ui.draggable.js"></script>
+       <script src="../../ui/jquery.ui.position.js"></script>
+       <script src="../../ui/jquery.ui.dialog.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $("#dialog").dialog("destroy");
+               $( "#dialog" ).dialog( "destroy" );
        
-               $("#dialog-confirm").dialog({
+               $( "#dialog-confirm" ).dialog({
                        resizable: false,
                        height:140,
                        modal: true,
                        buttons: {
-                               'Delete all items': function() {
-                                       $(this).dialog('close');
+                               "Delete all items": function() {
+                                       $( this ).dialog( "close" );
                                },
                                Cancel: function() {
-                                       $(this).dialog('close');
+                                       $( this ).dialog( "close" );
                                }
                        }
                });
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Confirm an action that may be destructive or important.  Set the <code>modal</code> option to true, and specify primary and secondary user actions with the <code>buttons</code> option.</p>
 
+<div class="demo-description">
+<p>Confirm an action that may be destructive or important.  Set the <code>modal</code> option to true, and specify primary and secondary user actions with the <code>buttons</code> option.</p>
 </div><!-- End demo-description -->
 
 </body>
index 592b4ab3cd9c6d1ffc5decf2d35d8e29343bde52..9c750be72aabba4925c79a60eedfd4f0ff6802c3 100644 (file)
@@ -1,22 +1,22 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Dialog - Modal form</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../external/jquery.bgiframe-2.1.1.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.button.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.dialog.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.effects.core.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <style type="text/css">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.mouse.js"></script>
+       <script src="../../ui/jquery.ui.button.js"></script>
+       <script src="../../ui/jquery.ui.draggable.js"></script>
+       <script src="../../ui/jquery.ui.position.js"></script>
+       <script src="../../ui/jquery.ui.resizable.js"></script>
+       <script src="../../ui/jquery.ui.dialog.js"></script>
+       <script src="../../ui/jquery.effects.core.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <style>
                body { font-size: 62.5%; }
                label, input { display:block; }
                input.text { margin-bottom:12px; width:95%; padding: .4em; }
                div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
                .ui-dialog .ui-state-error { padding: .3em; }
                .validateTips { border: 1px solid transparent; padding: 0.3em; }
-               
        </style>
-       <script type="text/javascript">
+       <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $("#dialog").dialog("destroy");
+               $( "#dialog" ).dialog( "destroy" );
                
-               var name = $("#name"),
-                       email = $("#email"),
-                       password = $("#password"),
-                       allFields = $([]).add(name).add(email).add(password),
-                       tips = $(".validateTips");
+               var name = $( "#name" ),
+                       email = $( "#email" ),
+                       password = $( "#password" ),
+                       allFields = $( [] ).add( name ).add( email ).add( password ),
+                       tips = $( ".validateTips" );
 
-               function updateTips(t) {
+               function updateTips( t ) {
                        tips
-                               .text(t)
-                               .addClass('ui-state-highlight');
+                               .text( t )
+                               .addClass( "ui-state-highlight" );
                        setTimeout(function() {
-                               tips.removeClass('ui-state-highlight', 1500);
-                       }, 500);
+                               tips.removeClass( "ui-state-highlight", 1500 );
+                       }, 500 );
                }
 
-               function checkLength(o,n,min,max) {
-
+               function checkLength( o, n, min, max ) {
                        if ( o.val().length > max || o.val().length < min ) {
-                               o.addClass('ui-state-error');
-                               updateTips("Length of " + n + " must be between "+min+" and "+max+".");
+                               o.addClass( "ui-state-error" );
+                               updateTips( "Length of " + n + " must be between " +
+                                       min + " and " + max + "." );
                                return false;
                        } else {
                                return true;
                        }
-
                }
 
-               function checkRegexp(o,regexp,n) {
-
+               function checkRegexp( o, regexp, n ) {
                        if ( !( regexp.test( o.val() ) ) ) {
-                               o.addClass('ui-state-error');
-                               updateTips(n);
+                               o.addClass( "ui-state-error" );
+                               updateTips( n );
                                return false;
                        } else {
                                return true;
                        }
-
                }
                
-               $("#dialog-form").dialog({
+               $( "#dialog-form" ).dialog({
                        autoOpen: false,
                        height: 300,
                        width: 350,
                        modal: true,
                        buttons: {
-                               'Create an account': function() {
+                               "Create an account": function() {
                                        var bValid = true;
-                                       allFields.removeClass('ui-state-error');
+                                       allFields.removeClass( "ui-state-error' );
 
-                                       bValid = bValid && checkLength(name,"username",3,16);
-                                       bValid = bValid && checkLength(email,"email",6,80);
-                                       bValid = bValid && checkLength(password,"password",5,16);
+                                       bValid = bValid && checkLength( name, "username", 3, 16 );
+                                       bValid = bValid && checkLength( email, "email", 6, 80 );
+                                       bValid = bValid && checkLength( password, "password", 5, 16 );
 
-                                       bValid = bValid && checkRegexp(name,/^[a-z]([0-9a-z_])+$/i,"Username may consist of a-z, 0-9, underscores, begin with a letter.");
+                                       bValid = bValid && checkRegexp( name, /^[a-z]([0-9a-z_])+$/i, "Username may consist of a-z, 0-9, underscores, begin with a letter." );
                                        // From jquery.validate.js (by joern), contributed by Scott Gonzalez: http://projects.scottsplayground.com/email_address_validation/
-                                       bValid = bValid && checkRegexp(email,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"eg. ui@jquery.com");
-                                       bValid = bValid && checkRegexp(password,/^([0-9a-zA-Z])+$/,"Password field only allow : a-z 0-9");
-                                       
-                                       if (bValid) {
-                                               $('#users tbody').append('<tr>' +
-                                                       '<td>' + name.val() + '</td>' + 
-                                                       '<td>' + email.val() + '</td>' + 
-                                                       '<td>' + password.val() + '</td>' +
-                                                       '</tr>'); 
-                                               $(this).dialog('close');
+                                       bValid = bValid && checkRegexp( email, /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i, "eg. ui@jquery.com" );
+                                       bValid = bValid && checkRegexp( password, /^([0-9a-zA-Z])+$/, "Password field only allow : a-z 0-9" );
+
+                                       if ( bValid ) {
+                                               $( "#users tbody" ).append( "<tr>" +
+                                                       "<td>" + name.val() + "</td>" + 
+                                                       "<td>" + email.val() + "</td>" + 
+                                                       "<td>" + password.val() + "</td>" +
+                                               "</tr>" ); 
+                                               $( this ).dialog( "close" );
                                        }
                                },
                                Cancel: function() {
-                                       $(this).dialog('close');
+                                       $( this ).dialog( "close" );
                                }
                        },
                        close: function() {
-                               allFields.val('').removeClass('ui-state-error');
+                               allFields.val( "" ).removeClass( "ui-state-error" );
                        }
                });
-               
-               
-               
-               $('#create-user')
+
+               $( "#create-user" )
                        .button()
                        .click(function() {
-                               $('#dialog-form').dialog('open');
+                               $( "#dialog-form" ).dialog( "open" );
                        });
-
        });
        </script>
 </head>
 
 
 <div id="users-contain" class="ui-widget">
-
-               <h1>Existing Users:</h1>
-
-
+       <h1>Existing Users:</h1>
        <table id="users" class="ui-widget ui-widget-content">
                <thead>
                        <tr class="ui-widget-header ">
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Use a modal dialog to require that the user enter data during a multi-step process.  Embed form markup in the content area, set the <code>modal</code> option to true, and specify primary and secondary user actions with the <code>buttons</code> option.</p>
 
+<div class="demo-description">
+<p>Use a modal dialog to require that the user enter data during a multi-step process.  Embed form markup in the content area, set the <code>modal</code> option to true, and specify primary and secondary user actions with the <code>buttons</code> option.</p>
 </div><!-- End demo-description -->
 
 </body>
index a0ab01b21acbf642232eaf97cf5f927701a50108..985f2aba0ddbe64046368bf11703d59e0ece38d6 100644 (file)
@@ -1,30 +1,30 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Dialog - Modal message</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../external/jquery.bgiframe-2.1.1.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.mouse.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.button.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.dialog.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.mouse.js"></script>
+       <script src="../../ui/jquery.ui.button.js"></script>
+       <script src="../../ui/jquery.ui.draggable.js"></script>
+       <script src="../../ui/jquery.ui.position.js"></script>
+       <script src="../../ui/jquery.ui.resizable.js"></script>
+       <script src="../../ui/jquery.ui.dialog.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $("#dialog").dialog("destroy");
+               $( "#dialog" ).dialog( "destroy" );
        
-               $("#dialog-message").dialog({
+               $( "#dialog-message" ).dialog({
                        modal: true,
                        buttons: {
                                Ok: function() {
-                                       $(this).dialog('close');
+                                       $( this ).dialog( "close" );
                                }
                        }
                });
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>Use a modal dialog to explicitly acknowledge information or an action before continuing their work.  Set the <code>modal</code> option to true, and specify a primary action (Ok) with the <code>buttons</code> option.</p>
 
+<div class="demo-description">
+<p>Use a modal dialog to explicitly acknowledge information or an action before continuing their work.  Set the <code>modal</code> option to true, and specify a primary action (Ok) with the <code>buttons</code> option.</p>
 </div><!-- End demo-description -->
 
 </body>
index 2846d57d516088bd770ec3bc12b54b6aedd8ad0d..832d66f6a2ae24d34714a4bf50a056260b9a722a 100644 (file)
@@ -1,25 +1,25 @@
 <!DOCTYPE html>
 <html lang="en">
 <head>
-       <meta charset="UTF-8" />
+       <meta charset="utf-8">
        <title>jQuery UI Dialog - Basic modal</title>
-       <link type="text/css" href="../../themes/base/jquery.ui.all.css" rel="stylesheet" />
-       <script type="text/javascript" src="../../jquery-1.4.2.js"></script>
-       <script type="text/javascript" src="../../external/jquery.bgiframe-2.1.1.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.core.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.widget.js"></script>
-       <script type="text/javascript" src="../../ui/jquery.ui.mouse.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.dialog.js"></script>
-       <link type="text/css" href="../demos.css" rel="stylesheet" />
-       <script type="text/javascript">
+       <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css">
+       <script src="../../jquery-1.4.2.js"></script>
+       <script src="../../external/jquery.bgiframe-2.1.1.js"></script>
+       <script src="../../ui/jquery.ui.core.js"></script>
+       <script src="../../ui/jquery.ui.widget.js"></script>
+       <script src="../../ui/jquery.ui.mouse.js"></script>
+       <script src="../../ui/jquery.ui.draggable.js"></script>
+       <script src="../../ui/jquery.ui.position.js"></script>
+       <script src="../../ui/jquery.ui.resizable.js"></script>
+       <script src="../../ui/jquery.ui.dialog.js"></script>
+       <link rel="stylesheet" href="../demos.css">
+       <script>
        $(function() {
                // a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
-               $("#dialog").dialog("destroy");
+               $( "#dialog" ).dialog( "destroy" );
        
-               $("#dialog-modal").dialog({
+               $( "#dialog-modal" ).dialog({
                        height: 140,
                        modal: true
                });
@@ -28,7 +28,6 @@
 </head>
 <body>
 
-
 <div class="demo">
 
 <div id="dialog-modal" title="Basic modal dialog">
 
 </div><!-- End demo -->
 
-<div class="demo-description">
 
-<p>A modal dialog prevents the user from interacting with the rest of the page until it is closed.</p>
 
+<div class="demo-description">
+<p>A modal dialog prevents the user from interacting with the rest of the page until it is closed.</p>
 </div><!-- End demo-description -->
 
 </body>