projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more RT integration / reskin / 2.1, RT#6640
[freeside.git]
/
httemplate
/
elements
/
city.html
diff --git
a/httemplate/elements/city.html
b/httemplate/elements/city.html
index
1659ebf
..
61d0578
100644
(file)
--- a/
httemplate/elements/city.html
+++ b/
httemplate/elements/city.html
@@
-34,7
+34,7
@@
Example:
what.options[length] = optionName;
}
what.options[length] = optionName;
}
- var saved_<%$pre%>city= '';
+ var saved_<%$pre%>city= '
<% $saved_city |h %>
';
function <% $pre %>county_changed(what, callback) {
function <% $pre %>county_changed(what, callback) {
@@
-61,6
+61,7
@@
Example:
if ( citiesArray.length > 1 || citiesArray[0].length ) {
// turn off the text city, turn on the select
saved_<%$pre%>city = what.form.<%$ pre %>city.value;
if ( citiesArray.length > 1 || citiesArray[0].length ) {
// turn off the text city, turn on the select
saved_<%$pre%>city = what.form.<%$ pre %>city.value;
+ <%$pre%>city_select_changed(what.form.<% $pre %>city_select);
what.form.<% $pre %>city.style.display = 'none';
what.form.<% $pre %>city_select.style.display = '';
} else {
what.form.<% $pre %>city.style.display = 'none';
what.form.<% $pre %>city_select.style.display = '';
} else {
@@
-123,10
+124,12
@@
my $text_style = $opt{'style'} ? [ @{ $opt{'style'} } ] : [];
my $select_style = $opt{'style'} ? [ @{ $opt{'style'} } ] : [];
my @cities = cities( $opt{'county'}, $opt{'state'}, $opt{'country'} );
my $select_style = $opt{'style'} ? [ @{ $opt{'style'} } ] : [];
my @cities = cities( $opt{'county'}, $opt{'state'}, $opt{'country'} );
+my $saved_city = '';
if ( scalar(@cities) > 1 || $cities[0] ) {
push @$text_style, 'display:none';
} else {
push @$select_style, 'display:none';
if ( scalar(@cities) > 1 || $cities[0] ) {
push @$text_style, 'display:none';
} else {
push @$select_style, 'display:none';
+ $saved_city = $opt{'city'};
}
$text_style =
}
$text_style =