Checked in attachment 164299 for bug 253420:

no import of tasks from ical files
This commit is contained in:
mostafah%oeone.com 2004-11-02 19:39:58 +00:00
Родитель f9eff44e20
Коммит 55fcc544dc
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -724,14 +724,20 @@ function newEvent( startDate, endDate, allDay )
* Defaults calendarFile to the selected calendar file.
* Calls editNewToDo.
*/
function newToDo ( startDate, dueDate ) {
function newToDo ( startDate, dueDate )
{
var calendarToDo = createToDo();
// created todo has no start or due date unless user wants one
if (! startDate )
calendarToDo.start.clear();
else
calendarToDo.start.setTime( startDate );
if (! dueDate )
calendarToDo.due.clear();
else
calendarToDo.due.setTime( dueDate );
var server = getSelectedCalendarPathOrNull();