From: Stéphane Jacob Date: Fri, 10 Sep 2010 09:48:59 +0000 (+0200) Subject: Fixes autocomplete on first empty entreprise (Closes #1232). X-Git-Tag: xorg/1.0.1~213 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=948a6de9b325e02eaaab8781c210cf5198409388;p=platal.git Fixes autocomplete on first empty entreprise (Closes #1232). Signed-off-by: Stéphane Jacob --- diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index 6145692..121ba11 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -50,6 +50,9 @@ function wizPage_onLoad(id) updateJobSubSector(i, $('#job_' + i).find("[name='jobs[" + i + "][subSubSector]']").val()); updateJobAlternates(i); } + if ($('#job_0').find("[name='jobs[0][name]']").val() == '') { + $.get(platal_baseurl + 'profile/ajax/job/0', makeAddJob(0)); + } break; } }