Santhosh has uploaded a new change for review.

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

Change subject: FIX: Not able to set cursor in previous sections
......................................................................

FIX: Not able to set cursor in previous sections

Regression from I3dc3fcbb574cb4c27dcee6d4d867f70e86264feb

Selection restore was happening in wrong place.

Bug: T107990
Change-Id: Id599538cc4b434aac0932d51a7f8d4f69a6d039a
---
M modules/tools/ext.cx.tools.mt.js
1 file changed, 2 insertions(+), 3 deletions(-)


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

diff --git a/modules/tools/ext.cx.tools.mt.js b/modules/tools/ext.cx.tools.mt.js
index 4aef582..705a382 100644
--- a/modules/tools/ext.cx.tools.mt.js
+++ b/modules/tools/ext.cx.tools.mt.js
@@ -390,9 +390,6 @@
                }
                // Set the main label
                this.$providerSelectorTrigger.text( this.getProviderTitle( 
providerId ) );
-
-               // Restore the selection
-               mw.cx.selection.restore( 'translation' );
        };
 
        /*
@@ -426,6 +423,8 @@
                this.$providersMenu.find( '.card__providers-menu-item' )
                        .on( 'click', function () {
                                self.selectProvider( $( this ).data( 'provider' 
) );
+                               // Restore the selection
+                               mw.cx.selection.restore( 'translation' );
                        } )
                        .on( 'mouseenter mouseleave', $.proxy( 
this.toggleSectionHighlight, this ) );
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id599538cc4b434aac0932d51a7f8d4f69a6d039a
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