Skip to content
This repository was archived by the owner on Aug 6, 2020. It is now read-only.

Commit 3ef5332

Browse files
author
Maelig GOHIN
committed
release: 2.1.2
1 parent 769592f commit 3ef5332

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dist/multipleDatePicker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
@author : Maelig GOHIN For ARCA-Computing - www.arca-computing.fr
3-
@version: 2.1.1
3+
@version: 2.1.2
44
55
@description: MultipleDatePicker is an Angular directive to show a simple calendar allowing user to select multiple dates.
66
Css style can be changed by editing less or css stylesheet.
@@ -251,7 +251,9 @@
251251
watches.push(
252252
scope.$watch(function () {
253253
return moment.locale();
254-
}, function () {
254+
}, function (newLocale) {
255+
//must change month locale too to change month displayed
256+
scope.month.locale(newLocale);
255257
scope.daysOfWeek = getDaysOfWeek();
256258
scope.monthToDisplay = getMonthYearToDisplay();
257259
}, true)

0 commit comments

Comments
 (0)