app/assets/javascripts/lolita/menu/autocomplete-rails.js in lolita-menu-0.3.5 vs app/assets/javascripts/lolita/menu/autocomplete-rails.js in lolita-menu-0.3.6
- old
+ new
@@ -79,10 +79,9 @@
terms.pop();
// add the selected item
terms.push( ui.item.value );
// add placeholder to get the comma-and-space at the end
if (e.delimiter != null) {
- terms.push( "" );
this.value = terms.join( e.delimiter );
} else {
this.value = terms.join("");
if ($(this).attr('id_element')) {
$($(this).attr('id_element')).val(ui.item.id);