mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 02:48:18 +00:00
Remove compatibility code for 'data-mw-comment-start' change
No longer needed.
This reverts commit f727c988a0
.
Change-Id: Ib67d30890c6542bd0235dac6e49870c038d5dd86
This commit is contained in:
parent
f727c988a0
commit
9e255d82ca
|
@ -85,8 +85,7 @@ ThreadItem.static.newFromJSON = function ( json, commentsById ) {
|
|||
|
||||
idEscaped = $.escapeSelector( item.id );
|
||||
item.range = {
|
||||
// Check old selector for compatibility with cached HTML
|
||||
startContainer: document.getElementById( item.id ) || document.querySelector( '[data-mw-comment-start="' + idEscaped + '"]' ),
|
||||
startContainer: document.getElementById( item.id ),
|
||||
startOffset: 0,
|
||||
endContainer: document.querySelector( '[data-mw-comment-end="' + idEscaped + '"]' ),
|
||||
endOffset: 0
|
||||
|
|
Loading…
Reference in a new issue