From 4018b8ab5800ac3cdeb61d9d78b68e932e553f53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 7 Jun 2010 18:17:12 +0200 Subject: [PATCH] Improves sector related JS in profile edition. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- htdocs/javascript/profile.js | 10 ++++++++++ templates/profile/jobs.job.tpl | 2 +- templates/profile/jobs.sector.tpl | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) 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} -- 2.1.4