comparison xul/content/annota.js @ 210:e1c302129599

The tree is sortable now.
author slarti
date Thu, 25 Mar 2004 19:58:12 +0100
parents 28e861dc3467
children
comparison
equal deleted inserted replaced
209:28e861dc3467 210:e1c302129599
85 85
86 } 86 }
87 87
88 function refreshTree(){ 88 function refreshTree(){
89 this.rdfTree = new RDFTree(this.TREE_ID); 89 this.rdfTree = new RDFTree(this.TREE_ID);
90 this.rdfTree.doSort('name');
90 this.rdfTree.rebuild(); 91 this.rdfTree.rebuild();
91 } 92 }
92 93
93 function getAttributeOfSelectedNode(attribute) { 94 function getAttributeOfSelectedNode(attribute) {
94 this.rdfTree = new RDFTree(this.TREE_ID); 95 this.rdfTree = new RDFTree(this.TREE_ID);
392 dataSource = new RDFDataSource('file://'+this.getProfileDirectory()+slash+'annotations.rdf'); 393 dataSource = new RDFDataSource('file://'+this.getProfileDirectory()+slash+'annotations.rdf');
393 394
394 this.createComplexRDFEntry(urn); 395 this.createComplexRDFEntry(urn);
395 dataSource.save(); 396 dataSource.save();
396 refreshTree(); 397 refreshTree();
398
397 } else{ 399 } else{
398 alert("Error: no alcatraz component. can't create an annotation."); 400 alert("Error: no alcatraz component. can't create an annotation.");
399 } 401 }
400 } 402 }
401 403