Improve all the syntax

This commit is contained in:
Rohan Mitchell
2014-11-06 12:44:57 +11:00
parent 51e768e722
commit e8e5f7033c
2 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ Darkswarm.controller "CheckoutCtrl", ($scope, storage, Checkout, CurrentUser, Cu
$scope.order = Checkout.order # Ordering is important
$scope.secrets = Checkout.secrets
$scope.enabled = if CurrentUser then true else false
$scope.enabled = !!CurrentUser
$scope.purchase = (event)->
event.preventDefault()

View File

@@ -7,10 +7,10 @@
= inject_available_shipping_methods
= inject_available_payment_methods
= render partial: "checkout/details", locals: {f: f}
= render partial: "checkout/billing", locals: {f: f}
= render partial: "checkout/shipping", locals: {f: f}
= render partial: "checkout/payment", locals: {f: f}
= render "checkout/details", f: f
= render "checkout/billing", f: f
= render "checkout/shipping", f: f
= render "checkout/payment", f: f
%p
%button.button.primary{type: :submit,
"ng-disabled" => "checkout.$invalid"}