From 948a6de9b325e02eaaab8781c210cf5198409388 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 10 Sep 2010 11:48:59 +0200 Subject: [PATCH] Fixes autocomplete on first empty entreprise (Closes #1232). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- htdocs/javascript/profile.js | 3 +++ 1 file changed, 3 insertions(+) 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; } } -- 2.1.4