Skip to content

Commit

Permalink
계정 설정 스크롤 문제
Browse files Browse the repository at this point in the history
  • Loading branch information
xedev committed Mar 19, 2021
1 parent 4ccb115 commit 75ae831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions assets/core/user/user_register.js
Expand Up @@ -102,9 +102,11 @@ $(function () {
if ($this.is('[name=password_confirmation]')) {
var confirmation = ($container.find('[name=password_confirmation]').val() && $container.find('[name=password]').val() === $container.find('[name=password_confirmation]').val()) ? 'success' : 'error'
XE.Griper.form.fn.message($this, XE.Lang.trans('xe::enterPasswordConfirmation'), confirmation)
$('body').stop();
} else {
XE._.forEach(passwordRules, function (rule) {
XE.Griper.form.fn.message($this, rule.message, result[rule.type], false)
$('body').stop();
})
}
})
Expand Down
5 changes: 4 additions & 1 deletion resources/assets/core/user/user_register.js
Expand Up @@ -102,12 +102,15 @@ $(function () {
if ($this.is('[name=password_confirmation]')) {
var confirmation = ($container.find('[name=password_confirmation]').val() && $container.find('[name=password]').val() === $container.find('[name=password_confirmation]').val()) ? 'success' : 'error'
XE.Griper.form.fn.message($this, XE.Lang.trans('xe::enterPasswordConfirmation'), confirmation)
$('body').stop();
} else {
XE._.forEach(passwordRules, function (rule) {
XE.Griper.form.fn.message($this, rule.message, result[rule.type], false)
})
$('body').stop();
})
}
})

}

function validatePassword (val) {
Expand Down

0 comments on commit 75ae831

Please sign in to comment.