remove inline JS
runlevel5 opened this issue · comments
Convert the inline JS onlick of wishlist/show.html.erb
to unobstrusive JS
<%= form_for :order, :url => populate_orders_url do |f| %>
<%= hidden_field_tag "variants[#{variant.id}]", 1, :size => 3 %>
<%= link_to t(:add_to_cart), '#', :onclick => "$(this).parent().submit(); return false;" %>
if this is still needed please let me know. You can also resubmit as a pull request. Trying to cleanup old issues.