Ignore:
Timestamp:
02/24/07 15:47:57 (14 years ago)
Author:
ray
Message:

updated branch

Location:
branches/ray/plugins/Linker
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ray/plugins/Linker/dialog.html

    r761 r762  
    9999  </fieldset> 
    100100 
    101   <div style="text-align:right"> 
     101  <div class="buttons"> 
    102102    <input type="button" id="[ok]"     value="_(OK)"     /> 
    103     <input type="button" id="[clear]"  value="_(Remove Link)" onclick="this.form['[href]'].value='';this.form['[to]'].value='';document.getElementById('[ok]').click();" /> 
     103    <input type="button" id="[clear]" value="_(Remove Link)" onclick="this.form['[href]'].value='';this.form['[to]'].value='';document.getElementById('[ok]').click();" /> 
    104104    <input type="button" id="[cancel]" value="_(Cancel)" /> 
    105105  </div> 
  • branches/ray/plugins/Linker/linker.js

    r761 r762  
    366366 
    367367  // Now we have everything we need, so we can build the dialog. 
    368   var dialog = this.dialog = new Xinha.Dialog(linker.editor, this.html, 'Linker'); 
     368  var dialog = this.dialog = new Xinha.Dialog(linker.editor, this.html, 'Linker',{width:600,height:400}); 
    369369  var dTreeName = Xinha.uniq('dTree_'); 
    370370 
     
    379379  //ddTree.innerHTML = this.dTree.toString(); 
    380380  ddTree.innerHTML = ''; 
    381   ddTree.style.position = 'absolute'; 
    382   ddTree.style.left = 1 + 'px'; 
    383   ddTree.style.top =  0 + 'px'; 
     381//  ddTree.style.position = 'absolute'; 
     382//  ddTree.style.left = 1 + 'px'; 
     383 // ddTree.style.top =  0 + 'px'; 
    384384  ddTree.style.overflow = 'auto'; 
     385  ddTree.style.height = '300px'; 
     386  if ( Xinha.is_ie ) 
     387  { 
     388    ddTree.style.styleFloat = "left"; 
     389  } 
     390  else 
     391  { 
     392    ddTree.style.cssFloat = "left"; 
     393  } 
    385394  ddTree.style.backgroundColor = 'white'; 
    386395  this.ddTree = ddTree; 
     
    388397 
    389398  var options = this.dialog.getElementById('options'); 
    390   options.style.position = 'absolute'; 
    391   options.style.top      = 0   + 'px'; 
    392   options.style.right    = 0   + 'px'; 
     399  //options.style.position = 'absolute'; 
     400  //options.style.top      = 0   + 'px'; 
     401  //options.style.right    = 0   + 'px'; 
    393402  options.style.width    = 320 + 'px'; 
    394403  options.style.overflow = 'auto'; 
    395404 
    396405  // Hookup the resizer 
     406  this.dialog.rootElem.style.paddingBottom ="0"; 
    397407  this.dialog.onresize = function() 
    398408    { 
    399409      var h = parseInt(dialog.height) - dialog.getElementById('h1').offsetHeight; 
    400       var w = parseInt(dialog.width)  - 322 ; 
     410      var w = parseInt(dialog.width)  - 330 ; 
     411 
    401412      // An error is thrown with IE when trying to set a negative width or a negative height 
    402413      // But perhaps a width / height of 0 is not the minimum required we need to set 
    403414      if (w<0) w = 0; 
    404415      if (h<0) h = 0; 
    405       options.style.height = ddTree.style.height = h + 'px'; 
     416      //options.style.height = 
     417       ddTree.style.height = h + 'px'; 
    406418      ddTree.style.width  = w + 'px'; 
    407419    } 
    408  
    409420  this.ready = true; 
    410421}; 
Note: See TracChangeset for help on using the changeset viewer.