(js) Fix JavaScript syntax error in Component

pull/186/head
Francis Lachapelle 2015-12-17 13:19:34 -05:00
parent 4973580b4b
commit 52863bf820
1 changed files with 2 additions and 1 deletions

View File

@ -491,7 +491,7 @@
var byDayMask = _.find(this.repeat.days, function(o) {
return angular.isDefined(o.occurrence);
});
if (byDayMask)
if (byDayMask) {
if (this.repeat.frequency == 'yearly')
this.repeat.year = { byday: true };
this.repeat.month = {
@ -499,6 +499,7 @@
occurrence: byDayMask.occurrence.toString(),
day: byDayMask.day
};
}
}
else {
this.repeat.days = [];