Ok ... I figured it out.
Here is my solution:
$(thumbOpts.container).sortable({ items: '.page', revert: true, opacity: 0.5, start: function(evt, ui) { var link = ui.item.find('a'); link.data('click-event', link.attr('onclick')); link.attr('onclick', ''); }, stop: function(evt, ui) { setTimeout( function(){ var link = ui.item.find('a'); link.attr('onclick', link.data('click-event')); }, 200 ) } });
source share