Changeset 900 for trunk


Ignore:
Timestamp:
10/10/07 21:08:24 (12 years ago)
Author:
ray
Message:

removed tabs inserted in last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/InsertImage/insert_image.js

    r899 r900  
    4040Xinha.prototype._insertImage = function(image) 
    4141{ 
    42   var editor = this;    // for nested functions 
     42  var editor = this;  // for nested functions 
    4343  var outparam; 
    4444  if ( typeof image == "undefined" ) 
     
    6363  if ( image ) 
    6464  { 
    65         function getSpecifiedAttribute(element,attribute) 
     65    function getSpecifiedAttribute(element,attribute) 
    6666    { 
    6767      var a = element.attributes; 
    68           for (var i=0;i<a.length;i++) 
     68      for (var i=0;i<a.length;i++) 
    6969      { 
    7070        if (a[i].nodeName == attribute && a[i].specified) 
    71                 { 
    72                   return a[i].value; 
    73                 } 
     71        { 
     72          return a[i].value; 
     73        } 
    7474      } 
    75           return ''; 
    76         } 
    77         /* if you want to understand why the above function is required, uncomment the two lines below and launch InsertImage in both Mozilla & IE with an image selected that hath neither value set and compare the results 
    78         alert(image.vspace +' '+ image.getAttribute('vspace') + ' ' + image.getAttribute('vspace',2) + ' ' + getSpecifiedAttribute(image,'vspace') ); 
    79         alert(image.hspace +' '+ image.getAttribute('hspace') + ' ' + image.getAttribute('hspace',2) + ' ' + getSpecifiedAttribute(image,'hspace') ); 
    80         */ 
    81         outparam = 
     75      return ''; 
     76  } 
     77  /* if you want to understand why the above function is required, uncomment the two lines below and launch InsertImage in both Mozilla & IE with an image selected that hath neither value set and compare the results 
     78  alert(image.vspace +' '+ image.getAttribute('vspace') + ' ' + image.getAttribute('vspace',2) + ' ' + getSpecifiedAttribute(image,'vspace') ); 
     79    alert(image.hspace +' '+ image.getAttribute('hspace') + ' ' + image.getAttribute('hspace',2) + ' ' + getSpecifiedAttribute(image,'hspace') ); 
     80  */ 
     81  outparam = 
    8282    { 
    8383      f_base   : base, 
     
    9393  } 
    9494  else{ 
    95         outparam = 
    96         { 
     95    outparam = 
     96    { 
    9797      f_base   : base, 
    9898      f_url    : ""       
    99         }; 
     99    }; 
    100100  } 
    101101   
Note: See TracChangeset for help on using the changeset viewer.