summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-country.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-01-07 14:30:15 -0800
committerIvan Kohler <ivan@freeside.biz>2015-01-07 14:30:15 -0800
commitceeaad3d99869f159bf2fee490aafa4c95d03365 (patch)
treee5026eeb4204e34fe0b49fe57e0d9412a594b397 /httemplate/elements/select-country.html
parent7a577311abdb174c4a5b52bd5f0d751931097efd (diff)
add city search, RT#31659
Diffstat (limited to 'httemplate/elements/select-country.html')
-rw-r--r--httemplate/elements/select-country.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/httemplate/elements/select-country.html b/httemplate/elements/select-country.html
index 724afe318..f3d98767a 100644
--- a/httemplate/elements/select-country.html
+++ b/httemplate/elements/select-country.html
@@ -40,6 +40,8 @@ Example:
}
function <% $pre %>country_changed(what, callback) {
+
+ what.form.<% $pre %>state.disabled = 'disabled';
country = what.options[what.selectedIndex].value;
@@ -61,6 +63,8 @@ Example:
stateLabel = <% $opt{state_empty_label} || '(n/a)' |js_string %>;
opt(what.form.<% $pre %>state, statesArray[s], stateLabel);
}
+
+ what.form.<% $pre %>state.disabled = '';
//run the callback
if ( callback != null ) {