From f3b2736f8ff5f5ea3af03ff532dfc2a060a81359 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 8 Mar 2009 22:48:26 +0100 Subject: [PATCH] Fixes sector autocomplete on job edition interface. --- htdocs/javascript/profile.js | 6 +++--- modules/search.php | 2 +- templates/profile/jobs.job.tpl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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"} -- 2.1.4