Merge lp://staging/~larochelle-brian/ubuntu-calendar-app/30MinIncrementsHackdays into lp://staging/ubuntu-calendar-app
Proposed by
brian larochelle
Status: | Merged |
---|---|
Approved by: | Kunal Parmar |
Approved revision: | 225 |
Merged at revision: | 223 |
Proposed branch: | lp://staging/~larochelle-brian/ubuntu-calendar-app/30MinIncrementsHackdays |
Merge into: | lp://staging/ubuntu-calendar-app |
Diff against target: |
60 lines (+18/-4) 1 file modified
NewEvent.qml (+18/-4) |
To merge this branch: | bzr merge lp://staging/~larochelle-brian/ubuntu-calendar-app/30MinIncrementsHackdays |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Kunal Parmar | Approve | ||
brian larochelle (community) | Needs Resubmitting | ||
Review via email: mp+213067@code.staging.launchpad.net |
This proposal supersedes a proposal from 2014-03-27.
Commit message
Added logic to NewEvent.qml to choose a default of either 0 or 30 for minutes for the TimePicker. If minutes are past 30, an hour is added.
Description of the change
Added logic to NewEvent.qml to choose a default of either 0 or 30 for minutes for the TimePicker. If minutes are past 30, an hour is added.
To post a comment you must log in.
8 + startTime. defaultHour = (startDate. getMinutes( ) < 30) ? startDate. getHours( ) : startDate. getHours( ) + 1 defaultMinute = (startDate. getMinutes( ) < 30) ? 30 : 0 open(timePicker ,root,{ "hour": startTime. defaultHour, "minute" :startTime. defaultMinute} );
19 + startTime.
20 + var popupObj = PopupUtils.
Can we move above code to separate function ?