jquery click function conflicts
<p>I have a problem when putting a click function inside a click function. I also tried mousedown(), but the same problem. When <strong>else</strong> is executed and click the button. The click function is running twice.</p>

<pre>
$('.tableData').click(function(){
    if($('tr.trSelected').length > 1) {
        $('.box-edit').addClass('btn-disabled');
        $('.box-info').addClass('btn-disabled');

        $('.nav-edit').unbind('click');
        $('.nav-info').unbind('click');

    }
    else {
        $('.box-edit').removeClass('btn-disabled');
        $('.box-info').removeClass('btn-disabled');

        $('.nav-edit').bind('click', function() {
            $('.sub-nav-edit').slideToggle(200);
            $('.box-edit').toggleClass('sub-nav-active');
        });
    }
});
</pre>
