Amire80 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/204241
Change subject: Cleanup comments
......................................................................
Cleanup comments
Change-Id: Ib0f6b905f1fbb25d533920586425bdfcf6a07a48
---
M modules/tools/ext.cx.tools.reference.js
1 file changed, 5 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation
refs/changes/41/204241/1
diff --git a/modules/tools/ext.cx.tools.reference.js
b/modules/tools/ext.cx.tools.reference.js
index 3360de5..2b6c631 100644
--- a/modules/tools/ext.cx.tools.reference.js
+++ b/modules/tools/ext.cx.tools.reference.js
@@ -86,9 +86,10 @@
/**
* Get the reference content for the given reference Id.
- * The content is taken from the reference list section , linked
- * by mw-data.body.id. See T88290 and
- *
https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Ref_and_References
+ * The content is taken from the reference list section,
+ * linked by mw-data.body.id.
+ * See https://phabricator.wikimedia.org/T88290
+ * and
https://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Ref_and_References
* @param {string} referenceId The reference element Identifier.
* @return {string} The HTML content of the reference.
*/
@@ -103,6 +104,7 @@
if ( reference.body.html ) {
return reference.body.html;
}
+
referenceContentElement = document.getElementById(
reference.body.id );
return referenceContentElement &&
referenceContentElement.outerHTML;
--
To view, visit https://gerrit.wikimedia.org/r/204241
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib0f6b905f1fbb25d533920586425bdfcf6a07a48
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Amire80 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits