Bug 1240380 - Remove cability to add attendees in task dialog for Lightning 4.7;r+a=philipp
authorMakeMyDay <makemyday@gmx-topmail.de>
Sat, 23 Jan 2016 12:53:35 +0100
changeset 26673 d6217966ab7d510afb926fe011e4e2c32c8578ec
parent 26672 48fcfb435d108c544b3863f308c4127adb5332c1
child 26674 11bc37852ff52c6c94a65c3b24f10dcd882e0615
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1240380
Bug 1240380 - Remove cability to add attendees in task dialog for Lightning 4.7;r+a=philipp
calendar/base/content/dialogs/calendar-event-dialog.js
--- a/calendar/base/content/dialogs/calendar-event-dialog.js
+++ b/calendar/base/content/dialogs/calendar-event-dialog.js
@@ -681,17 +681,17 @@ function loadDateTime(item) {
             gEndTimezone = endTime.timezone;
             endTime = endTime.getInTimezone(kDefaultTimezone);
         } else {
             gEndTimezone = kDefaultTimezone;
         }
         if (hasEntryDate && hasDueDate) {
             duration = endTime.subtractDate(startTime);
         }
-        setElementValue("cmd_attendees", !(hasEntryDate && hasDueDate), "disabled");
+        setElementValue("cmd_attendees", true, "disabled");
         setBooleanAttribute("keepduration-button", "disabled", !(hasEntryDate && hasDueDate));
         gStartTime = startTime;
         gEndTime = endTime;
         gItemDuration = duration;
     }
 }
 
 /**
@@ -902,17 +902,16 @@ function updateDateCheckboxes(aDatePicke
     let hasDueDate = getElementValue("todo-has-duedate", "checked");
     if (hasEntryDate && hasDueDate) {
         let start = cal.jsDateToDateTime(getElementValue("todo-entrydate"));
         let end = cal.jsDateToDateTime(getElementValue("todo-duedate"));
         gItemDuration = end.subtractDate(start);
     } else {
         gItemDuration = null;
     }
-    setElementValue("cmd_attendees", !(hasEntryDate && hasDueDate), "disabled");
     setBooleanAttribute("keepduration-button", "disabled", !(hasEntryDate && hasDueDate));
     updateDateTime();
     updateTimezone();
 }
 
 /**
  * Update the dialog controls to display the item's recurrence information
  * nicely.