rem: if ((configname) && (configlocation)) { gPrefBranch.setCharPref("cck.config." + configname, configlocation); this.opener.setcurrentconfig(configname); if (window.name == 'copyconfig') { /* ---------- */ var destdir = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); destdir.initWithPath(configlocation);  this.opener.CCKWriteConfigFile(destdir); 
add: if (window.name == 'copyconfig') { var destdir = Components.classes["@mozilla.org/file/local;1"] .createInstance(Components.interfaces.nsILocalFile); destdir.initWithPath(configlocation); this.opener.CCKWriteConfigFile(destdir); } else { ClearAll(); } gPrefBranch.setCharPref("cck.config." + configname, configlocation); this.opener.setcurrentconfig(configname); 
context: function OnConfigOK(){  var configname = document.getElementById('cnc-name').value;  var configlocation = document.getElementById('cnc-location').value;  if ((configname) && (configlocation)) {    gPrefBranch.setCharPref("cck.config." + configname, configlocation);    this.opener.setcurrentconfig(configname);    if (window.name == 'copyconfig') {    /* ---------- */  var destdir = Components.classes["@mozilla.org/file/local;1"]                          .createInstance(Components.interfaces.nsILocalFile);  destdir.initWithPath(configlocation);    this.opener.CCKWriteConfigFile(destdir);    }  } else {    return false;  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/e9a51a32bc6f9b73a6ef72ef8ec7e8b46437de4c/cckwizard.js/clean/extensions/cck/browser/resources/content/cckwizard/cckwizard.js