From 09c441f662eee0dd8269d1f04be8e27c2ab4b75c Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Thu, 31 Oct 2019 23:42:48 +0100 Subject: [PATCH] Moved expand action from icon to TD --- app/views/ingredients/nutrients.html.erb | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/app/views/ingredients/nutrients.html.erb b/app/views/ingredients/nutrients.html.erb index 64a39ca..c8f1597 100644 --- a/app/views/ingredients/nutrients.html.erb +++ b/app/views/ingredients/nutrients.html.erb @@ -28,12 +28,8 @@ <% row_class = "ingredient#{' hidden' if i.hidden} #{cycle('odd', 'even')}" %> - - <%= link_to '', '#', { - onclick: "$(this).closest('tr').toggle(); $(this).closest('tr').nextUntil('tr.primary', 'tr').toggle(); return false;", - class: "icon icon-bullet-closed" - } %> - <%= i.name %> + + <%= i.name %> <% @primary_quantities.each do |q| %> @@ -43,12 +39,8 @@ - - <%= link_to '', '#', { - onclick: "$(this).closest('tr').prev('tr.primary').toggle(); $(this).closest('tr').prev('tr.primary').nextUntil('tr.primary', 'tr').toggle(); return false;", - class: "icon icon-bullet-open" - } %> - <%= i.name %> + + <%= i.name %> <% @primary_quantities.each do |q| %>