Changeset 22159
- Timestamp:
- 10/10/2012 09:55:47 AM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/css/media-views.css
r22158 r22159 257 257 background: #eee; 258 258 cursor: pointer; 259 color: #464646; 259 260 260 261 -webkit-user-select: none; … … 307 308 -o-transform: translate( -50%, -50% ); 308 309 transform: translate( -50%, -50% ); 310 } 311 312 .attachment .filename { 313 margin-top: 140px; 314 padding: 0 10px; 315 text-align: center; 316 font-weight: bold; 309 317 } 310 318 -
trunk/wp-includes/js/media-views.js
r22157 r22159 407 407 render: function() { 408 408 var attachment = this.model.toJSON(), 409 options = { 410 icon: attachment.icon, 411 uploading: attachment.uploading, 412 orientation: attachment.orientation || 'landscape', 413 type: attachment.type, 414 subtype: attachment.subtype, 415 buttons: this.buttons 416 }; 417 418 419 if ( 'image' === attachment.type ) 409 options = _.defaults( this.model.toJSON(), { 410 orientation: 'landscape', 411 uploading: false, 412 type: '' 413 }); 414 415 options.buttons = this.buttons; 416 417 if ( 'image' === options.type ) 420 418 _.extend( options, this.crop() ); 421 419 422 420 this.$el.html( this.template( options ) ); 423 421 424 if ( attachment.uploading )422 if ( options.uploading ) 425 423 this.$bar = this.$('.media-progress-bar div'); 426 424 else -
trunk/wp-includes/media.php
r22158 r22159 1334 1334 style="top:<%- top %>px; left:<%- left %>px;" /> 1335 1335 </div> 1336 <% } else if ( uploading ) { %> 1337 <div class="media-progress-bar"><div></div></div> 1336 1338 <% } else { %> 1337 1339 <img src="<%- icon %>" class="icon" draggable="false" /> 1340 <div class="filename"><%- filename %></div> 1338 1341 <% } %> 1339 1342 1340 <% if ( uploading ) { %> 1341 <div class="media-progress-bar"><div></div></div> 1342 <% } %> 1343 1343 1344 1344 1345 <% if ( buttons.close ) { %>
Note: See TracChangeset
for help on using the changeset viewer.