Datepicker: Update to Globalize 1.0.0

This commit is contained in:
Felix Nagel 2015-07-28 22:37:47 +02:00
parent 6db02da67c
commit ce704462b2
6 changed files with 8 additions and 3 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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() {