diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-01-07 14:30:15 -0800 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-01-07 14:30:15 -0800 |
| commit | ceeaad3d99869f159bf2fee490aafa4c95d03365 (patch) | |
| tree | e5026eeb4204e34fe0b49fe57e0d9412a594b397 /httemplate/elements/select-country.html | |
| parent | 7a577311abdb174c4a5b52bd5f0d751931097efd (diff) | |
add city search, RT#31659
Diffstat (limited to 'httemplate/elements/select-country.html')
| -rw-r--r-- | httemplate/elements/select-country.html | 4 |
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 ) { |
