Changeset 49191
- Timestamp:
- 10/18/2020 05:09:46 PM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/js/_enqueues/lib/comment-reply.js
r48917 r49191 179 179 var replyHeadingElement = getElementById( config.commentReplyTitleId ); 180 180 var replyHeadingTextNode = replyHeadingElement && replyHeadingElement.firstChild; 181 var replyLinkToParent = replyHeadingTextNode && replyHeadingTextNode.nextSibling; 181 182 182 183 if ( replyHeadingTextNode && replyHeadingTextNode.nodeType === Node.TEXT_NODE && headingText ) { 184 if ( replyLinkToParent && 'A' === replyLinkToParent.nodeName && replyLinkToParent.id !== config.cancelReplyId ) { 185 replyLinkToParent.style.display = ''; 186 } 187 183 188 replyHeadingTextNode.textContent = headingText; 184 189 } … … 320 325 var replyHeading = getElementById( config.commentReplyTitleId ); 321 326 var replyHeadingTextNode = replyHeading && replyHeading.firstChild; 327 var replyLinkToParent = replyHeadingTextNode && replyHeadingTextNode.nextSibling; 322 328 323 329 if ( ! addBelowElement || ! respondElement || ! parentIdField ) { … … 343 349 344 350 if ( replyHeadingTextNode && replyHeadingTextNode.nodeType === Node.TEXT_NODE ) { 351 if ( replyLinkToParent && 'A' === replyLinkToParent.nodeName && replyLinkToParent.id !== config.cancelReplyId ) { 352 replyLinkToParent.style.display = 'none'; 353 } 354 345 355 replyHeadingTextNode.textContent = replyTo; 346 356 }
Note: See TracChangeset
for help on using the changeset viewer.