Changeset 31642
- Timestamp:
- 03/06/2015 03:02:08 PM (10 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media/views.js
r31632 r31642 4606 4606 // clear out previous results 4607 4607 this.$('.embed-container').hide().find('.embed-preview').html(''); 4608 this.$( '.setting' ).hide(); 4608 4609 4609 4610 // only proceed with embed if the field contains more than 6 characters … … 4642 4643 4643 4644 renderFail: function () { 4644 this.$( '.setting' ).hide().filter( '. title' ).show();4645 this.$( '.setting' ).hide().filter( '.link-text' ).show(); 4645 4646 }, 4646 4647 … … 4651 4652 4652 4653 this.$( '.setting' ).hide() 4653 .filter( '. title' )[ html ? 'hide' : 'show' ]();4654 .filter( '.link-text' )[ html ? 'hide' : 'show' ](); 4654 4655 4655 4656 if ( response && response.attr ) { -
trunk/src/wp-includes/js/media/views/embed/link.js
r31632 r31642 29 29 // clear out previous results 30 30 this.$('.embed-container').hide().find('.embed-preview').html(''); 31 this.$( '.setting' ).hide(); 31 32 32 33 // only proceed with embed if the field contains more than 6 characters … … 65 66 66 67 renderFail: function () { 67 this.$( '.setting' ).hide().filter( '. title' ).show();68 this.$( '.setting' ).hide().filter( '.link-text' ).show(); 68 69 }, 69 70 … … 74 75 75 76 this.$( '.setting' ).hide() 76 .filter( '. title' )[ html ? 'hide' : 'show' ]();77 .filter( '.link-text' )[ html ? 'hide' : 'show' ](); 77 78 78 79 if ( response && response.attr ) { -
trunk/src/wp-includes/media-template.php
r31620 r31642 816 816 817 817 <script type="text/html" id="tmpl-embed-link-settings"> 818 <label class="setting title"> 819 <span><?php _e( 'Title' ); ?></span> 820 <input type="text" class="alignment" data-setting="title" /> 821 </label> 818 <label class="setting link-text"> 819 <span><?php _e( 'Link Text' ); ?></span> 820 <input type="text" class="alignment" data-setting="link-text" /> 821 </label> 822 <div class="embed-container" style="display: none;"> 823 <div class="embed-preview"></div> 824 </div> 822 825 <div class="embed-link-dimensions"> 823 826 <label class="setting width"> … … 829 832 <input type="text" class="alignment" data-setting="height" /> 830 833 </label> 831 </div>832 <div class="embed-container" style="display: none;">833 <div class="embed-preview"></div>834 834 </div> 835 835 </script>
Note: See TracChangeset
for help on using the changeset viewer.