Changeset 2134

Show
Ignore:
Timestamp:
01/18/07 16:40:50
Author:
miyagawa
Message:

fix async bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • misc/unitconverter.cgi

    r2133 r2134  
    8080} 
    8181 
     82sub convert_feet_meter { convert_meter_inch(convert_feet_inch($_[0])) } 
     83sub convert_meter_feet { convert_inch_feet(convert_meter_inch($_[0])) } 
     84 
    8285sub convert_oz_pound { 
    8386    return $_[0] / 16; 
     
    9598    return $_[0] * 453.59237; 
    9699} 
     100 
     101sub convert_oz_g { convert_pound_g(convert_oz_pound($_[0])) } 
     102sub convert_g_oz { convert_pound_oz(convert_g_pound($_[0])) } 
    97103 
    98104sub convert_sqf_sqm { 
     
    159165<h2>Length</h2> 
    160166<p> 
    161 <input type="text" size="12" id="feet" onchange="doConvert('feet', 'inch', 'length');doConvert('inch', 'meter', 'length')" /> feet = 
     167<input type="text" size="12" id="feet" onchange="doConvert('feet', 'inch', 'length');doConvert('feet', 'meter', 'length')" /> feet = 
    162168<input type="text" size="12" id="inch" onchange="doConvert('inch', 'meter', 'length');doConvert('inch', 'feet', 'length')" /> inches = 
    163 <input type="text" size="12" id="meter" onchange="doConvert('meter', 'inch', 'length');doConvert('inch', 'feet', 'length')" /> meters 
     169<input type="text" size="12" id="meter" onchange="doConvert('meter', 'inch', 'length');doConvert('meter', 'feet', 'length')" /> meters 
    164170<span id="length-spinner"></span> 
    165171</p> 
     
    168174<p> 
    169175<input type="text" size="12" id="pound" onchange="doConvert('pound', 'oz', 'weight');doConvert('pound', 'g', 'weight')" /> pounds = 
    170 <input type="text" size="12" id="oz" onchange="doConvert('oz', 'pound', 'weight');doConvert('pound', 'g', 'weight')" /> oz = 
    171 <input type="text" size="12" id="g" onchange="doConvert('g', 'pound', 'weight');doConvert('pound', 'oz', 'weight')" /> g 
     176<input type="text" size="12" id="oz" onchange="doConvert('oz', 'pound', 'weight');doConvert('oz', 'g', 'weight')" /> oz = 
     177<input type="text" size="12" id="g" onchange="doConvert('g', 'pound', 'weight');doConvert('g', 'oz', 'weight')" /> g 
    172178<span id="weight-spinner"></span> 
    173179</p>