Sha256: 6137af13b329b4481f217eea643fe7be77885666842e5748b3ee25292cd1a5bb

Contents?: true

Size: 445 Bytes

Versions: 4

Compression:

Stored size: 445 Bytes

Contents

<div class="location-suggestion">
  <%= I18n.t('muck.profiles.location_suggestion', :location => location) %>
  <a href="#" id="set_<%=field_id%>"><%=I18n.t('muck.profiles.click_to_set')%></a>
</div>
<% content_for :javascript do -%>
<script type="text/javascript">
jQuery(document).ready(function() {
	jQuery("#set_<%=field_id%>").click(function() {
		jQuery("#<%=field_id%>").val("<%=location%>");
		return false;
	});
});
</script>
<% end -%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
muck-profiles-3.1.5 app/views/profiles/_location_suggestion.erb
muck-profiles-3.1.4 app/views/profiles/_location_suggestion.erb
muck-profiles-3.1.3 app/views/profiles/_location_suggestion.erb
muck-profiles-3.1.2 app/views/profiles/_location_suggestion.erb