[Zope-CVS] CVS: Packages/MoZTop/moztop/content/zopetop/StatusBar - TaskManager.js:1.3
Stephan Richter
srichter@cbu.edu
Thu, 9 Jan 2003 05:44:49 -0500
Update of /cvs-repository/Packages/MoZTop/moztop/content/zopetop/StatusBar
In directory cvs.zope.org:/tmp/cvs-serv10008/content/StatusBar
Modified Files:
TaskManager.js
Log Message:
Now I at least get to the RDFResource of the selected items for deletion.
=== Packages/MoZTop/moztop/content/zopetop/StatusBar/TaskManager.js 1.2 => 1.3 ===
--- Packages/MoZTop/moztop/content/zopetop/StatusBar/TaskManager.js:1.2 Thu Jan 9 01:18:54 2003
+++ Packages/MoZTop/moztop/content/zopetop/StatusBar/TaskManager.js Thu Jan 9 05:44:44 2003
@@ -62,13 +62,18 @@
var tree = document.getElementById("tasks-tree");
var start = new Object();
var end = new Object();
+ var source = new Object();
var numRanges = tree.view.selection.getRangeCount();
for (var t=0; t<numRanges; t++){
- tree.view.selection.getRangeAt(t,start,end);
- for (var v=start.value; v<=end.value; v++){
- alert("Item "+v+" is selected.");
- }
+ tree.view.selection.getRangeAt(t,start,end);
+ for (var v=start.value; v<=end.value; v++){
+ var builder = tree.builder.QueryInterface(
+ Components.interfaces.nsIXULTreeBuilder)
+ source = builder.getResourceAtIndex(v)
+ // XXX insert resource removal code here!!!
+ alert("Item "+v+" is selected.");
+ }
}
}