Changeset 29609
- Timestamp:
- 08/25/2014 10:44:32 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-views.js
r29602 r29609 4681 4681 if ( options.rerenderOnModelChange ) { 4682 4682 this.model.on( 'change', this.render, this ); 4683 } else { 4684 this.model.on( 'change:percent', this.progress, this ); 4683 4685 } 4684 4686 this.model.on( 'change:title', this._syncTitle, this ); … … 4686 4688 this.model.on( 'change:artist', this._syncArtist, this ); 4687 4689 this.model.on( 'change:album', this._syncAlbum, this ); 4688 this.model.on( 'change:percent', this.progress, this );4689 4690 4690 4691 // Update the selection. … … 4754 4755 } 4755 4756 4757 if ( options.uploading && ! options.percent ) { 4758 options.percent = 0; 4759 } 4760 4756 4761 this.views.detach(); 4757 4762 this.$el.html( this.template( options ) ); 4758 4763 4759 4764 this.$el.toggleClass( 'uploading', options.uploading ); 4765 4760 4766 if ( options.uploading ) { 4761 4767 this.$bar = this.$('.media-progress-bar div'); -
trunk/src/wp-includes/media-template.php
r29537 r29609 429 429 <div class="thumbnail"> 430 430 <# if ( data.uploading ) { #> 431 <div class="media-progress-bar"><div >431 <div class="media-progress-bar"><div style="width: {{ data.percent }}%"></div></div> 432 432 <# } else if ( 'image' === data.type && data.sizes ) { #> 433 433 <div class="centered">
Note: See TracChangeset
for help on using the changeset viewer.