X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fstandardize_locations.js;h=140ed70c62f2df4aa672b8af1c2d88b55fda2f29;hb=HEAD;hp=ecccd90f19dd59db8588b0ab3ba6f081b4170a83;hpb=3fc0a546caf38b444b63744726c5080ce5d9bbbb;p=freeside.git diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js index ecccd90f1..140ed70c6 100644 --- a/httemplate/elements/standardize_locations.js +++ b/httemplate/elements/standardize_locations.js @@ -94,7 +94,7 @@ function standardize_locations() { % } else { - post_standardization(); + confirm_manual_address(); % } # if address_standardize_method } @@ -207,8 +207,8 @@ function post_standardization() { prefix = 'bill_'; } - if ( new String(cf.elements[prefix + 'zip'].value).length < 10 ) - { +// if ( new String(cf.elements[prefix + 'zip'].value).length < 10 ) +// { var country_el = cf.elements[prefix + 'country']; var country = country_el.options[ country_el.selectedIndex ].value; @@ -238,12 +238,12 @@ function post_standardization() { } - } else { - - cf.elements[prefix + 'geocode'].value = ''; - <% $post_geocode %>; - - } +// } else { +// +// cf.elements[prefix + 'geocode'].value = ''; +// <% $post_geocode %>; +// +// } % } else { @@ -325,6 +325,12 @@ function set_censustract(tract, year) { var form = document.<% $formname %>; form.elements['censustract'].value = tract; form.elements['censusyear'].value = year; + + var enter = form.elements['enter_censustract']; + if ( enter ) { + enter.value = tract; + } + <% $post_censustract %>; }