Skip to content

Commit 7f194c9

Browse files
committed
Draw the right number of days in the secretariats room view. Commit ready for merge.
- Legacy-Id: 9668
1 parent 3c03290 commit 7f194c9

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

ietf/templates/meeting/room-view.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@
150150

151151
var i;
152152
var text="";
153-
var start_day = items[0].day;
154-
var end_day = start_day;
155153

156154
var day_start = 23*60+59;
157155
var day_end = 0;
@@ -166,17 +164,14 @@
166164

167165
if (start_time < day_start) { day_start = start_time; }
168166
if (end_time > day_end) { day_end = end_time; }
169-
170-
if (items[i].day < start_day) { start_day = items[i].day; }
171-
if (items[i].day > end_day) { end_day = items[i].day; }
172167
}
173168
}
174169

175170
var timelabel_width = width * 0.020;
176171
var header_height = height * 0.05;
177172
var header_offset = $('#daytabs').height();
178173

179-
var num_days = end_day - start_day + 1;
174+
var num_days = {{days|length}};
180175
var num_minutes = day_end - day_start;
181176
var minute_height = (height - header_height - header_offset)/num_minutes;
182177
var body = document.body;

0 commit comments

Comments
 (0)