cancel
Showing results for 
Search instead for 
Did you mean: 

[Partially Solved] Create 'Folder Up' button...

gasparirob
Champ in-the-making
Champ in-the-making
… to remount the spaces!

Is it possibile (without waste too much time)?
1 REPLY 1

gasparirob
Champ in-the-making
Champ in-the-making
I'v create a solution in JavaScript:

in breadcrumb.jsp locate the breadcrumb "tag" and assign it an id ('rigaBreadcrumb' for me)

now paste this function:


function folderUp() {
      r=document.getElementById('rigaBreadcrumb');
      com=r.childNodes[r.childNodes.length-4].onclick.toString();
      com=com.substr(com.indexOf('{')+2,com.length-1);
      com=com.substr(0,com.length-15);
      eval(com);
}


finally, create a button and call the folderUp() function in a onclick event

It works both IE and FF

If you have a different solution (without javascript), just give a whistle

EDIT:
a fix for the function above:


function folderUp() {
      r=document.getElementById('rigaBreadcrumb');
      com=r.childNodes[r.childNodes.length-2];
      com=com.previousSibling;
      com=com.previousSibling;   
      if (com!=null) {
         com=com.onclick.toString();
         com=com.substr(com.indexOf('{')+2,com.length-1);
         com=com.substr(0,com.length-15);
         eval(com);
      }
}

(fixes an error resulting when firing the function in 'Company Home' path)