Avoid JSHint errors in admin comment.js. Declare globals, use single quotes.

props jorbin.
fixes #25885. 

Built from https://develop.svn.wordpress.org/trunk@26068


git-svn-id: http://core.svn.wordpress.org/trunk@25988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-11-09 21:30:10 +00:00
parent 8789532eb8
commit 867447c489
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>' +