Nikerabbit has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/330192 )

Change subject: Fix JavaScript error in section restoration
......................................................................

Fix JavaScript error in section restoration

See T154279 for more details and why this doesn't actually
help much.

Change-Id: I5396e4b7de85f45d26464fa34b7b846f023a2da7
---
M modules/translation/ext.cx.translation.loader.js
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation 
refs/changes/92/330192/1

diff --git a/modules/translation/ext.cx.translation.loader.js 
b/modules/translation/ext.cx.translation.loader.js
index 1d66c96..165e5d4 100644
--- a/modules/translation/ext.cx.translation.loader.js
+++ b/modules/translation/ext.cx.translation.loader.js
@@ -308,10 +308,10 @@
                        .prop( 'id', sourceSectionId );
 
                if ( afterOrBefore === 'after' ) {
-                       $( '#' + $section.data( 'source' ) ).after( 
$dummySourceSection );
+                       mw.cx.getSourceSection( $section.data( 'source' ) 
).after( $dummySourceSection );
                        $section.after( $translation );
                } else {
-                       $( '#' + $section.data( 'source' ) ).before( 
$dummySourceSection );
+                       mw.cx.getSourceSection( $section.data( 'source' ) 
).before( $dummySourceSection );
                        $section.before( $translation );
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/330192
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5396e4b7de85f45d26464fa34b7b846f023a2da7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <niklas.laxst...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to