fix checksley initialization in login
parent
24f05d13d1
commit
e2c9f3c987
|
@ -221,6 +221,8 @@ module.directive("tgPublicRegisterMessage", ["$tgConfig", "$tgNavUrls", "$tgTemp
|
||||||
|
|
||||||
LoginDirective = ($auth, $confirm, $location, $config, $routeParams, $navUrls, $events, $translate) ->
|
LoginDirective = ($auth, $confirm, $location, $config, $routeParams, $navUrls, $events, $translate) ->
|
||||||
link = ($scope, $el, $attrs) ->
|
link = ($scope, $el, $attrs) ->
|
||||||
|
form = new checksley.Form($el.find("form.login-form"))
|
||||||
|
|
||||||
onSuccess = (response) ->
|
onSuccess = (response) ->
|
||||||
if $routeParams['next'] and $routeParams['next'] != $navUrls.resolve("login")
|
if $routeParams['next'] and $routeParams['next'] != $navUrls.resolve("login")
|
||||||
nextUrl = decodeURIComponent($routeParams['next'])
|
nextUrl = decodeURIComponent($routeParams['next'])
|
||||||
|
@ -236,7 +238,6 @@ LoginDirective = ($auth, $confirm, $location, $config, $routeParams, $navUrls, $
|
||||||
submit = debounce 2000, (event) =>
|
submit = debounce 2000, (event) =>
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
||||||
form = new checksley.Form($el.find("form.login-form"))
|
|
||||||
if not form.validate()
|
if not form.validate()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue