Commit f48a5cc
Changed files (3)
app
assets
javascripts
views
views
profiles
app/assets/javascripts/views/home_gym.js.coffee
@@ -51,7 +51,7 @@ Stronglifters.HomeGym = Ractive.extend
"/gyms?#{params.join("&")}"
closeModal: ->
- $('#homeGymModal').foundation('reveal', 'close')
+ $('#homeGymModal').foundation('close')
enableSearchButton: ->
@set('search.button.disabled': false)
app/views/profiles/_home_gym_modal.html.erb
@@ -1,6 +1,8 @@
-<div id="<%= id %>" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog">
+<div id="<%= id %>" class="reveal" data-reveal>
<h2 id="modalTitle"><%= t('.title') %></h2>
<p class="lead"><%= t('.lead') %></p>
<div id="gym-search"></div>
- <a class="close-reveal-modal" aria-label="Close">×</a>
+ <button class="close-button" data-close aria-label="Close modal" type="button">
+ <span aria-hidden="true">×</span>
+ </button>
</div>
app/views/profiles/edit.html.erb
@@ -25,7 +25,7 @@
<legend><%= Profile.human_attribute_name(:home_gym) %></legend>
<p id="home-gym-name"><%= @profile.gym.try(:name) %></p>
<%= f.hidden_field(:gym_id) %>
- <a href="#" data-reveal-id="homeGymModal"><%= t('.choose_home_gym') %></a>
+ <a data-open="homeGymModal"><%= t('.choose_home_gym') %></a>
</fieldset>
<%= f.submit t(".save"), class: "button" %>
<% end %>