Fixes autocomplete on first empty entreprise (Closes #1232).
authorStéphane Jacob <sj@m4x.org>
Fri, 10 Sep 2010 09:48:59 +0000 (11:48 +0200)
committerStéphane Jacob <sj@m4x.org>
Fri, 10 Sep 2010 09:49:14 +0000 (11:49 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
htdocs/javascript/profile.js

index 6145692..121ba11 100644 (file)
@@ -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;
     }
 }