jenkins-bot has submitted this change and it was merged.
Change subject: Alignment: Align source title heading on target title change
......................................................................
Alignment: Align source title heading on target title change
Bug: T86660
Change-Id: I782e293dc17bbd802889c4c1d49e62687f243f65
---
M modules/publish/ext.cx.publish.js
M modules/util/ext.cx.util.js
2 files changed, 5 insertions(+), 3 deletions(-)
Approvals:
Jsahleen: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/publish/ext.cx.publish.js
b/modules/publish/ext.cx.publish.js
index 633773c..75c6176 100644
--- a/modules/publish/ext.cx.publish.js
+++ b/modules/publish/ext.cx.publish.js
@@ -195,7 +195,9 @@
categories: categories,
progress: JSON.stringify(
mw.cx.getProgress() )
} ).done( function () {
- $( '.cx-column--translation >
h2' ).text( publishedTitle );
+ $( '.cx-column--translation >
h2' )
+ .text( publishedTitle )
+ .trigger( 'input' );
mw.hook( 'mw.cx.success' )
.fire( mw.message(
'cx-publish-page-success',
$( '<a>' ).attr( {
diff --git a/modules/util/ext.cx.util.js b/modules/util/ext.cx.util.js
index e0026f0..0a35eb7 100644
--- a/modules/util/ext.cx.util.js
+++ b/modules/util/ext.cx.util.js
@@ -38,8 +38,8 @@
};
mw.cx.getSourceSection = function ( id ) {
- // Sanity check
- if ( isNaN( id ) ) {
+ // Sanity check, id should be either a number or prefixed with
cx
+ if ( isNaN( id ) && id.indexOf( 'cx') !== 0 ) {
return $( [] );
} else {
return $( document.getElementById( id ) );
--
To view, visit https://gerrit.wikimedia.org/r/188252
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I782e293dc17bbd802889c4c1d49e62687f243f65
Gerrit-PatchSet: 8
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Jsahleen <[email protected]>
Gerrit-Reviewer: Amire80 <[email protected]>
Gerrit-Reviewer: Jsahleen <[email protected]>
Gerrit-Reviewer: Santhosh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits