summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniko <niko>2012-05-18 21:48:45 (GMT)
committerniko <niko>2012-05-18 21:48:45 (GMT)
commitaee81d219de8c31a1bebcfa3d08ac97ddfd63a15 (patch)
treea1540187aba172343aa4a2bf25afe7a67d60e5f0
parent1605e9eecb2c02406ec3691064253c8da36bcd67 (diff)
downloadsynckolab-aee81d219de8c31a1bebcfa3d08ac97ddfd63a15.tar.gz
add support for multiple days per week
-rw-r--r--src/chrome/content/synckolab/calendarTools.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/chrome/content/synckolab/calendarTools.js b/src/chrome/content/synckolab/calendarTools.js
index 2791e9e..ef59c71 100644
--- a/src/chrome/content/synckolab/calendarTools.js
+++ b/src/chrome/content/synckolab/calendarTools.js
@@ -571,7 +571,10 @@ com.synckolab.calendarTools.event2json = function (event, syncTasks) {
// need to process the <day> value here
var curDay = recRule.getComponent("BYDAY", {});
if (curDay && curDay.length > 0 ) {
- jobj.recurrence.days.push(com.synckolab.tools.kolab.getXmlDayName(curDay[0]));
+ // multiple recurrence possible
+ for(var recweekdays = 0; recweekdays < curDay.length; recweekdays ++) {
+ jobj.recurrence.days.push(com.synckolab.tools.kolab.getXmlDayName(curDay[recweekdays]));
+ }
}
break;
case "MONTHLY":