mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Adding in check if not event array is passed.
This commit is contained in:
parent
d02273ea58
commit
d11ad10577
@ -181,6 +181,7 @@ function unifinderClickToDo( event )
|
||||
|
||||
var tree = document.getElementById( ToDoUnifinderTreeName );
|
||||
var ThisToDo = getToDoFromEvent( event );
|
||||
|
||||
var row = new Object();
|
||||
var childElt = { };
|
||||
var colID = { };
|
||||
@ -194,6 +195,7 @@ function unifinderClickToDo( event )
|
||||
treeitem.removeAttribute( "checked" )
|
||||
else
|
||||
treeitem.setAttribute(" checked", true );
|
||||
|
||||
checkboxClick( ThisToDo, !isChecked )
|
||||
}
|
||||
}
|
||||
@ -409,6 +411,9 @@ function setUnifinderToDoTreeItem( treeItem, calendarToDo )
|
||||
|
||||
function refreshToDoTree( eventArray )
|
||||
{
|
||||
if( !eventArray )
|
||||
eventArray = gEventSource.getAllToDos();
|
||||
|
||||
// get the old tree children item and remove it
|
||||
|
||||
var tree = document.getElementById( ToDoUnifinderTreeName );
|
||||
|
Loading…
Reference in New Issue
Block a user