summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniko <niko>2012-11-04 09:29:16 (GMT)
committerniko <niko>2012-11-04 09:29:16 (GMT)
commit5690e61b00263715610e98e2911999cd0259424f (patch)
tree7e729411e8263056c0998948be9e20466f0780cb
parent0b7dceed02fcb12fa7c19a0ac7976b528e76ff93 (diff)
downloadsynckolab-5690e61b00263715610e98e2911999cd0259424f.tar.gz
fix compatibility with horde
-rw-r--r--src/chrome/content/synckolab/addressbook.js6
-rw-r--r--src/chrome/content/synckolab/addressbookTools.js6
2 files changed, 7 insertions, 5 deletions
diff --git a/src/chrome/content/synckolab/addressbook.js b/src/chrome/content/synckolab/addressbook.js
index 737d144..b1b02e3 100644
--- a/src/chrome/content/synckolab/addressbook.js
+++ b/src/chrome/content/synckolab/addressbook.js
@@ -492,7 +492,7 @@ synckolab.AddressBook = {
}
// create a UUID if it does not exist!
- var cUID = this.tools.getTbirdUUID(card, this.gConfig);
+ var cUID = synckolab.addressbookTools.getTbirdUUID(card, this.gConfig);
this.gCardDB.put(cUID, card);
}
},
@@ -562,7 +562,7 @@ synckolab.AddressBook = {
card = card.QueryInterface(Components.interfaces.nsIAbCard);
// create a UUID if it does not exist!
- var cUID = this.tools.getTbirdUUID(card, message.config);
+ var cUID = synckolab.addressbookTools.getTbirdUUID(card, message.config);
message.config.cardDb.put(cUID, card);
}
}
@@ -1175,7 +1175,7 @@ synckolab.AddressBook = {
var curListItem;
// get the UUID and create on eif it does not exist yet
- var cUID = this.tools.getTbirdUUID(curItem, this.gConfig);
+ var cUID = synckolab.addressbookTools.getTbirdUUID(curItem, this.gConfig);
var alreadyProcessed = false;
diff --git a/src/chrome/content/synckolab/addressbookTools.js b/src/chrome/content/synckolab/addressbookTools.js
index 5fb8436..882ae16 100644
--- a/src/chrome/content/synckolab/addressbookTools.js
+++ b/src/chrome/content/synckolab/addressbookTools.js
@@ -1507,7 +1507,7 @@ synckolab.addressbookTools.list2Xml = function (card, fields) {
// default: public - tbird doesnt know of other types of list like private
xml += " <sensitivity>public</sensitivity>\n";
- xml += " <name>" + synckolab.tools.text.encode4XML(this.getCardProperty(card, "DisplayName")) + "</name>\n";
+ xml += " <display-name>" + synckolab.tools.text.encode4XML(this.getCardProperty(card, "DisplayName")) + "</display-name>\n";
if (this.haveCardProperty(card, "Notes")) {
xml += " <body>" + synckolab.tools.text.encode4XML(this.getCardProperty(card, "Notes")) + "</body>\n";
@@ -2536,7 +2536,9 @@ synckolab.addressbookTools.Xml2List = function (topNode, card) {
}
*/
break;
- // very important!!!
+
+ // very important - this is used for displaying/finding lists
+ case "DISPLAY-NAME":
case "NAME":
if (cur.firstChild === null) {
break;