projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only uses autoload to require validation classes.
[platal.git]
/
htdocs
/
javascript
/
profile.js
diff --git
a/htdocs/javascript/profile.js
b/htdocs/javascript/profile.js
index
a24a83b
..
75b5b8d
100644
(file)
--- a/
htdocs/javascript/profile.js
+++ b/
htdocs/javascript/profile.js
@@
-323,14
+323,15
@@
function addressChanged(prefid)
function validGeoloc(prefid, id, geoloc)
{
if (geoloc == 1) {
function validGeoloc(prefid, id, geoloc)
{
if (geoloc == 1) {
- $('#' + prefid + '_cont').find('[name*=text]').val($('#' + prefid + '_cont').find('[name*=geo
loc
]').val());
+ $('#' + prefid + '_cont').find('[name*=text]').val($('#' + prefid + '_cont').find('[name*=geo
codedText
]').val());
$('#' + prefid + '_cont').find('[name*=postalText]').val($('#' + prefid + '_cont').find('[name*=geocodedPostalText]').val());
}
if (geoloc > 0) {
$('#' + prefid + '_cont').find('[name*=postalText]').val($('#' + prefid + '_cont').find('[name*=geocodedPostalText]').val());
}
if (geoloc > 0) {
- $('#' + prefid + '_cont').find("[name*='[geoloc]']").remove();
+ $('#' + prefid + '_cont').find("[name*='[geocodedText]']").remove();
+ $('#' + prefid + '_cont').find("[name*='[geocodedPostalText]']").remove();
}
$('#' + prefid + '_cont').find('[name*=text]').removeClass('error');
}
$('#' + prefid + '_cont').find('[name*=text]').removeClass('error');
- $('#' + prefid + '_cont').find('[name*=geo
loc_choice
]').val(geoloc);
+ $('#' + prefid + '_cont').find('[name*=geo
codeChosen
]').val(geoloc);
$('.' + prefid + '_geoloc').remove();
}
$('.' + prefid + '_geoloc').remove();
}