From: Stéphane Jacob Date: Mon, 7 Jun 2010 16:17:12 +0000 (+0200) Subject: Improves sector related JS in profile edition. X-Git-Tag: xorg/1.0.0~153 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=4018b8ab5800ac3cdeb61d9d78b68e932e553f53;p=platal.git Improves sector related JS in profile edition. Signed-off-by: Stéphane Jacob --- diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index 4b215f6..3277589 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -499,6 +499,16 @@ function updateJobAlternates(id) } } +function emptyJobSubSector(id) +{ + Ajax.update_html('job_' + id + '_subSubSector', 'profile/ajax/sub_sector/' + id + '/-1/-1'); +} + +function emptyJobAlternates(id) +{ + Ajax.update_html('job_' + id + '_alternates', 'profile/ajax/alternates/' + id + '/-1'); +} + function displayAllSector(id) { $('.sector_text_' + id).remove(); diff --git a/templates/profile/jobs.job.tpl b/templates/profile/jobs.job.tpl index 2d29790..ec4008f 100644 --- a/templates/profile/jobs.job.tpl +++ b/templates/profile/jobs.job.tpl @@ -126,7 +126,7 @@ Secteur d'activité - {foreach from=$sectors item=item} {iterate from=$subSectors item=subSector} {if $subSector.optgroup}