Check out the JSFiddle
I'm having trouble getting the close icon within a draggable DIV to move along with the rest of the DIV. It seems like there might be an issue in this part of the code.
$self = $(this);
$(opts.parent).append($self);
$('span.' + opts.classPrefix + '_oClose').remove();
$('body').append($overlayClose);
$('div.' + opts.classPrefix + '_overlay').remove();
$('body').append($overlay);
$self.draggable();
It seems like the problem is related to how elements are appended to the HTML body. I even tried appending a blank div to the body and then adding overlay and overlayClose elements to it, but that didn't work either. Any suggestions?