Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 52 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 57
1
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
1
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
2
 
2
 
3
function afficherSelection(aTreeChildrenId,aAttributeName,aTabBrowserId)
3
function afficherSelection(aTreeChildrenId,aAttributeName,aTabBrowserId)
4
{
4
{
5
	var uneUrl = donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName);
5
  var uneUrl = donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName);
6
	window.parent.frames[1].location.href=uneUrl;
6
  window.parent.frames[1].location.href=uneUrl;
7
}
7
}
8
 
8
 
9
 
9
 
10
function donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName)
10
function donnerAttributSelectionArbre(aTreeChildrenId,aAttributeName)
11
{
11
{
12
	var unArbre=document.getElementById(aTreeChildrenId);
12
  var unArbre=document.getElementById(aTreeChildrenId);
13
	var uneSelection = unArbre.contentView.getItemAtIndex(unArbre.currentIndex);
13
  var uneSelection = unArbre.contentView.getItemAtIndex(unArbre.currentIndex);
14
	
14
  
15
	var uneUrl;
15
  var uneUrl;
16
	if (uneSelection.firstChild.firstChild.hasAttribute(aAttributeName))
16
  if (uneSelection.firstChild.firstChild.hasAttribute(aAttributeName))
17
	{
17
  {
18
		uneUrl = uneSelection.firstChild.firstChild.getAttribute(aAttributeName);
18
    uneUrl = uneSelection.firstChild.firstChild.getAttribute(aAttributeName);
19
	}
19
  }
20
	
20
  
21
	return uneUrl;
21
  return uneUrl;
22
}
22
}
23
 
23
 
24
function compileSelection(listid)
24
function compileSelection(listid)
25
{
25
{
26
  window.parent.frames[1].location.href="eflore_traducteur.php?"+listid+"="+listid;
26
  window.parent.frames[1].location.href="eflore_traducteur.php?"+listid+"="+listid;
27
}
27
}