mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Datepicker: Update to Globalize 1.0.0
This commit is contained in:
parent
6db02da67c
commit
ce704462b2
@ -9,6 +9,7 @@
|
||||
<script src="../../external/cldrjs/cldr/event.js"></script>
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../external/globalize/globalize.js"></script>
|
||||
<script src="../../external/globalize/globalize/number.js"></script>
|
||||
<script src="../../external/globalize/globalize/date.js"></script>
|
||||
<script src="../../external/localization.js"></script>
|
||||
<script src="../../external/date.js"></script>
|
||||
|
@ -9,6 +9,7 @@
|
||||
<script src="../../external/cldrjs/cldr/event.js"></script>
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../external/globalize/globalize.js"></script>
|
||||
<script src="../../external/globalize/globalize/number.js"></script>
|
||||
<script src="../../external/globalize/globalize/date.js"></script>
|
||||
<script src="../../external/localization.js"></script>
|
||||
<script src="../../external/date.js"></script>
|
||||
|
@ -9,6 +9,7 @@
|
||||
<script src="../../external/cldrjs/cldr/event.js"></script>
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../external/globalize/globalize.js"></script>
|
||||
<script src="../../external/globalize/globalize/number.js"></script>
|
||||
<script src="../../external/globalize/globalize/date.js"></script>
|
||||
<script src="../../external/localization.js"></script>
|
||||
<script src="../../external/date.js"></script>
|
||||
|
@ -9,6 +9,7 @@
|
||||
<script src="../../external/cldrjs/cldr/event.js"></script>
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../external/globalize/globalize.js"></script>
|
||||
<script src="../../external/globalize/globalize/number.js"></script>
|
||||
<script src="../../external/globalize/globalize/date.js"></script>
|
||||
<script src="../../external/localization.js"></script>
|
||||
<script src="../../external/date.js"></script>
|
||||
|
@ -9,6 +9,7 @@
|
||||
<script src="../../external/cldrjs/cldr/event.js"></script>
|
||||
<script src="../../external/jquery/jquery.js"></script>
|
||||
<script src="../../external/globalize/globalize.js"></script>
|
||||
<script src="../../external/globalize/globalize/number.js"></script>
|
||||
<script src="../../external/globalize/globalize/date.js"></script>
|
||||
<script src="../../external/localization.js"></script>
|
||||
<script src="../../external/date.js"></script>
|
||||
|
@ -79,11 +79,11 @@ var widget = $.widget( "ui.datepicker", {
|
||||
options = {};
|
||||
|
||||
if ( max !== undefined ) {
|
||||
options.max = Globalize.parseDate( max, { pattern: "yyyy-MM-dd" } );
|
||||
options.max = Globalize.parseDate( max, { raw: "yyyy-MM-dd" } );
|
||||
}
|
||||
|
||||
if ( min !== undefined ) {
|
||||
options.min = Globalize.parseDate( min, { pattern: "yyyy-MM-dd" } );
|
||||
options.min = Globalize.parseDate( min, { raw: "yyyy-MM-dd" } );
|
||||
}
|
||||
|
||||
return options;
|
||||
@ -285,7 +285,7 @@ var widget = $.widget( "ui.datepicker", {
|
||||
|
||||
this._format = globalize.dateFormatter({ date: "short" });
|
||||
this._parse = globalize.dateParser({ date: "short" });
|
||||
this._parseYMD = globalize.dateParser({ pattern: "yyyy-MM-dd" });
|
||||
this._parseYMD = globalize.dateParser({ raw: "yyyy-MM-dd" });
|
||||
},
|
||||
|
||||
_buildPosition: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user