From ce704462b2340a774c142c5aff93200103e92b09 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Tue, 28 Jul 2015 22:37:47 +0200 Subject: [PATCH] Datepicker: Update to Globalize 1.0.0 --- demos/datepicker/animation.html | 1 + demos/datepicker/date-formats.html | 1 + demos/datepicker/default.html | 1 + demos/datepicker/icon-trigger.html | 1 + demos/datepicker/localization.html | 1 + ui/datepicker.js | 6 +++--- 6 files changed, 8 insertions(+), 3 deletions(-) diff --git a/demos/datepicker/animation.html b/demos/datepicker/animation.html index 5f5fc6825..f162231ba 100644 --- a/demos/datepicker/animation.html +++ b/demos/datepicker/animation.html @@ -9,6 +9,7 @@ + diff --git a/demos/datepicker/date-formats.html b/demos/datepicker/date-formats.html index a98c99e7e..6c713a339 100644 --- a/demos/datepicker/date-formats.html +++ b/demos/datepicker/date-formats.html @@ -9,6 +9,7 @@ + diff --git a/demos/datepicker/default.html b/demos/datepicker/default.html index f57cd41bc..b4650ad1e 100644 --- a/demos/datepicker/default.html +++ b/demos/datepicker/default.html @@ -9,6 +9,7 @@ + diff --git a/demos/datepicker/icon-trigger.html b/demos/datepicker/icon-trigger.html index 933b38b9d..2478d29d8 100644 --- a/demos/datepicker/icon-trigger.html +++ b/demos/datepicker/icon-trigger.html @@ -9,6 +9,7 @@ + diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 71070c168..7d73a4154 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -9,6 +9,7 @@ + diff --git a/ui/datepicker.js b/ui/datepicker.js index c1cced4ed..ba6fd7527 100644 --- a/ui/datepicker.js +++ b/ui/datepicker.js @@ -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() { -- 2.39.5