]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Use new demos infrastructure
authorAlexander Schmitz <arschmitz@gmail.com>
Thu, 14 May 2015 13:51:52 +0000 (09:51 -0400)
committerAlexander Schmitz <arschmitz@gmail.com>
Tue, 21 Jul 2015 15:00:40 +0000 (11:00 -0400)
Ref #10119

18 files changed:
demos/datepicker/alt-field.html
demos/datepicker/animation.html
demos/datepicker/buttonbar.html
demos/datepicker/date-formats.html
demos/datepicker/date-range.html
demos/datepicker/datepicker-ar.js
demos/datepicker/datepicker-fr.js
demos/datepicker/datepicker-he.js
demos/datepicker/datepicker-zh-TW.js
demos/datepicker/default.html
demos/datepicker/dropdown-month-year.html
demos/datepicker/icon-trigger.html
demos/datepicker/inline.html
demos/datepicker/localization.html
demos/datepicker/min-max.html
demos/datepicker/multiple-calendars.html
demos/datepicker/other-months.html
demos/datepicker/show-week.html

index 7e3b50a6de9c887e3b3e13c1326cc6e84549d52e..7a9f4997f80d57eedded033984ed1207671ae3ac 100644 (file)
@@ -4,18 +4,13 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Populate alternate field</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({
                        altField: "#alternate",
                        altFormat: "DD, d MM, yy"
                });
-       });
        </script>
 </head>
 <body>
index 36860cb421aa1ca5644bb494cf66dcdb122ded0d..0c43b7011ba24f1fa8cafc8d568a43b63375ff50 100644 (file)
@@ -4,25 +4,13 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Animations</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/effect.js"></script>
-       <script src="../../ui/effect-blind.js"></script>
-       <script src="../../ui/effect-bounce.js"></script>
-       <script src="../../ui/effect-clip.js"></script>
-       <script src="../../ui/effect-drop.js"></script>
-       <script src="../../ui/effect-fold.js"></script>
-       <script src="../../ui/effect-slide.js"></script>
-       <script src="../../ui/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js" data-modules="effect effect-bounce effect-blind effect-bounce effect-clip effect-drop effect-fold effect-slide">
                $( "#datepicker" ).datepicker();
                $( "#anim" ).on( "change", function() {
                        $( "#datepicker" ).datepicker( "option", "showAnim", $( this ).val() );
                });
-       });
        </script>
 </head>
 <body>
index 040ec1112ecdd458f55d1c82c24be3e941606302..965a1860a0127b140bac61b6623bee9888bf025a 100644 (file)
@@ -4,17 +4,12 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display button bar</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({
                        showButtonPanel: true
                });
-       });
        </script>
 </head>
 <body>
index 5664beb5b6fdc38b5c62e058aa121aad3dead8b7..a07d7e336fed3e0f91efc94c2b738bcf64797e6b 100644 (file)
@@ -4,18 +4,13 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Format date</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker();
                $( "#format" ).on( "change", function() {
                        $( "#datepicker" ).datepicker( "option", "dateFormat", $( this ).val() );
                });
-       });
        </script>
 </head>
 <body>
index 8d606969cca82bc8fc4c09d0d3337d6b2464daba..b7bc82053b10b49584ef36d419009f5d167b09e5 100644 (file)
@@ -4,13 +4,9 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Select a Date Range</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                var dateFormat = "mm/dd/yy",
                        from = $( "#from" )
                                .datepicker({
@@ -40,7 +36,6 @@
 
                        return date;
                }
-       });
        </script>
 </head>
 <body>
