Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/xpressengine/xpressengine
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
jhyeon1010 committed Dec 3, 2018
2 parents cb0450e + 3ade3c8 commit e2c7549
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion assets/common.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions resources/assets/core/form/entity.js
Expand Up @@ -43,14 +43,11 @@ class formEntity {

this.$element.on('submit', function (event) {
if (that.$$hasListener('submit')) {
// 폼 전송 이벤트를 중단
event.preventDefault()

emitFormSubmit(that.element, event)
.then(() => {
// preventSubmit()으로 임의로 중단하지 않은 경우 폼 전송
if (!that.submitPrevented()) {
that.submit()
// preventSubmit()으로 임의 중단한 경우 폼 전송 중지
if (that.submitPrevented()) {
event.preventDefault()
}
})
.catch(() => {
Expand Down

0 comments on commit e2c7549

Please sign in to comment.