From f146610a9342fe6ae8cfb37210934b2bb2c420db Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Tue, 17 Dec 2013 15:52:21 +1100 Subject: [PATCH] Fixing a recursion bug in Angular --- app/views/shop/_products.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/shop/_products.html.haml b/app/views/shop/_products.html.haml index e0945bf26e..9ab9b9d2cc 100644 --- a/app/views/shop/_products.html.haml +++ b/app/views/shop/_products.html.haml @@ -17,11 +17,11 @@ %td {{ product.description }} %td {{ product.master.options_text }} %td - %input{type: :number, id: "quantity_product_{{product.id}}"} + %input{type: :number, value: 0, id: "quantity_product_{{product.id}}"} %td.group_buy - %span{"ng-show" => "{enabled: product.group_buy}"} + %span{"ng-show" => "product.group_buy"} Available - %span{"ng-hide" => "{enabled: product.group_buy}"} + %span{"ng-hide" => "product.group_buy"} Not available %td.price %small from