This commit is contained in:
mikep%oeone.com 2002-08-23 18:58:58 +00:00
Родитель ed0053311b
Коммит db82ec4609
2 изменённых файлов: 31 добавлений и 5 удалений

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

@ -440,31 +440,56 @@ function toDoUnifinderItemUpdate( calendarToDo )
}
function contextChangePriority( Priority, event )
function contextChangeProgress( event, Progress )
{
var tree = document.getElementById( ToDoUnifinderTreeName );
if (tree.treeBoxObject.selection.count > 0)
{
var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex );
if(treeitem)
{
var todoId = treeitem.getAttribute("toDoID");
var ToDoItem = gICalLib.fetchToDo( todoId );
ToDoItem.priority = Priority;
var ToDoItem = gICalLib.fetchTodo( todoId );
ToDoItem.percent = Progress;
if( Progress == 0 )
{
ToDoItem.completed.clear();
ToDoItem.status = ToDoItem.ICAL_STATUS_NEEDSACTION;
}
else if( Progress > 0 && Progress < 100 )
{
ToDoItem.completed.clear();
ToDoItem.status = ToDoItem.ICAL_STATUS_INPROCESS;
}
if( Progress == 100 )
{
var completedDate = new Date();
ToDoItem.completed.year = completedDate.getYear() + 1900;
ToDoItem.completed.month = completedDate.getMonth();
ToDoItem.completed.day = completedDate.getDate();
ToDoItem.status = ToDoItem.ICAL_STATUS_COMPLETED;
}
gICalLib.modifyTodo( ToDoItem );
}
}
}
function contextChangePriority( Priority, event )
function contextChangePriority( event, Priority )
{
var tree = document.getElementById( ToDoUnifinderTreeName );
if (tree.treeBoxObject.selection.count > 0)
{
var treeitem = tree.treeBoxObject.view.getItemAtIndex( tree.currentIndex );
if(treeitem)
{
var todoId = treeitem.getAttribute("toDoID");
var ToDoItem = gICalLib.fetchToDo( todoId );
var ToDoItem = gICalLib.fetchTodo( todoId );
ToDoItem.priority = Priority;
gICalLib.modifyTodo( ToDoItem );
}

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

@ -95,6 +95,7 @@
<!ENTITY newevent.recurrence.tab.label "Recurrence" >
<!ENTITY newevent.contacts.tab.label "Contacts" >
<!ENTITY newevent.files.tab.label "Files" >
<!ENTITY newevent.cancelled.label "Cancelled" >
<!ENTITY newtodo.completed.label "Completed">
<!ENTITY newtodo.duedate.label "Due Date">