Ticket #31258: media-template-grid-fix.patch
File media-template-grid-fix.patch, 1.7 KB (added by , 10 years ago) |
---|
-
media-template.php
294 294 <div class="media-progress-bar"><div></div></div> 295 295 <# } else if ( 'image' === data.type && data.sizes && data.sizes.large ) { #> 296 296 <img class="details-image" src="{{ data.sizes.large.url }}" draggable="false" /> 297 <# } else if ( 'svg+xml' === data.subtype ) { #> 298 <img class="details-image" src="{{ data.url }}" draggable="false" /> 297 299 <# } else if ( 'image' === data.type && data.sizes && data.sizes.full ) { #> 298 300 <img class="details-image" src="{{ data.sizes.full.url }}" draggable="false" /> 299 301 <# } else if ( -1 === jQuery.inArray( data.type, [ 'audio', 'video' ] ) ) { #> … … 449 451 <div class="thumbnail"> 450 452 <# if ( data.uploading ) { #> 451 453 <div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div> 454 <# } else if ( 'svg+xml' === data.subtype ) { #> 455 <div class="centered"> 456 <img src="{{ data.url }}" class="thumbnail" draggable="false" /> 457 </div> 452 458 <# } else if ( 'image' === data.type && data.sizes ) { #> 453 459 <div class="centered"> 454 460 <img src="{{ data.size.url }}" draggable="false" alt="" /> … … 505 511 <div class="thumbnail thumbnail-{{ data.type }}"> 506 512 <# if ( data.uploading ) { #> 507 513 <div class="media-progress-bar"><div></div></div> 514 <# } else if ( 'svg+xml' === data.subtype ) { #> 515 <div class="centered"> 516 <img src="{{ data.url }}" class="thumbnail" draggable="false" /> 517 </div> 508 518 <# } else if ( 'image' === data.type && data.sizes ) { #> 509 519 <img src="{{ data.size.url }}" draggable="false" /> 510 520 <# } else { #>