Bug 313660 Fix for Javascript Strict Warning in unifinderToDo.js Patch by ssitter@googlemail.com, r=jminta

This commit is contained in:
jminta%gmail.com 2005-11-07 14:13:59 +00:00
Родитель d7ace6a10e
Коммит 2d7f9ba2e7
1 изменённых файлов: 8 добавлений и 8 удалений

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

@ -580,9 +580,9 @@ function contextChangeProgress( event, Progress )
startBatchTransaction();
for (var t = 0; t < numRanges; t++) {
tree.view.selection.getRangeAt(t, start, end);
for (v = start.value; v <= end.value; v++) {
todoItem = tree.taskView.getCalendarTaskAtRow( v );
var newItem = todoItem.clone().QueryInterface( Components.interfaces.calITodo );
for (var v = start.value; v <= end.value; v++) {
toDoItem = tree.taskView.getCalendarTaskAtRow( v );
var newItem = toDoItem.clone().QueryInterface( Components.interfaces.calITodo );
newItem.percentComplete = Progress;
switch (Progress) {
case 0:
@ -595,7 +595,7 @@ function contextChangeProgress( event, Progress )
newItem.status = "IN-PROCESS";
break;
}
doTransaction('modify', newItem, newItem.calendar, todoItem, null);
doTransaction('modify', newItem, newItem.calendar, toDoItem, null);
}
}
endBatchTransaction();
@ -613,11 +613,11 @@ function contextChangePriority( event, Priority )
startBatchTransaction();
for (var t = 0; t < numRanges; t++) {
tree.view.selection.getRangeAt(t, start, end);
for (v = start.value; v <= end.value; v++) {
todoItem = tree.taskView.getCalendarTaskAtRow( v );
var newItem = todoItem.clone().QueryInterface( Components.interfaces.calITodo );
for (var v = start.value; v <= end.value; v++) {
toDoItem = tree.taskView.getCalendarTaskAtRow( v );
var newItem = toDoItem.clone().QueryInterface( Components.interfaces.calITodo );
newItem.priority = Priority;
doTransaction('modify', newItem, newItem.calendar, todoItem, null);
doTransaction('modify', newItem, newItem.calendar, toDoItem, null);
}
}
endBatchTransaction();