Merge lp:~twstd-dev/ubuntu-calendar-app/1359306 into lp:ubuntu-calendar-app

Proposed by twstd
Status: Merged
Approved by: Mihir Soni
Approved revision: 425
Merged at revision: 432
Proposed branch: lp:~twstd-dev/ubuntu-calendar-app/1359306
Merge into: lp:ubuntu-calendar-app
Diff against target: 26 lines (+8/-0)
1 file modified
NewEvent.qml (+8/-0)
To merge this branch: bzr merge lp:~twstd-dev/ubuntu-calendar-app/1359306
Reviewer Review Type Date Requested Status
Mihir Soni Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+232942@code.launchpad.net

Commit message

A fix for bug #1359306

Description of the change

Just a quick fix for a request #1359306

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Works great.

Thanks for the MR.

Revision history for this message
Mihir Soni (mihirsoni) wrote :

This branch needs merge from trunk.

review: Needs Fixing
424. By twstd

Merge with the main branch

425. By twstd

Add empty line back

Revision history for this message
twstd (twstd-dev) wrote :

Updated

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Mihir Soni (mihirsoni) wrote :

Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NewEvent.qml'
2--- NewEvent.qml 2014-08-28 23:10:33 +0000
3+++ NewEvent.qml 2014-09-06 16:27:49 +0000
4@@ -45,6 +45,7 @@
5 onStartDateChanged: {
6 startDateInput.text = Qt.formatDateTime(startDate, "dd MMM yyyy");
7 startTimeInput.text = Qt.formatDateTime(startDate, "hh:mm");
8+ adjustEndDateToStartDate()
9 }
10
11 onEndDateChanged: {
12@@ -325,7 +326,14 @@
13 return tempDate.setHours(tempDate.getHours() + 1)
14 }
15
16+ function adjustEndDateToStartDate() {
17+ // set time forward to one hour
18+ var time_forward = 3600000;
19+ endDate = new Date( startDate.getTime() + time_forward );
20+ }
21+
22 ScrollAnimation{id:scrollAnimation}
23+
24 function scrollOnExpand(Self,Container,Target,Margin,Visible)
25 {
26 // Self is needed for "onXxxxxChange" triggers. OnExpansionCompleted however can just write "true".

Subscribers

People subscribed via source and target branches

to status/vote changes: