diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-14 09:51:52 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-21 11:00:40 -0400 |
commit | 4c223432816409369e364893b3e890596d639c9c (patch) | |
tree | e219355cc43e2408368b6c5ae11c4b3217f44c83 /demos | |
parent | 9ef415042598ad978414f832b7bf52f20c67cce1 (diff) | |
download | jquery-ui-4c223432816409369e364893b3e890596d639c9c.tar.gz jquery-ui-4c223432816409369e364893b3e890596d639c9c.zip |
Datepicker: Use new demos infrastructure
Ref #10119
Diffstat (limited to 'demos')
-rw-r--r-- | demos/datepicker/alt-field.html | 9 | ||||
-rw-r--r-- | demos/datepicker/animation.html | 16 | ||||
-rw-r--r-- | demos/datepicker/buttonbar.html | 9 | ||||
-rw-r--r-- | demos/datepicker/date-formats.html | 9 | ||||
-rw-r--r-- | demos/datepicker/date-range.html | 9 | ||||
-rw-r--r-- | demos/datepicker/datepicker-ar.js | 2 | ||||
-rw-r--r-- | demos/datepicker/datepicker-fr.js | 2 | ||||
-rw-r--r-- | demos/datepicker/datepicker-he.js | 2 | ||||
-rw-r--r-- | demos/datepicker/datepicker-zh-TW.js | 2 | ||||
-rw-r--r-- | demos/datepicker/default.html | 9 | ||||
-rw-r--r-- | demos/datepicker/dropdown-month-year.html | 9 | ||||
-rw-r--r-- | demos/datepicker/icon-trigger.html | 9 | ||||
-rw-r--r-- | demos/datepicker/inline.html | 9 | ||||
-rw-r--r-- | demos/datepicker/localization.html | 13 | ||||
-rw-r--r-- | demos/datepicker/min-max.html | 9 | ||||
-rw-r--r-- | demos/datepicker/multiple-calendars.html | 9 | ||||
-rw-r--r-- | demos/datepicker/other-months.html | 9 | ||||
-rw-r--r-- | demos/datepicker/show-week.html | 9 |
18 files changed, 32 insertions, 113 deletions
diff --git a/demos/datepicker/alt-field.html b/demos/datepicker/alt-field.html index 7e3b50a6d..7a9f4997f 100644 --- a/demos/datepicker/alt-field.html +++ b/demos/datepicker/alt-field.html @@ -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> diff --git a/demos/datepicker/animation.html b/demos/datepicker/animation.html index 36860cb42..0c43b7011 100644 --- a/demos/datepicker/animation.html +++ b/demos/datepicker/animation.html @@ -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> diff --git a/demos/datepicker/buttonbar.html b/demos/datepicker/buttonbar.html index 040ec1112..965a1860a 100644 --- a/demos/datepicker/buttonbar.html +++ b/demos/datepicker/buttonbar.html @@ -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> diff --git a/demos/datepicker/date-formats.html b/demos/datepicker/date-formats.html index 5664beb5b..a07d7e336 100644 --- a/demos/datepicker/date-formats.html +++ b/demos/datepicker/date-formats.html @@ -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> diff --git a/demos/datepicker/date-range.html b/demos/datepicker/date-range.html index 8d606969c..b7bc82053 100644 --- a/demos/datepicker/date-range.html +++ b/demos/datepicker/date-range.html @@ -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> diff --git a/demos/datepicker/datepicker-ar.js b/demos/datepicker/datepicker-ar.js index fc6d2a883..5973f327e 100644 --- a/demos/datepicker/datepicker-ar.js +++ b/demos/datepicker/datepicker-ar.js @@ -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 diff --git a/demos/datepicker/datepicker-fr.js b/demos/datepicker/datepicker-fr.js index 33fa80d48..f03229b68 100644 --- a/demos/datepicker/datepicker-fr.js +++ b/demos/datepicker/datepicker-fr.js @@ -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 diff --git a/demos/datepicker/datepicker-he.js b/demos/datepicker/datepicker-he.js index bf58038f5..32bcdebb0 100644 --- a/demos/datepicker/datepicker-he.js +++ b/demos/datepicker/datepicker-he.js @@ -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 diff --git a/demos/datepicker/datepicker-zh-TW.js b/demos/datepicker/datepicker-zh-TW.js index ebfd73ac5..178409e19 100644 --- a/demos/datepicker/datepicker-zh-TW.js +++ b/demos/datepicker/datepicker-zh-TW.js @@ -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 diff --git a/demos/datepicker/default.html b/demos/datepicker/default.html index a11d5def7..a0c1e7521 100644 --- a/demos/datepicker/default.html +++ b/demos/datepicker/default.html @@ -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> diff --git a/demos/datepicker/dropdown-month-year.html b/demos/datepicker/dropdown-month-year.html index 8668018d9..287018866 100644 --- a/demos/datepicker/dropdown-month-year.html +++ b/demos/datepicker/dropdown-month-year.html @@ -4,18 +4,13 @@ <meta charset="utf-8"> <title>jQuery UI Datepicker - Display month & 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> diff --git a/demos/datepicker/icon-trigger.html b/demos/datepicker/icon-trigger.html index 8268f947b..3ea699409 100644 --- a/demos/datepicker/icon-trigger.html +++ b/demos/datepicker/icon-trigger.html @@ -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> diff --git a/demos/datepicker/inline.html b/demos/datepicker/inline.html index 5d120457b..10ad15606 100644 --- a/demos/datepicker/inline.html +++ b/demos/datepicker/inline.html @@ -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> diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 72933f011..b3d6ccf6f 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -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> diff --git a/demos/datepicker/min-max.html b/demos/datepicker/min-max.html index 4052c1785..e28758a3f 100644 --- a/demos/datepicker/min-max.html +++ b/demos/datepicker/min-max.html @@ -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> diff --git a/demos/datepicker/multiple-calendars.html b/demos/datepicker/multiple-calendars.html index 716b6c68e..fa7078e16 100644 --- a/demos/datepicker/multiple-calendars.html +++ b/demos/datepicker/multiple-calendars.html @@ -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> diff --git a/demos/datepicker/other-months.html b/demos/datepicker/other-months.html index 71a06c5d2..ecde4edeb 100644 --- a/demos/datepicker/other-months.html +++ b/demos/datepicker/other-months.html @@ -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> diff --git a/demos/datepicker/show-week.html b/demos/datepicker/show-week.html index 362645a7e..c5a306f70 100644 --- a/demos/datepicker/show-week.html +++ b/demos/datepicker/show-week.html @@ -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> |