Skip to content

Commit f1c1c6e

Browse files
committed
Update empty checking parts
1 parent db82bf0 commit f1c1c6e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

views/pages/index.ejs

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@
2424
2525
$.get('/load', function(data) {
2626
$("#user_submit").click(function(evt) {
27-
write();
28-
alert("입력 완료! " + $("#user_name").val() + " 님 감사합니다");
29-
window.location.replace("/board");
27+
if ($("#user_name").val() == '' || $("#user_position").val() == '' || $("#user_interest").val() == '' || $("#user_email").val() == '' || $("#user_description").val() == '') {
28+
alert("빈 칸이 있습니다. 모든 정보를 다 채워주세요!\nPlease fill out all of the sections.");
29+
} else {
30+
write();
31+
alert("입력 완료! " + $("#user_name").val() + " 님 감사합니다");
32+
window.location.replace("/board");
33+
}
3034
});
3135
});
3236
});

0 commit comments

Comments
 (0)