Bug 231499 Cookie manager could only delete contiguous selections r=dwitte sr=darin

git-svn-id: svn://10.0.0.236/trunk@204861 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2006-07-27 14:58:00 +00:00
parent 6ddd457677
commit 730084c7e3

View File

@@ -43,6 +43,9 @@ function DeleteAllFromTree
function DeleteSelectedItemFromTree
(tree, view, table, deletedTable, removeButton, removeAllButton) {
// Turn off tree selection notifications during the deletion
tree.treeBoxObject.view.selection.selectEventsSuppressed = true;
// remove selected items from list (by setting them to null) and place in deleted list
var selections = GetTreeSelections(tree);
for (var s=selections.length-1; s>= 0; s--) {
@@ -79,6 +82,8 @@ function DeleteSelectedItemFromTree
document.getElementById(removeAllButton).setAttribute("disabled","true");
}
tree.treeBoxObject.view.selection.selectEventsSuppressed = false;
}
function GetTreeSelections(tree) {