| | 252 | // set busy if any freebusy in this timeperiod |
|---|
| | 253 | loop1: // since we only need to know if anyone is busy, provide a simple means of breaking from the inner loop |
|---|
| | 254 | for (att = 0; att < this.attendees.length; att++) { |
|---|
| | 255 | for (m = 0; m < this.attendees[att].freebusy.length; m++) { |
|---|
| | 256 | var tzoffset = -curDate.getTimezoneOffset() * 60000; // in milliseconds |
|---|
| | 257 | // adding the hourdivision increment in the calculation below is to correct for a bug |
|---|
| | 258 | // in which the class was always offset by one table cell - should find cause |
|---|
| | 259 | var curDateUTC = curDate.getTime() + tzoffset + (60 / this.hourDivision * 60000); |
|---|
| | 260 | if (this.attendees[att].freebusy[m].contains(curDateUTC)) { |
|---|
| | 261 | $(fbCell).addClass("busy"); |
|---|
| | 262 | break loop1; |
|---|
| | 263 | } |
|---|
| | 264 | } |
|---|
| | 265 | } |
|---|