Commit a519838
Changed files (2)
app
assets
javascripts
views
views
profiles
app/assets/javascripts/views/home_gym.js.coffee
@@ -1,7 +1,7 @@
Stronglifters.HomeGym = Ractive.extend
template: RactiveTemplates["templates/home_gym"]
data:
- city: 'Calgary'
+ city: ''
gyms: []
search:
button:
app/views/profiles/edit.html.erb
@@ -35,5 +35,5 @@
<%= render partial: "home_gym_modal", locals: { id: 'homeGymModal' } %>
<script type="text/javascript" charset="utf-8">
- new Stronglifters.HomeGym({ el: 'gym-search' })
+new Stronglifters.HomeGym({ el: 'gym-search', data: { city: '<%= current_session.location.try(:city) %>'} })
</script>