From: Stéphane Jacob Date: Sun, 8 Mar 2009 21:48:26 +0000 (+0100) Subject: Fixes sector autocomplete on job edition interface. X-Git-Tag: xorg/1.0.0~332^2~341^2~3 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f3b2736f8ff5f5ea3af03ff532dfc2a060a81359;p=platal.git Fixes sector autocomplete on job edition interface. --- diff --git a/htdocs/javascript/profile.js b/htdocs/javascript/profile.js index 0472f59..f578d44 100644 --- a/htdocs/javascript/profile.js +++ b/htdocs/javascript/profile.js @@ -589,7 +589,7 @@ function addSector() function registerEnterpriseAutocomplete(id) { - $(".enterprise_name").each( + $(".enterpriseName").each( function() { if (id == -1 || this.name == "jobs[" + id + "][name]") { $(this).autocomplete(platal_baseurl + "search/autocomplete/entreprise", @@ -602,9 +602,9 @@ function registerEnterpriseAutocomplete(id) } }); - $(".sector_name").each( + $(".sectorName").each( function() { - if (id == -1 || this.name == "jobs[" + id + "][subSubSector]") { + if (id == -1 || this.name == "jobs[" + id + "][subSubSectorName]") { $(this).autocomplete(platal_baseurl + "search/autocomplete/subSubSector", { selectOnly:1, diff --git a/modules/search.php b/modules/search.php index d7188ef..27be9cc 100644 --- a/modules/search.php +++ b/modules/search.php @@ -340,7 +340,7 @@ class SearchModule extends PLModule $unique = 'uid'; $beginwith = false; break; - case 'sss_secteur': + case 'subSubSector': $db = 'profile_job_subsubsector_enum'; $field = 'name'; $beginwith = false; diff --git a/templates/profile/jobs.job.tpl b/templates/profile/jobs.job.tpl index f3ca438..3077711 100644 --- a/templates/profile/jobs.job.tpl +++ b/templates/profile/jobs.job.tpl @@ -46,7 +46,7 @@ Entreprise n°{$i+1} : {if $job.tmp_name}{$job.tmp_name} (en cours de validation){else} - {/if} @@ -115,7 +115,7 @@ Secteur d'activité - {icon name="table" title="Tous les secteurs"}