X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=htdocs%2Fjavascript%2Fprofile.js;h=5c255804a7895eb3289c9831c7ad76600043cc12;hb=5a5d0431dc41c6eb1adf10c134331d8f44c91277;hp=91e4f7866e483c8ce22005c24ee8582522ae77a2;hpb=1d414e12fd8ddf417ab3292ea79ed56b0bde57d3;p=platal.git diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index 91e4f78..5c25580 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -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) {