jQuery bootbox dialog
<p>I try to get the following code to work</p>

<pre><code>//===== Dialogs =====//
$(".table a.delete").click(function (e) {
    e.preventDefault();
    bootbox.confirm("Are you sure?", function (confirmed) {
        if (confirmed) {
            var $el = $(this);
            var $tr = $el.closest('tr');
            var url = $el.closest('table').data('remove-url');
            var id = $tr.data('id');

            $tr.fadeOut(function () {
                $el.remove();
                $.post(url, { id: id }); // do the delete on the server 
            });
        }
    });
});
</code></pre>

<p>The bootbox is showing, but the code below <code>if(confirmed)</code> doesnt run. </p>
