Bug 1324006 - Event dialog: until date "forever" changes to today date when reopening the dialog. r=Paul Morris a=philipp
authorDecathlon <bv1578@gmail.com>
Mon, 16 Jan 2017 23:21:05 +0100
changeset 27719 e1cda4717bd8b7bc76101a28bdf03bf6fa489651
parent 27718 edbc5069cfa096c307e289dd9ef5f12233d96e84
child 27720 77704a98cda75e7059a69663b5991bcc3d61e05b
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)
reviewersPaul, philipp
bugs1324006
Bug 1324006 - Event dialog: until date "forever" changes to today date when reopening the dialog. r=Paul Morris a=philipp
calendar/lightning/content/html-item-editing/react-code.js
calendar/lightning/content/lightning-item-iframe.js
--- a/calendar/lightning/content/html-item-editing/react-code.js
+++ b/calendar/lightning/content/html-item-editing/react-code.js
@@ -140,17 +140,17 @@ var TopComponent = React.createClass({
     getDefaultProps: function() {
         return {
             // these "initial" props are passed in as props but
             // immediately become state (state can change, props do not)
             initialTitle: "New Event",
             initialLocation: "",
             initialAllDay: false,
             initialRepeat: "none",
-            initialRepeatUntilDate: "Forever",
+            initialRepeatUntilDate: "forever",
             initialReminders: 0,
             initialDescription: "",
             initialShowTimeAs: "OPAQUE",
             initialCalendarId: 0,
             initialPrivacy: 0,
             initialStatus: 0,
             initialPriority: 0,
             initialUrl: "",
--- a/calendar/lightning/content/lightning-item-iframe.js
+++ b/calendar/lightning/content/lightning-item-iframe.js
@@ -1212,17 +1212,17 @@ function updateDateCheckboxes(aDatePicke
  * Get the item's recurrence information for displaying in dialog controls.
  *
  * @param {Object} aItem  The calendar item
  * @return {string[]}     An array of two strings: [repeatType, untilDate]
  */
 function getRepeatTypeAndUntilDate(aItem) {
     let recurrenceInfo = window.recurrenceInfo;
     let repeatType = "none";
-    let untilDate = "Forever";
+    let untilDate = "forever";
 
     /**
      * Updates the until date (locally and globally).
      *
      * @param aRule  The recurrence rule
      */
     let updateUntilDate = (aRule) => {
         if (!aRule.isByCount) {