Make WordPress Core

Changeset 41314

Timestamp:
08/24/2017 05:57:18 PM (7 years ago)
Author:
wonderboymusic
Message:

Docs: improve JS docs for comment-reply.js

Props andizer, ireneyoast.
Fixes #41548.

File:
1 edited

Legend:

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

    r35675 r41314  
     1
     2
     3
     4
     5
     6
     7
    18var addComment = {
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
    220    moveForm: function( commId, parentId, respondId, postId ) {
    321        var div, element, style, cssHidden,
     
    3149        cancel.style.display = '';
    3250
     51
     52
     53
     54
     55
    3356        cancel.onclick = function() {
    3457            var t       = addComment,
     
    4972
    5073        /*
    51          * Set initial focus to the first form focusable element.
    52          * Try/catch used just to avoid errors in IE 7- which return visibility
     74         * Set initial focus to the first form focusable element.
     75         * just to avoid errors in IE 7- which return visibility
    5376         * 'inherit' when the visibility value is inherited from an ancestor.
    5477         */
     
    91114    },
    92115
     116
     117
     118
     119
     120
     121
     122
     123
    93124    I: function( id ) {
    94125        return document.getElementById( id );
Note: See TracChangeset for help on using the changeset viewer.