the current DOM is like this:
<div id="image_list">
</div>
after an event this will update to :
<div id="image_list">
<img class="dragable-img" src="image1.png" />
<img class="dragable-img" src="image2.png" />
<img class="dragable-img" src="image3.png" />
<img class="dragable-img" src="image4.png" />
</div>
Now there is a js in the page that is supposed to handle dragging
$('.dragable-img').draggable({
revert: true,
handle: 'img',
containment: "#content-body",
scroll: false
}).disableSelection();
Obviously, it is working before updating the DOM and it is not working after it.
So, What am I missing here?
Try using the ajaxComplete() function – it will trigger after every ajax call on the page
The better way would be inside your $.ajax success function to call draggable again