From efe54a3ac64630a880ebefeed43f082aa132cab2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 14 Nov 2013 05:39:28 +0000 Subject: [PATCH] Fix JSHint errors in custom-header.js and custom-background.js. props jorbin. fixes #25915, #25916. git-svn-id: https://develop.svn.wordpress.org/trunk@26158 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/custom-background.js | 7 ++++--- src/wp-admin/js/custom-header.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/js/custom-background.js b/src/wp-admin/js/custom-background.js index c41ca6b00b..81fd59170c 100644 --- a/src/wp-admin/js/custom-background.js +++ b/src/wp-admin/js/custom-background.js @@ -1,7 +1,8 @@ +/* global ajaxurl */ (function($) { $(document).ready(function() { - var bgImage = $("#custom-background-image"), - frame; + var frame, + bgImage = $( '#custom-background-image' ); $('#background-color').wpColorPicker({ change: function( event, ui ) { @@ -71,4 +72,4 @@ frame.open(); }); }); -})(jQuery); \ No newline at end of file +})(jQuery); diff --git a/src/wp-admin/js/custom-header.js b/src/wp-admin/js/custom-header.js index d93ac3895c..ce224e448b 100644 --- a/src/wp-admin/js/custom-header.js +++ b/src/wp-admin/js/custom-header.js @@ -1,3 +1,4 @@ +/* global isRtl */ (function($) { var frame;