MFB: Allow to add address lists as attendees through the address book popup (Bug...
authorJan Schneider <jan@horde.org>
Tue, 8 Sep 2009 12:39:55 +0000 (14:39 +0200)
committerJan Schneider <jan@horde.org>
Tue, 8 Sep 2009 12:52:17 +0000 (14:52 +0200)
kronolith/docs/CHANGES
kronolith/templates/contacts/contacts.inc

index d59752c..e5fc122 100644 (file)
@@ -23,6 +23,10 @@ v3.0-git
 v2.3.2-cvs
 ----------
 
+[jan] Allow to add address lists as attendees through the address book popup
+      (Bug #7834).
+[jan] Fix exporting certain weekday recurrence rules to iCalendar
+      (lst_hoe02@kwsoft.de, Bug #8501).
 [jan] Export recurrence end dates as date-time values in iCalendar data to
       improve compatibility with external clients (Bug #7846).
 [jan] Fix synchronization with output compression enabled (Bug #7769).
index cb4997b..3a55b45 100644 (file)
@@ -93,15 +93,16 @@ function updateMessage()
             var address = list.options[i].text;
             var fullname = decodeURIComponent(list.options[i].value);
         }
-        if (address.indexOf(':') != -1) {
-            continue;
+        if (address.indexOf(':') == -1) {
+            fullname = fullname.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
+            address = '"' + fullname + '" <' + address + '>';
         }
 
-        fullname = fullname.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
-        address = '"' + fullname + '" <' + address + '>';
-
         if (field.value) {
-            field.value = field.value + ', ' + address;
+            if (!field.value.match(/;\s*$/)) {
+                field.value = field.value + ',';
+            }
+            field.value = field.value + ' ' + address;
         } else {
             field.value = address;
         }