Santhosh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/207059

Change subject: If URL contains any of titles or languages, fill and show 
source selector
......................................................................

If URL contains any of titles or languages, fill and show source selector

Currently we do that only when all parameters are present in URL

Bug: T91930
Change-Id: Ieba3333713cb716710177fc0efc4d024d78e4f36
---
M modules/source/ext.cx.source.selector.js
1 file changed, 3 insertions(+), 3 deletions(-)


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

diff --git a/modules/source/ext.cx.source.selector.js 
b/modules/source/ext.cx.source.selector.js
index 3525068..d928bfa 100644
--- a/modules/source/ext.cx.source.selector.js
+++ b/modules/source/ext.cx.source.selector.js
@@ -100,10 +100,10 @@
                        this.$targetTitleInput.val( this.options.targetTitle 
).trigger( 'input' );
                }
 
-               // If all the values are already present,
+               // If any of the values are already present,
                // show the dialog and initiate a validation.
-               if ( this.options.sourceLanguage && this.options.targetLanguage 
&&
-                       this.options.sourceTitle && this.options.targetTitle
+               if ( this.options.sourceLanguage || this.options.targetLanguage 
||
+                       this.options.sourceTitle || this.options.targetTitle
                ) {
                        this.show();
                        this.check();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieba3333713cb716710177fc0efc4d024d78e4f36
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com>

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

Reply via email to