(js) Fix JavaScript syntax error in Component

This commit is contained in:
Francis Lachapelle
2015-12-17 13:19:34 -05:00
parent 4973580b4b
commit 52863bf820

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 = [];