From b789eef8123b884edb3e96ff798d4bd3b280e1d3 Mon Sep 17 00:00:00 2001 From: Jeremy Elbourn Date: Tue, 19 May 2015 16:44:28 -0700 Subject: [PATCH] feat(calendar): fix up $$mdDateLocaleProvider and use in calendar. --- src/components/calendar/calendar.js | 6 ++-- .../calendar/demoBasicUsage/index.html | 28 ------------------- .../calendar/demoBasicUsage/script.js | 12 -------- .../calendar/demoBasicUsage/style.css | 1 - 4 files changed, 3 insertions(+), 44 deletions(-) delete mode 100644 src/components/calendar/demoBasicUsage/index.html delete mode 100644 src/components/calendar/demoBasicUsage/script.js delete mode 100644 src/components/calendar/demoBasicUsage/style.css diff --git a/src/components/calendar/calendar.js b/src/components/calendar/calendar.js index 2936d825fc6..bf0b7fe1dd6 100644 --- a/src/components/calendar/calendar.js +++ b/src/components/calendar/calendar.js @@ -307,7 +307,7 @@ CalendarCtrl.prototype.focus = function() { this.focusDateElement(this.selectedDate); }; - + /*** Animation ***/ @@ -719,8 +719,8 @@ return [ 'md', this.id, - date.getFullYear(), - date.getMonth(), + date.getFullYear(), + date.getMonth(), date.getDate() ].join('-'); }; diff --git a/src/components/calendar/demoBasicUsage/index.html b/src/components/calendar/demoBasicUsage/index.html deleted file mode 100644 index bd9ce4f9486..00000000000 --- a/src/components/calendar/demoBasicUsage/index.html +++ /dev/null @@ -1,28 +0,0 @@ -
- -

{{title}}

- -
-

-

Development tools

- - - -

-
- - - -

-

-

-

Here is a bunch of stuff after the calendar

-

Here is a bunch of stuff after the calendar

-

Here is a bunch of stuff after the calendar

-

Here is a bunch of stuff after the calendar

-

Here is a bunch of stuff after the calendar

-

Here is a bunch of stuff after the calendar

- - -
-
diff --git a/src/components/calendar/demoBasicUsage/script.js b/src/components/calendar/demoBasicUsage/script.js deleted file mode 100644 index d4e813d1cf2..00000000000 --- a/src/components/calendar/demoBasicUsage/script.js +++ /dev/null @@ -1,12 +0,0 @@ -angular.module('calendarDemo1', ['ngMaterial']) - .controller('AppCtrl', function($scope) { - $scope.title = 'Calendar demo'; - $scope.myDate = new Date(); - - $scope.adjustMonth = function(delta) { - $scope.myDate = new Date( - $scope.myDate.getFullYear(), - $scope.myDate.getMonth() + delta, - $scope.myDate.getDate()); - }; - }); diff --git a/src/components/calendar/demoBasicUsage/style.css b/src/components/calendar/demoBasicUsage/style.css deleted file mode 100644 index 1156334a7f7..00000000000 --- a/src/components/calendar/demoBasicUsage/style.css +++ /dev/null @@ -1 +0,0 @@ -/** Demo styles for mdCalendar. */