Merge lp:~daker/loco-team-portal/fix.818373 into lp:loco-team-portal

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Nigel Babu
Approved revision: 470
Merged at revision: 473
Proposed branch: lp:~daker/loco-team-portal/fix.818373
Merge into: lp:loco-team-portal
Diff against target: 45 lines (+14/-12)
2 files modified
loco_directory/events/forms.py (+1/-1)
loco_directory/media/js/events-ui.js (+13/-11)
To merge this branch: bzr merge lp:~daker/loco-team-portal/fix.818373
Reviewer Review Type Date Requested Status
Nigel Babu (community) Approve
Review via email: mp+69898@code.launchpad.net

Commit message

Autopull the end date when the user choose the start date

To post a comment you must log in.
Revision history for this message
Nigel Babu (nigelbabu) wrote :

Looks good. Ack

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/events/forms.py'
2--- loco_directory/events/forms.py 2011-07-18 12:00:47 +0000
3+++ loco_directory/events/forms.py 2011-07-30 18:32:46 +0000
4@@ -51,8 +51,8 @@
5 '/media/jquery-ui/jquery-ui.js',
6 '/media/jquery-ui-timepicker/js/jquery.timepickr.min.js',
7 '/media/jquery-ui-timepicker/js/ui.timepickr.min.js',
8+ '/media/js/colortip-1.0-jquery.js',
9 '/media/js/events-ui.js',
10- '/media/js/colortip-1.0-jquery.js',
11 )
12
13 def __init__(self, *args, **kargs):
14
15=== modified file 'loco_directory/media/js/events-ui.js'
16--- loco_directory/media/js/events-ui.js 2010-01-05 14:40:39 +0000
17+++ loco_directory/media/js/events-ui.js 2011-07-30 18:32:46 +0000
18@@ -1,14 +1,16 @@
19 $(document).ready(function(){
20
21- $.datepicker.setDefaults({
22- showOn: 'focus',
23- dateFormat: 'yy-mm-dd'
24- });
25-
26- $("#id_date_begin_0").datepicker();
27- $('#id_date_begin_1').timepickr({ trigger: 'focus', convention: 24 });
28-
29- $("#id_date_end_0").datepicker();
30- $('#id_date_end_1').timepickr({ trigger: 'focus', convention: 24 });
31-
32+ $.datepicker.setDefaults({
33+ showOn: 'focus',
34+ dateFormat: 'yy-mm-dd',
35+ });
36+
37+ $("#id_date_begin_0").datepicker({altField: "#id_date_end_0", altFormat: "yy-mm-dd"});
38+ $('#id_date_begin_1').timepickr({ trigger: 'focus', convention: 24 });
39+
40+ $("#id_date_end_0").datepicker();
41+ $('#id_date_end_1').timepickr({ trigger: 'focus', convention: 24 });
42+
43+ $('span[rel*=help]').colorTip({color:'orange'});
44+
45 });

Subscribers

People subscribed via source and target branches