]> source.dussan.org Git - jquery-ui.git/commitdiff
Progressbar: Update demos to use AMD
authorAlexander Schmitz <arschmitz@gmail.com>
Wed, 1 Jul 2015 02:11:05 +0000 (22:11 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Tue, 21 Jul 2015 15:00:41 +0000 (11:00 -0400)
Ref #10119

demos/progressbar/default.html
demos/progressbar/download.html
demos/progressbar/indeterminate.html
demos/progressbar/label.html

index 197a976c5f7b1c80eadc83006a3994fdc90105df..b1ada1a0a82997e586eb510d6d2553a26aab54f1 100644 (file)
@@ -4,17 +4,12 @@
        <meta charset="utf-8">
        <title>jQuery UI Progressbar - Default functionality</title>
        <link rel="stylesheet" href="../../themes/base/all.css">
-       <script src="../../external/jquery/jquery.js"></script>
-       <script src="../../ui/core.js"></script>
-       <script src="../../ui/widget.js"></script>
-       <script src="../../ui/progressbar.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#progressbar" ).progressbar({
                        value: 37
                });
-       });
        </script>
 </head>
 <body>
index 1253176a41600fe7f89e03137bfedfcf76e4f751..a7731b387ccedd396eec202495e48c275d175198 100644 (file)
@@ -4,18 +4,9 @@
        <meta charset="utf-8">
        <title>jQuery UI Progressbar - Download Dialog</title>
        <link rel="stylesheet" href="../../themes/base/all.css">
-       <script src="../../external/jquery/jquery.js"></script>
-       <script src="../../ui/core.js"></script>
-       <script src="../../ui/widget.js"></script>
-       <script src="../../ui/progressbar.js"></script>
-       <script src="../../ui/mouse.js"></script>
-       <script src="../../ui/draggable.js"></script>
-       <script src="../../ui/button.js"></script>
-       <script src="../../ui/position.js"></script>
-       <script src="../../ui/dialog.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js" data-modules="dialog">
                var progressTimer,
                        progressbar = $( "#progressbar" ),
                        progressLabel = $( ".progress-label" ),
@@ -83,7 +74,6 @@
                                .text( "Starting download..." );
                        downloadButton.trigger( "focus" );
                }
-       });
        </script>
        <style>
        #progressbar {
index ef5f446f20b7f0e205682f25fcaeebe9c6a2c168..d349a74365e5ea0559f258da88728ed0cd8bb416 100644 (file)
@@ -4,13 +4,9 @@
        <meta charset="utf-8">
        <title>jQuery UI Progressbar - Indeterminate Value</title>
        <link rel="stylesheet" href="../../themes/base/all.css">
-       <script src="../../external/jquery/jquery.js"></script>
-       <script src="../../ui/core.js"></script>
-       <script src="../../ui/widget.js"></script>
-       <script src="../../ui/progressbar.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#progressbar" ).progressbar({
                        value: false
                });
@@ -31,7 +27,6 @@
                                progressbar.progressbar( "option", "value", false );
                        }
                });
-       });
        </script>
        <style>
        #progressbar .ui-progressbar-value {
index f4c493707254a8ccd068abc4e87d9855f59c833b..ea4c4ecdb95b88661fd26322aae34141b65dbe17 100644 (file)
@@ -4,10 +4,6 @@
        <meta charset="utf-8">
        <title>jQuery UI Progressbar - Custom Label</title>
        <link rel="stylesheet" href="../../themes/base/all.css">
-       <script src="../../external/jquery/jquery.js"></script>
-       <script src="../../ui/core.js"></script>
-       <script src="../../ui/widget.js"></script>
-       <script src="../../ui/progressbar.js"></script>
        <link rel="stylesheet" href="../demos.css">
        <style>
        .ui-progressbar {
@@ -21,8 +17,8 @@
                text-shadow: 1px 1px 0 #fff;
        }
        </style>
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                var progressbar = $( "#progressbar" ),
                        progressLabel = $( ".progress-label" );
 
@@ -47,7 +43,6 @@
                }
 
                setTimeout( progress, 2000 );
-       });
        </script>
 </head>
 <body>