summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniko <niko>2012-10-28 11:00:52 (GMT)
committerniko <niko>2012-10-28 11:00:52 (GMT)
commitf793711f7edba878e077ddc1ec5d00a10df4f31a (patch)
tree8c21022b49b4c281acf0d4a2b61b66ff6809c7e0
parent3ad2f683d978f282deaf1e547f7b3279d4d828b1 (diff)
downloadsynckolab-f793711f7edba878e077ddc1ec5d00a10df4f31a.tar.gz
bettrdebug output and fix for utf encoding (no need to do it more than once!)
-rw-r--r--src/chrome/content/synckolab/calendarTools.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/chrome/content/synckolab/calendarTools.js b/src/chrome/content/synckolab/calendarTools.js
index e87d221..d1a55b2 100644
--- a/src/chrome/content/synckolab/calendarTools.js
+++ b/src/chrome/content/synckolab/calendarTools.js
@@ -1064,8 +1064,6 @@ synckolab.calendarTools.xml2json = function (xml, syncTasks)
// not working ATM:
// - yearly recurrence
- // decode utf chars and make sure an & is an &amp; (otherwise this is unparseable)
- xml = synckolab.tools.text.utf8.decode(xml);
// temporary fixes:
// - attribute: "summary= ; "action=
// TODO: remove for non-nightly!!!
@@ -1075,6 +1073,7 @@ synckolab.calendarTools.xml2json = function (xml, syncTasks)
// convert the string to xml
var doc = synckolab.tools.parseXml(xml);
+ synckolab.tools.logMessage("parsed to DOM", synckolab.global.LOG_CAL + synckolab.global.LOG_DEBUG);
// we start with doc.firstChild and check for ELEMENT_NODE
// and nodeName === event. As we know the structure of Kolab XML for
@@ -1143,6 +1142,8 @@ synckolab.calendarTools.xml2json = function (xml, syncTasks)
var s, tmpobj;
var cDate, node;
+ synckolab.tools.logMessage("Starting to parse task: " + syncTasks + " startNode: " + cur.nodeName, synckolab.global.LOG_CAL + synckolab.global.LOG_DEBUG);
+
// iterate over the DOM tree of the XML structure of the event (kolab3: just the properties)
while(cur)
{