Merge lp://staging/~larochelle-brian/ubuntu-calendar-app/30MinIncrementsHackdays into lp://staging/ubuntu-calendar-app
Proposed by
brian larochelle
Status: | Superseded |
---|---|
Proposed branch: | lp://staging/~larochelle-brian/ubuntu-calendar-app/30MinIncrementsHackdays |
Merge into: | lp://staging/ubuntu-calendar-app |
Diff against target: |
42 lines (+16/-2) 1 file modified
NewEvent.qml (+16/-2) |
To merge this branch: | bzr merge lp://staging/~larochelle-brian/ubuntu-calendar-app/30MinIncrementsHackdays |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubuntu Calendar Developers | Pending | ||
Review via email: mp+212904@code.staging.launchpad.net |
This proposal has been superseded by a proposal from 2014-03-27.
Commit message
Event time selection should be in 30 min increments
https:/
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 ?