Bug 977050 - Automate changing end date/time in Calendar

This patch is just for ui review not code review currently.
I find it weird that both `if` and `else if` call same method.. do we really need both conditionals? can't we call the `this._setEndDateTimeWithCurrentDuration()` for all cases and keep just one `if` for the error?