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
1 changed files with 5 additions and 4 deletions

View File

@ -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 + ' <b>' +