[CalendarServer-changes] [13514] CalendarServer/trunk/contrib/webpoll/webapp/js/caldav.js

source_changes at macosforge.org source_changes at macosforge.org
Tue May 20 06:53:21 PDT 2014


Revision: 13514
          http://trac.calendarserver.org//changeset/13514
Author:   cdaboo at apple.com
Date:     2014-05-20 06:53:21 -0700 (Tue, 20 May 2014)
Log Message:
-----------
Fix the partstat's when generating attendees for "pick the winner".

Modified Paths:
--------------
    CalendarServer/trunk/contrib/webpoll/webapp/js/caldav.js

Modified: CalendarServer/trunk/contrib/webpoll/webapp/js/caldav.js
===================================================================
--- CalendarServer/trunk/contrib/webpoll/webapp/js/caldav.js	2014-05-20 13:52:55 UTC (rev 13513)
+++ CalendarServer/trunk/contrib/webpoll/webapp/js/caldav.js	2014-05-20 13:53:21 UTC (rev 13514)
@@ -970,11 +970,16 @@
 			"cal-address"
 		);
 		$.each(voter[1], function(key, value) {
-			if (key == "partstat") {
-				value = gSession.currentPrincipal.matchingAddress(voter[3]) ? "ACCEPTED" : "NEEDS-ACTION";
+			if (key == "cn") {
+				attendee[1][key] = value
 			}
-			attendee[1][key] = value
 		});
+		if (gSession.currentPrincipal.matchingAddress(voter[3])) {
+			attendee[1]["partstat"] = "ACCEPTED";
+		} else {
+			attendee[1]["partstat"] = "NEEDS-ACTION";
+			attendee[1]["rsvp"] = "TRUE";
+		}
 	});
 	calendar.changed(true);
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140520/d14c74e2/attachment.html>


More information about the calendarserver-changes mailing list