Sha256: d2eb9b2aa1521ccc788d8caa455ea1c8dbb1522f125a279512fe9097733e3386
Contents?: true
Size: 526 Bytes
Versions: 17
Compression:
Stored size: 526 Bytes
Contents
$(document).on 'turbolinks:load', -> $('.ui-autocomplete-input').each -> element = $(this) target = $(this).attr('data-source-url') element.autocomplete source: target minLength: 2 html: true open: (event, ui) -> $('.ui-autocomplete').css 'z-index', 1000 return create: -> $(this).data('ui-autocomplete')._renderItem = (ul, item) -> $("<li>").append("<span>" + item.title + "<br><small>" + item.subtitle + "</small></span>").appendTo ul return
Version data entries
17 entries across 17 versions & 1 rubygems