add:  opener.setCursor( "default" ); 
context: function loadCalendarToDoDialog(){   // Get arguments, see description at top of file      var args = window.arguments[0];      gMode = args.mode;      gOnOkFunction = args.onOk;   gToDo = args.calendarToDo;      // mode is "new or "edit" - show proper header   var titleDataItem = null;   if( "new" == args.mode )   {      titleDataItem = document.getElementById( "data-todo-title-new" );   }   else   {      titleDataItem = document.getElementById( "data-todo-title-edit" );   }      var titleString = titleDataItem.getAttribute( "value" );   document.getElementById("calendar-new-taskwindow").setAttribute("title", titleString);   // fill in fields from the event   var dueDate = new Date( gToDo.due.getTime() );   document.getElementById( "due-date-picker" ).value = dueDate;   var startDate = new Date( gToDo.start.getTime() );   document.getElementById( "start-date-picker" ).value = startDate;   setFieldValue( "priority-levels", gToDo.priority );      setFieldValue( "percent-complete-menulist", gToDo.percent );   if( gToDo.completed.getTime() > 0 )   {      var completedDate = new Date( gToDo.completed.getTime() );      document.getElementById( "completed-date-picker" ).value = completedDate;             setFieldValue( "completed-checkbox", "true", "checked" );   }   else   {      var Today = new Date();      document.getElementById( "completed-date-picker" ).value = Today;   }   setFieldValue( "title-field", gToDo.title  );   setFieldValue( "description-field", gToDo.description );   setFieldValue( "uri-field", gToDo.url );      switch( gToDo.status )   {      case gToDo.ICAL_STATUS_CANCELLED:         setFieldValue( "cancelled-checkbox", true, "checked" );      break;   }      setFieldValue( "private-checkbox", gToDo.privateEvent, "checked" );      if( gToDo.alarm === false && gToDo.alarmLength == 0 )   {      gToDo.alarmLength = gDefaultAlarmLength;   }      setFieldValue( "alarm-checkbox", gToDo.alarm, "checked" );   setFieldValue( "alarm-length-field", gToDo.alarmLength );   setFieldValue( "alarm-length-units", gToDo.alarmUnits );   // Load categories   var categoriesString = opener.getCharPref(opener.gCalendarWindow.calendarPreferences.calendarPref, "categories.names", getDefaultCategories() );   var categoriesList = categoriesString.split( "," );      // insert the category already in the task so it doesn't get lost   if( gToDo.categories )      if( categoriesString.indexOf( gToDo.categories ) == -1 )         categoriesList[categoriesList.length] =  gToDo.categories;   categoriesList.sort();      var oldMenulist = document.getElementById( "categories-menulist-menupopup" );   while( oldMenulist.hasChildNodes() )      oldMenulist.removeChild( oldMenulist.lastChild );      for (var i = 0; i < categoriesList.length ; i++)   {      document.getElementById( "categories-field" ).appendItem(categoriesList[i], categoriesList[i]);   }   document.getElementById( "categories-field" ).selectedIndex = -1;   setFieldValue( "categories-field", gToDo.categories );      /* Server stuff */   var serverList = opener.gCalendarWindow.calendarManager.calendars;   document.getElementById( "server-menulist-menupopup" ).database.AddDataSource( opener.gCalendarWindow.calendarManager.rdf.getDatasource() );   document.getElementById( "server-menulist-menupopup" ).builder.rebuild();      if( args.mode == "new" )   {      if( args.server )      {         setFieldValue( "server-field", args.server );      }      else      {         document.getElementById( "server-field" ).selectedIndex = 1;      }   }   else   {      setFieldValue( "server-field", gToDo.parent.server );      //for now you can't edit which file the event is in.      setFieldValue( "server-field", "true", "disabled" );      setFieldValue( "server-field-label", "true", "disabled" );   }      //the next line seems to crash Mozilla   //setFieldValue( "server-field", gEvent.parent.server );      // update enabling and disabling   updateAlarmItemEnabled();   updateCompletedItemEnabled();      // start focus on title      var firstFocus = document.getElementById( "title-field" );   firstFocus.focus();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5a7a13b431412cdb3157cec64c44f26f5462c181/toDoDialog.js/buggy/calendar/resources/content/toDoDialog.js