mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-14 23:47:48 +00:00
Starting on Angular models for Checkout, pretties
This commit is contained in:
2
app/assets/javascripts/darkswarm/checkout.js.coffee
Normal file
2
app/assets/javascripts/darkswarm/checkout.js.coffee
Normal file
@@ -0,0 +1,2 @@
|
||||
window.Checkout = angular.module("Checkout", ["ngResource", "filters"]).config ($httpProvider) ->
|
||||
$httpProvider.defaults.headers.post['X-CSRF-Token'] = $('meta[name="csrf-token"]').attr('content')
|
||||
@@ -0,0 +1,2 @@
|
||||
angular.module("Checkout").controller "CheckoutCtrl", ($scope, $rootScope) ->
|
||||
$scope.require_ship_method = false
|
||||
Reference in New Issue
Block a user