From 76a2858c4ce7e5fb5d09a189a645f3735072452c Mon Sep 17 00:00:00 2001 From: Pascal Corpet Date: Sun, 23 Mar 2008 22:29:25 +0100 Subject: [PATCH] clear subsector selector when sector is null --- htdocs/javascript/profile.js | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.1.4