<script>
    $(function () {
        var applicationDeleteForm = $("#application-delete-form");
        var applicationDeleteConfirmMsg = 'Do you really want to delete this application?';
        $(".btn-application-delete-js").click(function () {
            if (confirm(applicationDeleteConfirmMsg)) {
                applicationDeleteForm.find('[name="form[force]"]').val(0);
                applicationDeleteForm.submit();
            }
        });

        $(".btn-force-application-delete-js").click(function () {
            if (confirm(applicationDeleteConfirmMsg)) {
                applicationDeleteForm.find('[name="form[force]"]').val(1);
                applicationDeleteForm.submit();
            }
        });

        $('[data-toggle="tooltip"]').tooltip();
    });
</script>
