Mercurial > hg > digilib
comparison xul/content/tree.js @ 199:49cb8a445126
restarting with version control of xul sidebar/toolbar
author | luginbue |
---|---|
date | Fri, 27 Feb 2004 11:24:53 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
198:c50e0e77d697 | 199:49cb8a445126 |
---|---|
1 function open_link() | |
2 { | |
3 var t=document.getElementById("menu_tree"); //baum in variable t holen | |
4 var l=t.view.getItemAtIndex(t.currentIndex); //aus baum treeitem herausholen mit dem selected index (currentIndex) | |
5 var d=l.firstChild.firstChild.getAttribute("link"); //aus treeitem treecell (mit firstChild.firstChild) und dann dort wert von id herausholen (mit getAttribute) | |
6 if (d!=""){ | |
7 //alert(d); | |
8 var isHera=d.search(/pythia2\.unibe\.ch/); | |
9 if (isHera!=-1){ | |
10 window.content.location.href=d; | |
11 }else{ | |
12 // window.content.location.href="http://hera.unibe.ch:8080/alcatraz/xul/"+d; | |
13 window.content.location.href="http://pythia2.unibe.ch:8080/docuserver/digitallibrary/"+d; | |
14 } | |
15 } | |
16 } |