rem: Linker.Dialog.prototype._prepareDialog = function() { var lDialog = this; var linker = this.linker;     if(typeof dTree == 'undefined') { Xinha._loadback(_editor_url + 'plugins/Linker/dTree/dtree.js', function() {lDialog._prepareDialog(); } ); return; }  if(this.files == false) { if(linker.lConfig.backend) {  Xinha._postback(linker.lConfig.backend, linker.lConfig.backend_data, function(txt) { try { lDialog.files = eval(txt); } catch(Error) { lDialog.files = [ {url:'',title:Error.toString()} ]; } lDialog._prepareDialog(); }); } else if(linker.lConfig.files != null) {  lDialog.files = linker.lConfig.files; lDialog._prepareDialog(); } return; } var files = this.files;  if(this.html == false) { Xinha._getback(_editor_url + 'plugins/Linker/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); }); return; } var html = this.html;   var dialog = this.dialog = new Xinha.Dialog(linker.editor, this.html, 'Linker'); var dTreeName = Xinha.uniq('dTree_');  this.dTree = new dTree(dTreeName, _editor_url + 'plugins/Linker/dTree/'); eval(dTreeName + ' = this.dTree');  this.dTree.add(this.Dialog_nxtid++, -1, document.location.host, null, document.location.host); this.makeNodes(files, 0);   var ddTree = this.dialog.getElementById('dTree');  ddTree.innerHTML = ''; ddTree.style.position = 'absolute'; ddTree.style.left = 1 + 'px'; ddTree.style.top =  0 + 'px'; ddTree.style.overflow = 'auto'; this.ddTree = ddTree; this.dTree._linker_premade = this.dTree.toString();  var options = this.dialog.getElementById('options'); options.style.position = 'absolute'; options.style.top      = 0   + 'px'; options.style.right    = 0   + 'px'; options.style.width    = 320 + 'px'; options.style.overflow = 'auto';   this.dialog.onresize = function() { var h = parseInt(dialog.height) - dialog.getElementById('h1').offsetHeight; var w = parseInt(dialog.width)  - 322 ;   if (w<0) w = 0; if (h<0) h = 0; options.style.height = ddTree.style.height = h + 'px'; ddTree.style.width  = w + 'px'; }  this.ready = true; 
add: Linker.Dialog.prototype._prepareDialog=function(){ var _24=this; var _25=this.linker; if(typeof dTree=="undefined"){ Xinha._loadback(_editor_url+"plugins/Linker/dTree/dtree.js",function(){ _24._prepareDialog(); }); return; } if(this.files==false){ if(_25.lConfig.backend){ Xinha._postback(_25.lConfig.backend,_25.lConfig.backend_data,function(txt){ try{ _24.files=eval(txt); } catch(Error){ _24.files=[{url:"",title:Error.toString()}]; } _24._prepareDialog(); }); }else{ if(_25.lConfig.files!=null){ _24.files=_25.lConfig.files; _24._prepareDialog(); } } return; } var _27=this.files; if(this.html==false){ Xinha._getback(_editor_url+"plugins/Linker/dialog.html",function(txt){ _24.html=txt; _24._prepareDialog(); }); return; } var _29=this.html; var _2a=this.dialog=new Xinha.Dialog(_25.editor,this.html,"Linker"); var _2b=Xinha.uniq("dTree_"); this.dTree=new dTree(_2b,_editor_url+"plugins/Linker/dTree/"); eval(_2b+" = this.dTree"); this.dTree.add(this.Dialog_nxtid++,-1,_25.lConfig.treeCaption,null,_25.lConfig.treeCaption); this.makeNodes(_27,0); var _2c=this.dialog.getElementById("dTree"); _2c.innerHTML=""; _2c.style.position="absolute"; _2c.style.left=1+"px"; _2c.style.top=0+"px"; _2c.style.overflow="auto"; _2c.style.backgroundColor="white"; this.ddTree=_2c; this.dTree._linker_premade=this.dTree.toString(); var _2d=this.dialog.getElementById("options"); _2d.style.position="absolute"; _2d.style.top=0+"px"; _2d.style.right=0+"px"; _2d.style.width=320+"px"; _2d.style.overflow="auto"; this.dialog.onresize=function(){ var h=parseInt(_2a.height)-_2a.getElementById("h1").offsetHeight; var w=parseInt(_2a.width)-322; if(w<0){ w=0; } if(h<0){ h=0; } _2d.style.height=_2c.style.height=h+"px"; _2c.style.width=w+"px"; 
context: Linker.Dialog.prototype._prepareDialog = function(){  var lDialog = this;  var linker = this.linker;  // We load some stuff up int he background, recalling this function  // when they have loaded.  This is to keep the editor responsive while  // we prepare the dialog.  if(typeof dTree == 'undefined')  {    Xinha._loadback(_editor_url + 'plugins/Linker/dTree/dtree.js',                       function() {lDialog._prepareDialog(); }                      );    return;  }  if(this.files == false)  {    if(linker.lConfig.backend)    {        //get files from backend        Xinha._postback(linker.lConfig.backend,                          linker.lConfig.backend_data,                          function(txt) {                            try {                                lDialog.files = eval(txt);                            } catch(Error) {                                lDialog.files = [ {url:'',title:Error.toString()} ];                            }                            lDialog._prepareDialog(); });    }    else if(linker.lConfig.files != null)    {        //get files from plugin-config        lDialog.files = linker.lConfig.files;        lDialog._prepareDialog();    }    return;  }  var files = this.files;  if(this.html == false)  {    Xinha._getback(_editor_url + 'plugins/Linker/dialog.html', function(txt) { lDialog.html = txt; lDialog._prepareDialog(); });    return;  }  var html = this.html;  // Now we have everything we need, so we can build the dialog.  var dialog = this.dialog = new Xinha.Dialog(linker.editor, this.html, 'Linker');  var dTreeName = Xinha.uniq('dTree_');  this.dTree = new dTree(dTreeName, _editor_url + 'plugins/Linker/dTree/');  eval(dTreeName + ' = this.dTree');  this.dTree.add(this.Dialog_nxtid++, -1, document.location.host, null, document.location.host);  this.makeNodes(files, 0);  // Put it in  var ddTree = this.dialog.getElementById('dTree');  //ddTree.innerHTML = this.dTree.toString();  ddTree.innerHTML = '';  ddTree.style.position = 'absolute';  ddTree.style.left = 1 + 'px';  ddTree.style.top =  0 + 'px';  ddTree.style.overflow = 'auto';  this.ddTree = ddTree;  this.dTree._linker_premade = this.dTree.toString();  var options = this.dialog.getElementById('options');  options.style.position = 'absolute';  options.style.top      = 0   + 'px';  options.style.right    = 0   + 'px';  options.style.width    = 320 + 'px';  options.style.overflow = 'auto';  // Hookup the resizer  this.dialog.onresize = function()    {      var h = parseInt(dialog.height) - dialog.getElementById('h1').offsetHeight;      var w = parseInt(dialog.width)  - 322 ;      // An error is thrown with IE when trying to set a negative width or a negative height      // But perhaps a width / height of 0 is not the minimum required we need to set      if (w<0) w = 0;      if (h<0) h = 0;      options.style.height = ddTree.style.height = h + 'px';      ddTree.style.width  = w + 'px';    }  this.ready = true;};
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/linker.js/clean/packages/acs-templating/www/resources/xinha-nightly/plugins/Linker/linker.js