mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 )
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user