From 6072e1d4cbc2d3ab7502b8b910cef57904af31d1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 9 Nov 2013 21:29:43 +0000 Subject: [PATCH] Avoid JSHint errors in admin comment.js. Declare globals, use single quotes. props jorbin. fixes #25885. git-svn-id: https://develop.svn.wordpress.org/trunk@26068 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/comment.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/js/comment.js b/src/wp-admin/js/comment.js index f9d93bfaba..b5506ea8e1 100644 --- a/src/wp-admin/js/comment.js +++ b/src/wp-admin/js/comment.js @@ -1,18 +1,19 @@ +/* global postboxes:true, commentL10n:true */ jQuery(document).ready( function($) { postboxes.add_postbox_toggles('comment'); var stamp = $('#timestamp').html(); $('.edit-timestamp').click(function () { - if ($('#timestampdiv').is(":hidden")) { - $('#timestampdiv').slideDown("normal"); + if ($('#timestampdiv').is(':hidden')) { + $('#timestampdiv').slideDown('normal'); $('.edit-timestamp').hide(); } return false; }); $('.cancel-timestamp').click(function() { - $('#timestampdiv').slideUp("normal"); + $('#timestampdiv').slideUp('normal'); $('#mm').val($('#hidden_mm').val()); $('#jj').val($('#hidden_jj').val()); $('#aa').val($('#hidden_aa').val()); @@ -34,7 +35,7 @@ jQuery(document).ready( function($) { $('.timestamp-wrap', '#timestampdiv').removeClass('form-invalid'); } - $('#timestampdiv').slideUp("normal"); + $('#timestampdiv').slideUp('normal'); $('.edit-timestamp').show(); $('#timestamp').html( commentL10n.submittedOn + ' ' +