index fc6d2a883c0d43e55505f05cba1fff1fb2ed888b..5973f327e5f0dfb9c24e64a8c25688c6ec6045a6 100644 (file)
@@ -5,7 +5,7 @@
        if ( typeof define === "function" && define.amd ) {
 
                // AMD. Register as an anonymous module.
-               define([ "../jquery.ui.datepicker" ], factory );
+               define([ "datepicker" ], factory );
        } else {
 
                // Browser globals
index 33fa80d48f360899301b78e2de6d03868acc9c10..f03229b6818a12c564c46d802aaa9bb594934da2 100644 (file)
@@ -6,7 +6,7 @@
        if ( typeof define === "function" && define.amd ) {
 
                // AMD. Register as an anonymous module.
-               define([ "../jquery.ui.datepicker" ], factory );
+               define([ "datepicker" ], factory );
        } else {
 
                // Browser globals
index bf58038f58604468368173ca2927a969b9593e4d..32bcdebb01803cccb2a71c73cf0043253b495d54 100644 (file)
@@ -4,7 +4,7 @@
        if ( typeof define === "function" && define.amd ) {
 
                // AMD. Register as an anonymous module.
-               define([ "../jquery.ui.datepicker" ], factory );
+               define([ "datepicker" ], factory );
        } else {
 
                // Browser globals
index ebfd73ac5ab2bc75c2c381c7e2832fcc8d2f3b4d..178409e19012ab3a025cbda0673d1ac8ce76ef12 100644 (file)
@@ -4,7 +4,7 @@
        if ( typeof define === "function" && define.amd ) {
 
                // AMD. Register as an anonymous module.
-               define([ "../jquery.ui.datepicker" ], factory );
+               define([ "datepicker" ], factory );
        } else {
 
                // Browser globals
index a11d5def7a9c3d364dbeea69cb525e082a6af211..a0c1e7521225a3ab5c5ee9e6c6b764697b61f2c7 100644 (file)
@@ -4,15 +4,10 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - 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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker();
-       });
        </script>
 </head>
 <body>
index 8668018d96e96cd3db3365a213572ff63aa1f2a4..287018866c2d8dda3bf215e01413868921c5a01b 100644 (file)
@@ -4,18 +4,13 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display month &amp; year menus</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({
                        changeMonth: true,
                        changeYear: true
                });
-       });
        </script>
 </head>
 <body>
index 8268f947b3ce691c190b5c1c69ae274be5656abc..3ea699409c948a0ff44a636b27089e823188d7e2 100644 (file)
@@ -4,20 +4,15 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Icon trigger</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({
                        showOn: "button",
                        buttonImage: "images/calendar.gif",
                        buttonImageOnly: true,
                        buttonText: "Select date"
                });
-       });
        </script>
 </head>
 <body>
index 5d120457b7740b56883aaf57f7fc785447f8b0e3..10ad156060fcc5a25ec65c54317ebaf71cfba19c 100644 (file)
@@ -4,15 +4,10 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display inline</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker();
-       });
        </script>
 </head>
 <body>
index 72933f011149282213aa971c915b3d63a23d2ae1..b3d6ccf6f339e3705d3ce57982d48ed105f23780 100644 (file)
@@ -4,23 +4,14 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Localize calendar</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/datepicker.js"></script>
-       <script src="datepicker-ar.js"></script>
-       <script src="datepicker-fr.js"></script>
-       <script src="datepicker-he.js"></script>
-       <script src="datepicker-zh-TW.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js" data-modules="datepicker-ar.js datepicker-fr.js datepicker-he.js datepicker-zh-TW.js">
                $( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] );
                $( "#locale" ).on( "change", function() {
                        $( "#datepicker" ).datepicker( "option",
                                $.datepicker.regional[ $( this ).val() ] );
                });
-       });
        </script>
 </head>
 <body>
index 4052c17852b0316d45041a779c376ba289e0f6a1..e28758a3f2d2ad34cc85078201ef3293c6c44d01 100644 (file)
@@ -4,15 +4,10 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Restrict date range</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" });
-       });
        </script>
 </head>
 <body>
index 716b6c68ef6ebf359f4a95a944116bc5fe66793a..fa7078e165863a3f1d08fff191c7528f2e4011a9 100644 (file)
@@ -4,18 +4,13 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Display multiple months</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({
                        numberOfMonths: 3,
                        showButtonPanel: true
                });
-       });
        </script>
 </head>
 <body>
index 71a06c5d2b9b29c8566e9ed075d31727df88812e..ecde4edebc7db0b28eccd37ea7d736303c5cb3a4 100644 (file)
@@ -4,18 +4,13 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Dates in other months</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({
                        showOtherMonths: true,
                        selectOtherMonths: true
                });
-       });
        </script>
 </head>
 <body>
index 362645a7ede502d298e55e27ec92e1f0a77c2de6..c5a306f7062868d8b31f8f2617fef6bd6e09a281 100644 (file)
@@ -4,18 +4,13 @@
        <meta charset="utf-8">
        <title>jQuery UI Datepicker - Show week of the year</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/datepicker.js"></script>
        <link rel="stylesheet" href="../demos.css">
-       <script>
-       $(function() {
+       <script src="../../external/requirejs/require.js"></script>
+       <script src="../bootstrap.js">
                $( "#datepicker" ).datepicker({
                        showWeek: true,
                        firstDay: 1
                });
-       });
        </script>
 </head>
 <body>