projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UI for per-city taxes (setup and assigning to customers/package locations), RT#5852
[freeside.git]
/
httemplate
/
elements
/
tr-select-cust_location.html
diff --git
a/httemplate/elements/tr-select-cust_location.html
b/httemplate/elements/tr-select-cust_location.html
index
1c0891b
..
ab043ee
100644
(file)
--- a/
httemplate/elements/tr-select-cust_location.html
+++ b/
httemplate/elements/tr-select-cust_location.html
@@
-21,7
+21,7
@@
Example:
var locationnum = what.options[what.selectedIndex].value;
if ( locationnum == -1 ) {
var locationnum = what.options[what.selectedIndex].value;
if ( locationnum == -1 ) {
-% for (@location_fields) {
+% for (@location_fields
, 'city_select'
) {
what.form.<%$_%>.disabled = false;
what.form.<%$_%>.style.backgroundColor = '#ffffff';
% }
what.form.<%$_%>.disabled = false;
what.form.<%$_%>.style.backgroundColor = '#ffffff';
% }
@@
-60,7
+60,7
@@
Example:
}
%#sleep/wait until dropdowns are updated?
}
%#sleep/wait until dropdowns are updated?
-% for (@location_fields) {
+% for (@location_fields
, 'city_select'
) {
what.form.<%$_%>.disabled = true;
what.form.<%$_%>.style.backgroundColor = '#dddddd';
% }
what.form.<%$_%>.disabled = true;
what.form.<%$_%>.style.backgroundColor = '#dddddd';
% }
@@
-85,6
+85,7
@@
Example:
} else {
county_el.selectedIndex = 0;
}
} else {
county_el.selectedIndex = 0;
}
+ county_changed(county_el);
}
return fix_county;
}
}
return fix_county;
}
@@
-171,7
+172,7
@@
if ( $locationnum && $locationnum != -1 ) {
if ( $locationnum == -1 ) {
$cust_location->$_( $cgi->param($_) ) foreach @location_fields;
} else {
if ( $locationnum == -1 ) {
$cust_location->$_( $cgi->param($_) ) foreach @location_fields;
} else {
- $cust_location->$_( $cust_main->get($prefix.$_) foreach @location_fields;
+ $cust_location->$_( $cust_main->get($prefix.$_)
)
foreach @location_fields;
}
}
}
}