Make WordPress Core

Changeset 26068


Ignore:
Timestamp:
11/09/2013 09:29:43 PM (13 years ago)
Author:
nacin
Message:

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

props jorbin.
fixes #25885.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/comment.js

    r21697 r26068  
     1/* global postboxes:true, commentL10n:true */
    12jQuery(document).ready( function($) {
    23
    … …  
    56        var stamp = $('#timestamp').html();
    67        $('.edit-timestamp').click(function () {
    7                 if ($('#timestampdiv').is(":hidden")) {
    8                         $('#timestampdiv').slideDown("normal");
     8                if ($('#timestampdiv').is(':hidden')) {
     9                        $('#timestampdiv').slideDown('normal');
    910                        $('.edit-timestamp').hide();
    1011                }
    … …  
    1314
    1415        $('.cancel-timestamp').click(function() {
    15                 $('#timestampdiv').slideUp("normal");
     16                $('#timestampdiv').slideUp('normal');
    1617                $('#mm').val($('#hidden_mm').val());
    1718                $('#jj').val($('#hidden_jj').val());
    … …  
    3536                }
    3637
    37                 $('#timestampdiv').slideUp("normal");
     38                $('#timestampdiv').slideUp('normal');
    3839                $('.edit-timestamp').show();
    3940                $('#timestamp').html(
Note: See TracChangeset for help on using the changeset viewer.