view xul/content/tree.js @ 410:395db075906d

removed mark divs and images, they are added programmatically now; moved resetParameters() function to baselib.js; moved all initalization code to onload function; added "about" div with slots for version number display; added "overlay" div for better mousemove control (for "zoom area"); added "debug" div and script
author hertzhaft
date Tue, 13 Dec 2005 13:36:28 +0100
parents bf945fcf9105
children
line wrap: on
line source

function open_link()
{
var t=document.getElementById("menu_tree");    //baum in variable t holen
var l=t.view.getItemAtIndex(t.currentIndex);	        //aus baum treeitem herausholen mit dem selected index (currentIndex)
var d=l.firstChild.firstChild.getAttribute("link");       //aus treeitem treecell (mit firstChild.firstChild) und dann dort wert von id herausholen (mit getAttribute)
if (d!=""){
  //alert(d);
  var isHera=d.search(/pythia2\.unibe\.ch/);
  if (isHera!=-1){
     window.content.location.href=d;
  }else{
     // window.content.location.href="http://hera.unibe.ch:8080/alcatraz/xul/"+d;
     window.content.location.href="http://pythia2.unibe.ch:8080/docuserver/digitallibrary/"+d;
  }
}
}