DE
Size: a a a
DE
VI
PV
DE
VI
DE
weeksInMonthCount: function() {
var firstDayOfFirstWeek = this.$root.firstDay.getDay(),
weeksCount = 4;
// Monday
if (firstDayOfFirstWeek === 1) {
if (this.$root.monthLength > 28) {
weeksCount = 5;
} else {
weeksCount = 4;
}
}
// Tuesday to Friday
if (firstDayOfFirstWeek > 1 && firstDayOfFirstWeek < 6 ) {
weeksCount = 5;
}
// Saturday
if (firstDayOfFirstWeek === 6) {
if (this.$root.monthLength < 31) {
weeksCount = 5;
} else {
weeksCount = 6;
}
}
// Sunday
if (firstDayOfFirstWeek === 0) {
if (this.$root.monthLength < 30) {
weeksCount = 5;
} else {
weeksCount = 6;
}
}
return weeksCount;
}
S
weeksInMonthCount: function() {
var firstDayOfFirstWeek = this.$root.firstDay.getDay(),
weeksCount = 4;
// Monday
if (firstDayOfFirstWeek === 1) {
if (this.$root.monthLength > 28) {
weeksCount = 5;
} else {
weeksCount = 4;
}
}
// Tuesday to Friday
if (firstDayOfFirstWeek > 1 && firstDayOfFirstWeek < 6 ) {
weeksCount = 5;
}
// Saturday
if (firstDayOfFirstWeek === 6) {
if (this.$root.monthLength < 31) {
weeksCount = 5;
} else {
weeksCount = 6;
}
}
// Sunday
if (firstDayOfFirstWeek === 0) {
if (this.$root.monthLength < 30) {
weeksCount = 5;
} else {
weeksCount = 6;
}
}
return weeksCount;
}
DE
НА
DE
DE
DE
VI
VI
НА
НА
DE
НА
НА