rem:  var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile); file.initWithPath(e.target.parentNode.getAttribute("path"));  if (!file.isDirectory()) { textInput = document.getElementById("textInput"); textInput.value = file.leafName; lastClicked = file.leafName; }  if (e.detail == 2) { if (file.isDirectory()) { gotoDirectory(file.path); } else if (file.isFile()) { /* what about symlinks? what if they symlink to a directory? */ return doOKButton(); } } 
add: if (e.detail == 2) goIn(e.target.parentNode); 
context: function onClick(e) {  var file = Components.classes[nsILocalFile_PROGID].createInstance(nsILocalFile);  file.initWithPath(e.target.parentNode.getAttribute("path"));  if (!file.isDirectory()) {    textInput = document.getElementById("textInput");    textInput.value = file.leafName;    lastClicked = file.leafName;  }  if (e.detail == 2) {    if (file.isDirectory()) {      gotoDirectory(file.path);    }    else if (file.isFile()) {	/* what about symlinks? what if they symlink to a directory? */ 	return doOKButton();    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7efd011f87ac5389ef0e30f951f13c58d390d7a4/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js