+/* global ajaxurl, wpAjax */
var findPosts;
(function($){
var st = document.documentElement.scrollTop || $(document).scrollTop(),
overlay = $( '.ui-find-overlay' );
- if ( overlay.length == 0 ) {
+ if ( overlay.length === 0 ) {
$( 'body' ).append( '<div class="ui-find-overlay"></div>' );
findPosts.overlay();
}
$(document).ready(function() {
$('#find-posts-submit').click(function(e) {
- if ( '' == $('#find-posts-response').html() )
+ if ( '' === $('#find-posts-response').html() )
e.preventDefault();
});
$( '#find-posts .find-box-search :input' ).keypress( function( event ) {