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
This commit is contained in:
Andrew Nacin 2013-11-09 21:29:43 +00:00
parent c8ab2675f4
commit 6072e1d4cb

View File

@ -1,18 +1,19 @@
/* global postboxes:true, commentL10n:true */
jQuery(document).ready( function($) { jQuery(document).ready( function($) {
postboxes.add_postbox_toggles('comment'); postboxes.add_postbox_toggles('comment');
var stamp = $('#timestamp').html(); var stamp = $('#timestamp').html();
$('.edit-timestamp').click(function () { $('.edit-timestamp').click(function () {
if ($('#timestampdiv').is(":hidden")) { if ($('#timestampdiv').is(':hidden')) {
$('#timestampdiv').slideDown("normal"); $('#timestampdiv').slideDown('normal');
$('.edit-timestamp').hide(); $('.edit-timestamp').hide();
} }
return false; return false;
}); });
$('.cancel-timestamp').click(function() { $('.cancel-timestamp').click(function() {
$('#timestampdiv').slideUp("normal"); $('#timestampdiv').slideUp('normal');
$('#mm').val($('#hidden_mm').val()); $('#mm').val($('#hidden_mm').val());
$('#jj').val($('#hidden_jj').val()); $('#jj').val($('#hidden_jj').val());
$('#aa').val($('#hidden_aa').val()); $('#aa').val($('#hidden_aa').val());
@ -34,7 +35,7 @@ jQuery(document).ready( function($) {
$('.timestamp-wrap', '#timestampdiv').removeClass('form-invalid'); $('.timestamp-wrap', '#timestampdiv').removeClass('form-invalid');
} }
$('#timestampdiv').slideUp("normal"); $('#timestampdiv').slideUp('normal');
$('.edit-timestamp').show(); $('.edit-timestamp').show();
$('#timestamp').html( $('#timestamp').html(
commentL10n.submittedOn + ' <b>' + commentL10n.submittedOn + ' <b>' +