From: Stéphane Jacob Date: Sun, 2 Oct 2011 19:54:59 +0000 (+0200) Subject: Small improvement on jobterms autocomplete. X-Git-Tag: xorg/1.1.4~104 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=1095b510254f17f545756b87bef272de5fd199f0;p=platal.git Small improvement on jobterms autocomplete. Signed-off-by: Stéphane Jacob --- 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});