Ticket #14394: 14394.diff
File 14394.diff, 1.9 KB (added by , 10 years ago) |
---|
-
wp-admin/includes/template.php
3268 3268 <?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?> 3269 3269 <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label> 3270 3270 <input type="text" id="find-posts-input" name="ps" value="" /> 3271 <input type="button" onclick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />3271 <input type="button" id="find-posts-search" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br /> 3272 3272 3273 3273 <?php 3274 3274 $post_types = get_post_types( array('public' => true), 'objects' ); … … 3284 3284 <div id="find-posts-response"></div> 3285 3285 </div> 3286 3286 <div class="find-box-buttons"> 3287 <input type="button" class="button alignleft" onclick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />3287 <input id="find-posts-close" type="button" class="button alignleft" value="<?php esc_attr_e('Close'); ?>" /> 3288 3288 <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php esc_attr_e('Select'); ?>" /> 3289 3289 </div> 3290 3290 </div> -
wp-admin/js/media.dev.js
77 77 if ( '' == $('#find-posts-response').html() ) 78 78 e.preventDefault(); 79 79 }); 80 $( '#find-posts .find-box-search :input' ).keypress( function( event ) { 81 if ( 13 == event.which ) { 82 findPosts.send(); 83 return false; 84 } 85 } ); 86 $( '#find-posts-search' ).click( findPosts.send ); 87 $( '#find-posts-close' ).click( findPosts.close ); 80 88 $('#doaction, #doaction2').click(function(e){ 81 89 $('select[name^="action"]').each(function(){ 82 90 if ( $(this).val() == 'attach' ) {