add event so clicking on the labelboxes focus the entry widget

This commit is contained in:
Frédéric Péters 2011-11-28 19:34:56 +01:00
parent b4b792781c
commit fa1bc7430d
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ function autocomplete_ready(event, data, formatted) {
function sync_elements(index, elem, url)
{
$(elem).parent().find('input').wrapAll('<div class="labelboxes">');
$('div.labelboxes').click(function() { $(this).find('input').focus(); });
hidden = $(elem).prev();
values = $(hidden).attr('value').trim().split(' ');
for (i=0; i < values.length; i++) {