Ticket #22696: sortable.diff
| File sortable.diff, 812 bytes (added by markjaquith, 6 months ago) |
|---|
-
wp-includes/js/media-views.js
3167 3167 3168 3168 // Record the initial `index` of the dragged model. 3169 3169 start: function( event, ui ) { 3170 $(this).sortable('option', 'cursorAt', {top: ui.item.height() / 2, left: ui.item.width() / 2}); 3171 ui.item.data('original-margin', ui.item.css('margin')); 3172 ui.item.css('margin', 0); 3170 3173 from = ui.item.index(); 3171 3174 }, 3172 3175 3176 stop: function( event, ui ) { 3177 ui.item.css('margin', ui.item.data('original-margin')); 3178 }, 3179 3173 3180 // Update the model's index in the collection. 3174 3181 // Do so silently, as the view is already accurate. 3175 3182 update: function( event, ui ) {
