Deutschland United States United Kingdom
ContentLion - Open Source CMS

Blame breadcrumb.js

Rev 1 | Details | Compare with Previous | Last modification | View Log

Rev Author Line
1 user_6
var closeTimer  = null;
user_6
var folder          = null;
user_6
 
user_6
function openFolders(){
user_6
  cancelClosingFolders();
user_6
  if(folder){
user_6
    folder.style.visibility = 'hidden';
user_6
  }
user_6
  folder = document.getElementById('subfolders');
user_6
  folder.style.visibility = 'visible';
user_6
}
user_6
 
user_6
function closeFolders(){
user_6
  if(folder) folder.style.visibility = 'hidden';
user_6
}
user_6
 
user_6
function closeFoldersTime(){
user_6
  closeTimer = window.setTimeout(closeFolders, 500);
user_6
}
user_6
 
user_6
function cancelClosingFolders(){
user_6
  if(closeTimer){
user_6
    window.clearTimeout(closeTimer);
user_6
    closeTimer = null;
user_6
  }
user_6
}
user_6
 
user_6
document.onclick = closeFolders;