rem:  gOnlyWorkdayChecked = document.getElementById( "only-workday-checkbox-1" ).getAttribute("checked") ; gDisplayToDoInViewChecked = document.getElementById( "display-todo-inview-checkbox-1" ).getAttribute("checked") ; 
add:   if (document.getElementById("toggle_workdays_only").getAttribute("checked") == 'true') { var deck = document.getElementById("view-deck") for each (view in deck.childNodes) { view.workdaysOnly = true; } deck.selectedPanel.goToDay(deck.selectedPanel.selectedDay); }   if (document.getElementById("toggle_tasks_in_view").getAttribute("checked") != 'true') { var deck = document.getElementById("view-deck") for each (view in deck.childNodes) { view.tasksInView = false; } deck.selectedPanel.goToDay(deck.selectedPanel.selectedDay); } 
context: function calendarInit() {   // set up the CalendarWindow instance      gCalendarWindow = new CalendarWindow();      //when you switch to a view, it takes care of refreshing the events, so that call is not needed.   gCalendarWindow.currentView.switchTo( gCalendarWindow.currentView );   // set up the checkboxes variables   gOnlyWorkdayChecked = document.getElementById( "only-workday-checkbox-1" ).getAttribute("checked") ;   gDisplayToDoInViewChecked = document.getElementById( "display-todo-inview-checkbox-1" ).getAttribute("checked") ;   // set up the unifinder      prepareCalendarUnifinder();   prepareCalendarToDoUnifinder();      update_date();   checkForMailNews();   initCalendarManager();   if (("arguments" in window) && (window.arguments.length) &&       (typeof(window.arguments[0]) == "object") &&       ("channel" in window.arguments[0]) ) {       gCalendarWindow.calendarManager.checkCalendarURL(            window.arguments[0].channel );   }   // a bit of a hack since the menulist doesn't remember the selected value   var value = document.getElementById( 'event-filter-menulist' ).value;   document.getElementById( 'event-filter-menulist' ).selectedItem =        document.getElementById( 'event-filter-'+value );   var toolbox = document.getElementById("calendar-toolbox");   toolbox.customizeDone = CalendarToolboxCustomizeDone;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ea0a19bbff318452a3dd971a2d778d5c35d82b4a/calendar.js/clean/calendar/resources/content/calendar.js