削除モーダルの初期化が完了してから削除ボタンクリックイベントを仕掛ける

This commit is contained in:
shibafu
2019-03-11 22:55:32 +09:00
parent 16005931fc
commit 00a819de23
3 changed files with 7 additions and 3 deletions

View File

@@ -28,5 +28,9 @@ $(() => {
}
$('.link-card').linkCard();
$('#deleteCheckinModal').deleteCheckinModal();
const $deleteCheckinModal = $('#deleteCheckinModal').deleteCheckinModal();
$(document).on('click', '[data-target="#deleteCheckinModal"]', function (event) {
event.preventDefault();
$deleteCheckinModal.modal('show', this);
});
});