]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/media.dev.js
Wordpress 3.1
[autoinstalls/wordpress.git] / wp-admin / js / media.dev.js
index 92749daeacf5ae537f54461085d09d095980e50a..3c221b35debfcf94ccd6ddb684c6c0223ce4340a 100644 (file)
@@ -77,6 +77,14 @@ var findPosts;
                        if ( '' == $('#find-posts-response').html() )
                                e.preventDefault();
                });
+               $( '#find-posts .find-box-search :input' ).keypress( function( event ) {
+                       if ( 13 == event.which ) {
+                               findPosts.send();
+                               return false;
+                       }
+               } );
+               $( '#find-posts-search' ).click( findPosts.send );
+               $( '#find-posts-close' ).click( findPosts.close );
                $('#doaction, #doaction2').click(function(e){
                        $('select[name^="action"]').each(function(){
                                if ( $(this).val() == 'attach' ) {