rem: function changeDisplayToDoInViewCheckbox( menuindex ) { var check = document.getElementById( "display-todo-inview-checkbox-" + menuindex ).getAttribute("checked") ; var changemenu ; switch(menuindex){ case 1: changemenu = 2 ; break; case 2: changemenu = 1 ; break; default: return; } if(check == "true") { document.getElementById( "display-todo-inview-checkbox-" + changemenu ).setAttribute("checked","true"); gDisplayToDoInViewChecked = "true" ; } else { document.getElementById( "display-todo-inview-checkbox-" + changemenu ).removeAttribute("checked"); gDisplayToDoInViewChecked = "false" ; } gCalendarWindow.currentView.refreshEvents( ); 
add: function changeDisplayToDoInViewCheckbox() { var oldValue = (document.getElementById("toggle_tasks_in_view") .getAttribute("checked") == 'true'); document.getElementById("toggle_tasks_in_view") .setAttribute("checked", !oldValue);   for each (view in document.getElementById("view-deck").childNodes) { view.tasksInView = !oldValue; }    var currentView = document.getElementById("view-deck").selectedPanel; currentView.goToDay(currentView.selectedDay); 
context: function changeDisplayToDoInViewCheckbox( menuindex ) {  var check = document.getElementById( "display-todo-inview-checkbox-" + menuindex ).getAttribute("checked") ;  var changemenu ;  switch(menuindex){  case 1:    changemenu = 2 ;    break;  case 2:    changemenu = 1 ;    break;  default:    return;  }  if(check == "true") {    document.getElementById( "display-todo-inview-checkbox-" + changemenu ).setAttribute("checked","true");    gDisplayToDoInViewChecked = "true" ;  }  else {    document.getElementById( "display-todo-inview-checkbox-" + changemenu ).removeAttribute("checked");    gDisplayToDoInViewChecked = "false" ;  }  gCalendarWindow.currentView.refreshEvents( );}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ea0a19bbff318452a3dd971a2d778d5c35d82b4a/calendar.js/clean/calendar/resources/content/calendar.js