Ticket #27139: 27139.3.patch
File 27139.3.patch, 610 bytes (added by , 4 years ago) |
---|
-
js/media/views/attachments.js
285 285 286 286 // Record the initial `index` of the dragged model. 287 287 start: function( event, ui ) { 288 // Ensure that any caption that currently has focus and has potentially been changed 289 // is saved before the media is reordered, which would reset the caption. 290 $( 'input.describe:focus').trigger( 'change' ); 291 288 292 ui.item.data('sortableIndexStart', ui.item.index()); 289 293 }, 290 294