rem:  Xinha._postback(linker.lConfig.backend, linker.lConfig.backend_data, 
add: if(linker.lConfig.backend_data != null) { linker.lConfig.backend += (linker.lConfig.backend.indexOf("?") != -1) ? "&" : "?"; var param = []; for ( var i in linker.lConfig.backend_data ) { param.push(i + '=' + encodeURIComponent(linker.lConfig.backend_data[i])); } linker.lConfig.backend += param.join("&"); }   Xinha._getback(linker.lConfig.backend, 
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, linker.lConfig.treeCaption , null, linker.lConfig.treeCaption);  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';  ddTree.style.backgroundColor = 'white';  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: 6464	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6464/42668192567cde7b24192953e79ff89fd353200b/linker.js/buggy/web/imcms/xinha/plugins/Linker/linker.js