Check/Uncheck image's checkbox if not dropped/dragged
<p>I have a grid with images and every image has an checkbox to select it (for delete). The grid is sortable.</p>

<p>I want to check/uncheck the checkbox only if the image is not drapped/dropped (by simple click only).</p>

<p>I have done the following lines</p>

<pre><code>$('#images li').click(function() {
    if ($(this).children('input').is(':checked'))
    {
         $(this).children('input').attr('checked', false);
    }
    else
    {
         $(this).children('input').attr('checked', true);
    }
});

$('#image li').bind('drag',function() {
    $(this).children('input').attr('checked', false);
});

$('#image li').bind('drop',function() {
    $(this).children('input').attr('checked', false);
});
</code></pre>

<p>However the "drop" statement look doesn't work. How to do it right way?</p>
