X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=htdocs%2Fjavascript%2Fprofile.js;h=5c255804a7895eb3289c9831c7ad76600043cc12;hb=5e35e81b42eef42eba4ef31e4ffc771bb5d8f2f2;hp=d59a36515c8f25c127c65d3d346b2df934dce221;hpb=ebd515f95f03f8a87f9b846d65e179b39a535222;p=platal.git diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index d59a365..5c25580 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -405,7 +405,7 @@ function updateCountry() { var val = document.forms.prof_annu.countries_sel.value; var show = true; - if (val == '') { + if (val == '' || val == '00') { show = false; } if (document.getElementById('countries_' + val) != null) { @@ -420,11 +420,11 @@ function addCountry() var val = cb.value; var text = cb.options[cb.selectedIndex].text; var html = '
' - + '
' + text + '
' - + ' ' - + ' ' + + ' ' + ' ' + ' ' + + '
' + text + '
' + + ' ' + '
'; $('#countries').append(html); updateCountry(); @@ -454,6 +454,8 @@ function updateSecteur() var secteur = document.forms.prof_annu.secteur_sel.value; if (secteur == '') { secteur = '-1'; + document.getElementById('ss_secteur_sel').innerHTML = ''; + return; } $.get(platal_baseurl + 'profile/ajax/secteur/-1/' + secteur, function(data) {