Changeset 41314
- Timestamp:
- 08/24/2017 05:57:18 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/comment-reply.js
r35675 r41314 1 /** 2 * @summary Handles the addition of the comment form. 3 * 4 * @since 2.7.0 5 * 6 * @type {Object} 7 */ 1 8 var addComment = { 9 /** 10 * @summary Retrieves the elements corresponding to the given IDs. 11 * 12 * @since 2.7.0 13 * 14 * @param {string} commId The comment ID. 15 * @param {string} parentId The parent ID. 16 * @param {string} respondId The respond ID. 17 * @param {string} postId The post ID. 18 * @returns {boolean} Always returns false. 19 */ 2 20 moveForm: function( commId, parentId, respondId, postId ) { 3 21 var div, element, style, cssHidden, … … 31 49 cancel.style.display = ''; 32 50 51 /** 52 * @summary Puts back the comment, hides the cancel button and removes the onclick event. 53 * 54 * @returns {boolean} Always returns false. 55 */ 33 56 cancel.onclick = function() { 34 57 var t = addComment, … … 49 72 50 73 /* 51 * Set initial focus to the first form focusable element.52 * Try/catch usedjust to avoid errors in IE 7- which return visibility74 * Sets initial focus to the first form focusable element. 75 * Uses try/catch just to avoid errors in IE 7- which return visibility 53 76 * 'inherit' when the visibility value is inherited from an ancestor. 54 77 */ … … 91 114 }, 92 115 116 /** 117 * @summary Returns the object corresponding to the given ID. 118 * 119 * @since 2.7.0 120 * 121 * @param {string} id The ID. 122 * @returns {Element} The element belonging to the ID. 123 */ 93 124 I: function( id ) { 94 125 return document.getElementById( id );
Note: See TracChangeset
for help on using the changeset viewer.