Changeset 2882

Show
Ignore:
Timestamp:
04/24/10 23:41:19
Author:
johnsa
Message:

ongoing updates to freebusy mockup

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/deployment/webuser/webapp/resources/demoskins/fbMockup/bedeworkFb.js

    r2881 r2882  
    250250              $(fbCell).addClass("hourBoundry"); 
    251251            }  
     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            } 
    252266            $(fbDisplayTimesRow).append(fbCell); 
    253267            curDate.addMinutes(60/this.hourDivision); 
  • trunk/deployment/webuser/webapp/resources/demoskins/fbMockup/schedule.css

    r2878 r2882  
    9797  background-color: #eee; 
    9898} 
     99#bwScheduleTable tr.allAttendees td.busy { 
     100  background-color: #93A9CF !important; 
     101  color: black; 
     102} 
    99103#bwScheduleControls { 
    100104  margin: 1.5em 1em;