From 5268938d4949e2bbf36d40f787beef46654d3dd5 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Fri, 11 Apr 2014 13:41:43 +1000 Subject: [PATCH] Focusing on the first form field --- .../darkswarm/controllers/checkout_controller.js.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/darkswarm/controllers/checkout_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/checkout_controller.js.coffee index 1bb7692239..d07e023656 100644 --- a/app/assets/javascripts/darkswarm/controllers/checkout_controller.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/checkout_controller.js.coffee @@ -27,9 +27,10 @@ Darkswarm.controller "CheckoutCtrl", ($scope, $rootScope, order, $location, $anc checkout.submit() $scope.scrollTo = (name)-> + #$scope.userOpen = false + $("#order_email").focus() $location.hash(name); $anchorScroll(); - $scope.userOpen = false $scope.initialize()