Changeset 31632
- Timestamp:
- 03/05/2015 09:02:42 PM (9 years ago)
- Location:
- trunk/src/wp-includes/js/media
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media/views.js
r31620 r31632 4636 4636 shortcode: embed.string() 4637 4637 } 4638 } ).done( _.bind( this.renderoEmbed, this ) ); 4638 } ) 4639 .done( _.bind( this.renderoEmbed, this ) ) 4640 .fail( _.bind( this.renderFail, this ) ); 4641 }, 4642 4643 renderFail: function () { 4644 this.$( '.setting' ).hide().filter( '.title' ).show(); 4639 4645 }, 4640 4646 … … 4643 4649 attr = {}, 4644 4650 opts = { silent: true }; 4651 4652 this.$( '.setting' ).hide() 4653 .filter( '.title' )[ html ? 'hide' : 'show' ](); 4645 4654 4646 4655 if ( response && response.attr ) { … … 4665 4674 4666 4675 this.spinner.hide(); 4667 4676 4668 4677 this.$('.embed-container').show().find('.embed-preview').html( html ); 4669 4678 } -
trunk/src/wp-includes/js/media/views/embed/link.js
r31620 r31632 59 59 shortcode: embed.string() 60 60 } 61 } ).done( _.bind( this.renderoEmbed, this ) ); 61 } ) 62 .done( _.bind( this.renderoEmbed, this ) ) 63 .fail( _.bind( this.renderFail, this ) ); 64 }, 65 66 renderFail: function () { 67 this.$( '.setting' ).hide().filter( '.title' ).show(); 62 68 }, 63 69 … … 66 72 attr = {}, 67 73 opts = { silent: true }; 74 75 this.$( '.setting' ).hide() 76 .filter( '.title' )[ html ? 'hide' : 'show' ](); 68 77 69 78 if ( response && response.attr ) { … … 88 97 89 98 this.spinner.hide(); 90 99 91 100 this.$('.embed-container').show().find('.embed-preview').html( html ); 92 101 }
Note: See TracChangeset
for help on using the changeset viewer.