Fix JSHint errors in 5 files.

props seanchayes.
fixes #26015, #26020, #26019, #26034, #26022.


git-svn-id: https://develop.svn.wordpress.org/trunk@26200 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2013-11-15 05:15:06 +00:00
parent 46a5e7a863
commit daf448ae0c
5 changed files with 18 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
/* global postboxes, deleteUserSetting, setUserSetting, getUserSetting */
jQuery(document).ready( function($) {
var newCat, noSyncChecks = false, syncChecks, catAddAfter;
@@ -22,7 +24,7 @@ jQuery(document).ready( function($) {
$('#category-tabs a[href="#categories-pop"]').click();
// Ajax Cat
newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ) } );
newCat = $('#newcat').one( 'focus', function() { $(this).val( '' ).removeClass( 'form-input-tip' ); } );
$('#link-category-add-submit').click( function() { newCat.focus(); } );
syncChecks = function() {
if ( noSyncChecks )

View File

@@ -1,3 +1,4 @@
/* global ajaxurl, wpAjax */
var findPosts;
(function($){
@@ -6,7 +7,7 @@ var findPosts;
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();
}
@@ -98,7 +99,7 @@ var findPosts;
$(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 ) {