diff --git a/app/views/shop/_modals.html.haml b/app/views/shop/_modals.html.haml index ea21914397..3d07c6f4e7 100644 --- a/app/views/shop/_modals.html.haml +++ b/app/views/shop/_modals.html.haml @@ -1,5 +1,5 @@ - for producer in current_producers - .reveal-modal{id: "producer_details_#{producer.id}"} + .reveal-modal{id: "producer_details_#{producer.id}", "data-reveal" => ""} .row - if producer.logo.exists? .large-1.columns @@ -20,7 +20,7 @@ - for group in current_distributor.groups - for sibling in group.enterprises.except(current_distributor) - .reveal-modal{id: "sibling_details_#{sibling.id}"} + .reveal-modal{id: "sibling_details_#{sibling.id}", "data-reveal" => ""} .row - if sibling.logo.exists? .large-1.columns diff --git a/app/views/shop/shop/_groups.html.haml b/app/views/shop/shop/_groups.html.haml index 6a0f6ff290..a218d6aeb5 100644 --- a/app/views/shop/shop/_groups.html.haml +++ b/app/views/shop/shop/_groups.html.haml @@ -6,5 +6,5 @@ %ul - for sibling in group.enterprises.except(current_distributor) %li - %a{"data-reveal-id" => "sibling_details_#{sibling.id}"} + %a{"data-reveal-id" => "sibling_details_#{sibling.id}", "data-reveal" => ""} = sibling.name diff --git a/app/views/shop/shop/_producers.html.haml b/app/views/shop/shop/_producers.html.haml index 1b22361a14..32f09869e8 100644 --- a/app/views/shop/shop/_producers.html.haml +++ b/app/views/shop/shop/_producers.html.haml @@ -2,5 +2,5 @@ %ul - for producer in current_producers %li - %a{"data-reveal-id" => "producer_details_#{producer.id}"} + %a{"data-reveal-id" => "producer_details_#{producer.id}", "data-reveal" => ""} = producer.name diff --git a/app/views/shop/shop/_products.html.haml b/app/views/shop/shop/_products.html.haml index 36193467e0..5503db2079 100644 --- a/app/views/shop/shop/_products.html.haml +++ b/app/views/shop/shop/_products.html.haml @@ -19,7 +19,7 @@ %div %h5 {{ product.name }} - %a{"data-reveal-id" => "producer_details_{{product.supplier.id}}"} + %a{"data-reveal-id" => "producer_details_{{product.supplier.id}}", "data-reveal" => ""} {{ product.supplier.name }} %td.notes {{ product.notes | truncate:80 }} %td