onclick not getting executed
<p>Part of the code is not being executed. The animatition to open the box is working fine. but the animation for closing is not working. What is wrong?</p>

<pre><code>$('#basic-modal .basic').click(function (e) {
    $("#basic-modal-content").modal({onOpen: function (dialog) {
        dialog.overlay.fadeIn('slow', function () {
            dialog.data.hide();
            dialog.container.fadeIn('slow', function () {
                dialog.data.slideDown('slow');   
            });
        });
    }}); 

    $("#basic-modal-content").modal({onClose: function (dialog) {
        dialog.data.fadeOut('slow', function () {
            dialog.container.hide('slow', function () {
            dialog.overlay.slideUp('slow', function () {
                $.modal.close();
            return false;
        });
    });
});
</code></pre>

<p>}});</p>
