From 1095b510254f17f545756b87bef272de5fd199f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Sun, 2 Oct 2011 21:54:59 +0200 Subject: [PATCH] Small improvement on jobterms autocomplete. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- templates/profile/jobs.job.tpl | 3 +++ templates/profile/mentor.tpl | 3 +++ 2 files changed, 6 insertions(+) diff --git a/templates/profile/jobs.job.tpl b/templates/profile/jobs.job.tpl index fef99e9..dde72e9 100644 --- a/templates/profile/jobs.job.tpl +++ b/templates/profile/jobs.job.tpl @@ -146,6 +146,9 @@ source: $.plURL('profile/jobterms'), select: function(event, ui) {ldelim} selectJobTerm(ui.item.id, ui.item.value, {$i}); + {rdelim}, + change: function(event, ui) {ldelim} + $(this).val(''); {rdelim} {rdelim}); {rdelim}); diff --git a/templates/profile/mentor.tpl b/templates/profile/mentor.tpl index 86d7e17..7430ddd 100644 --- a/templates/profile/mentor.tpl +++ b/templates/profile/mentor.tpl @@ -191,6 +191,9 @@ source: $.plURL('profile/jobterms'), select: function(event, ui) {ldelim} selectJobTerm(ui.item.id, ui.item.value, -1); + {rdelim}, + change: function(event, ui) {ldelim} + $(this).val(''); {rdelim} {rdelim}); {rdelim}); -- 2.1.4