X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fselect-county.html;h=6d498be0a6dc5e4e808d79e110384a4bfa777fa7;hb=4655e5f871306e9d3682974563fcb6c9656a9bd2;hp=59f235a233e86973e0f8c060f039f9af99fedb3e;hpb=20bddf47a41b6d064b3cfa4c41e55c157cf0c3de;p=freeside.git diff --git a/httemplate/elements/select-county.html b/httemplate/elements/select-county.html index 59f235a23..6d498be0a 100644 --- a/httemplate/elements/select-county.html +++ b/httemplate/elements/select-county.html @@ -58,15 +58,20 @@ Example: if ( countiesArray.length > 1 ) { what.form.<% $pre %>county.style.display = ''; - countyFormLabel.style.visibility = 'visible'; + //countyFormLabel.style.visibility = 'visible'; + countyFormLabel.style.display = ''; } else { what.form.<% $pre %>county.style.display = 'none'; - countyFormLabel.style.visibility = 'hidden'; + //countyFormLabel.style.visibility = 'hidden'; + countyFormLabel.style.display = 'none'; } //run the callback - if ( callback != null ) + if ( callback != null ) { callback(); + } else { + <% $pre %>county_changed(what.form.<% $pre %>county); + } } // go get the new counties @@ -78,7 +83,7 @@ Example: