mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Remove unused directive
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
Darkswarm.directive "submitCheckout", () ->
|
||||
restrict: "A"
|
||||
link: (scope, elm, attr)->
|
||||
elm.bind 'click', (ev)->
|
||||
ev.preventDefault()
|
||||
|
||||
names = ["details", "billing", "shipping", "payment"]
|
||||
for name of names
|
||||
if not scope[name].$valid
|
||||
$scope.show name
|
||||
# else
|
||||
# scope.purchase(ev)
|
||||
|
||||
Reference in New Issue
Block a user