What I want to do:
So I want to fire a function that resizes the containing div when one of its children are deleted BUT only after its done fading out.
The Problem:
The wrapper div is being resized ( addToSlider(-1)
) before the 200 millisecond fade is done.
Here is my code:
$('.you img[imgid="' + deletedrow.id + '"]').parent().fadeOut(200, addToSlider(-1));