diff --git a/src/wp-admin/js/media.js b/src/wp-admin/js/media.js
index 4c1dc58..d404a30 100644
a
|
b
|
var findPosts; |
151 | 151 | }).open(); |
152 | 152 | } |
153 | 153 | |
154 | | // Prevents form submission if no post has been selected. |
| 154 | // Prevents form submission if posts exists to be selected and no post has been selected. |
155 | 155 | $( '#find-posts-submit' ).click( function( event ) { |
156 | | if ( ! $( '#find-posts-response input[type="radio"]:checked' ).length ) |
| 156 | if ( $( '#find-posts-response input[type="radio"]' ).length && ! $( '#find-posts-response input[type="radio"]:checked' ).length ) |
157 | 157 | event.preventDefault(); |
158 | 158 | }); |
159 | 159 | |