rem: switch(caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFunction = "printEventArray" ; printFunctionArg = gSelectedEvents ; break ; case 'day' : printFunction = "printDayView" ; break ; case 'week' : printFunction = "printWeekView" ; break ; case 'multiweek' : printFunction = "printMultiWeekView" ; break ; default : alert("Error : no case in printDialog.js::printCalendar()"); return false ; 
add: switch( caltype.value ) { case 'month' : printFunction = "printMonthView" ; break ; case 'list' : printFunction = "printEventArray" ; printFunctionArg = gSelectedEvents ; break ; case 'day' : printFunction = "printDayView" ; break ; case 'week' : printFunction = "printWeekView" ; break ; case 'multiweek' : printFunction = "printMultiWeekView" ; break ; default : alert("Error : no case in printDialog.js::printCalendar()"); return false ; 
context: function printCalendar() {  var caltype=document.getElementById("view-field");  if (caltype.value == '') caltype.value='month';  var printFunction;  var  printFunctionArg = gStartDate ;  switch(caltype.value ) {  case 'month' :    printFunction = "printMonthView" ;    break ;  case 'list' :    printFunction = "printEventArray" ;    printFunctionArg = gSelectedEvents ;    break ;  case 'day' :    printFunction = "printDayView" ;    break ;  case 'week' :    printFunction = "printWeekView" ;    break ;  case 'multiweek' :    printFunction = "printMultiWeekView" ;    break ;  default :    alert("Error : no case in printDialog.js::printCalendar()");    return false ;  }  printInitWindow(printFunction,printFunctionArg)  return true ;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9765536a10900c5b8f2c85a3aecfd35b1ab24f06/printDialog.js/buggy/calendar/resources/content/printDialog.js