Commit f2a88386 authored by Sean Hammond's avatar Sean Hammond

Fix "fnPtr is not a function" Angular error

parent ce323474
......@@ -80,7 +80,7 @@ class AccountController
promise = session.edit_profile(packet)
promise.$promise.then(successHandler, errorHandler)
$scope.changeEmail = (form) ->
$scope.changeEmailSubmit = (form) ->
formRespond(form)
return unless form.$valid
......
<div class="tab-pane" title="Account">
<form class="account-form form"
name="changeEmailForm"
ng-submit="changeEmail(changeEmailForm)"
ng-submit="changeEmailSubmit(changeEmailForm)"
novalidate form-validate>
<h2 class="form-heading"><span>Change Your Email Address</span></h2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment