diff --git a/client/views/enrollAccount/enrollAccount.coffee b/client/views/enrollAccount/enrollAccount.coffee index 1e5bc725..a8e5aab1 100644 --- a/client/views/enrollAccount/enrollAccount.coffee +++ b/client/views/enrollAccount/enrollAccount.coffee @@ -6,9 +6,9 @@ Template.entryEnrollAccount.helpers Template.entryEnrollAccount.events - 'submit #setPassword': (event) -> + 'submit form.set-password': (event, template) -> event.preventDefault() - password = $('input[type="password"]').val() + password = template.$('input[type="password"]').val() passwordErrors = do (password)-> errMsg = [] diff --git a/client/views/enrollAccount/enrollAccount.html b/client/views/enrollAccount/enrollAccount.html index f7075583..e883d064 100644 --- a/client/views/enrollAccount/enrollAccount.html +++ b/client/views/enrollAccount/enrollAccount.html @@ -11,7 +11,7 @@