Fixing a scoping issue

This commit is contained in:
Will Marshall
2014-04-08 15:10:30 +10:00
parent 8495c13063
commit ffb21cfc49
3 changed files with 6 additions and 5 deletions

View File

@@ -4,6 +4,8 @@ Darkswarm.controller "CheckoutCtrl", ($scope, Order, storage) ->
storage.bind $scope, "user", { defaultValue: true}
$scope.disable = ->
$scope.user = false
$scope.details = true
console.log $scope.details
storage.bind $scope, "details"
storage.bind $scope, "billing"

View File

@@ -1,13 +1,12 @@
%fieldset{"ng-controller" => "CheckoutCtrl"}
%fieldset
%accordion-group{heading: "User", "is-open" => "user"}
.row
.large-12.columns
.div{"ng-controller" => "AuthenticationActionsCtrl"}
.span{"ng-controller" => "AuthenticationActionsCtrl"}
%button{"ng-click" => "toggle('/login')"} Login
%button{"ng-click" => "toggle('/signup')"} Signup
%button{"ng-click" => "disable()"} Checkout as guest
-#%section#checkout_login
-#.large-6.columns
-#= render partial: "shop/checkout/login"

View File

@@ -6,8 +6,8 @@
= render partial: "shop/details"
%checkout{"ng-controller" => "CheckoutCtrl"}
%accordion.row{"close-others" => "false"}
%accordion.row{"close-others" => "false"}
%checkout{"ng-controller" => "CheckoutCtrl"}
.large-9.columns
- unless spree_current_user
= render partial: "shop/checkout/authentication"