Merge lp:~mhall119/loco-team-portal/fixes-610495 into lp:loco-team-portal

Proposed by Michael Hall
Status: Merged
Merged at revision: 220
Proposed branch: lp:~mhall119/loco-team-portal/fixes-610495
Merge into: lp:loco-team-portal
Diff against target: 14 lines (+2/-2)
1 file modified
loco_directory/templates/events/team_event_new.html (+2/-2)
To merge this branch: bzr merge lp:~mhall119/loco-team-portal/fixes-610495
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+31744@code.launchpad.net

Description of the change

Fix off-by-one error on month when restricting team events to the global event's dates

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Good work!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/templates/events/team_event_new.html'
2--- loco_directory/templates/events/team_event_new.html 2010-07-29 02:09:20 +0000
3+++ loco_directory/templates/events/team_event_new.html 2010-08-04 12:19:42 +0000
4@@ -8,8 +8,8 @@
5 {% if global_event %}
6 <script>
7 $.datepicker.setDefaults({
8- minDate: new Date({{global_event.date_begin.year}}, {{global_event.date_begin.month}}, {{global_event.date_begin.day}} ),
9- maxDate: new Date({{global_event.date_end.year}}, {{global_event.date_end.month}}, {{global_event.date_end.day}} )
10+ minDate: new Date({{global_event.date_begin.year}}, {{global_event.date_begin.month}}-1, {{global_event.date_begin.day}} ),
11+ maxDate: new Date({{global_event.date_end.year}}, {{global_event.date_end.month}}-1, {{global_event.date_end.day}} )
12 });
13 </script>
14 {% endif %}

Subscribers

People subscribed via source and target branches