Sha256: 9f440f47f5a808222bca9a4e2d9c7af49d6aeede1032385fa6dc87241cd8b76f
Contents?: true
Size: 479 Bytes
Versions: 5
Compression:
Stored size: 479 Bytes
Contents
= builder.string :property_name, div_class: 'col-md-7', class: 'property_autocomplete' = builder.hidden_field :property_id, class: 'property_id' = builder.string :value, div_class: 'col-md-7' :javascript $(function() { $('.property_autocomplete').autocomplete({ source: '#{admin_market_properties_path}', select: function(event, ui) { $(this).closest('.fields_container').find('.property_id').val(ui.item.id); } }); });
Version data entries
5 entries across 5 versions & 1 rubygems