Esanders has uploaded a new change for review.

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

Change subject: MWLinkAnnotationInspector: Close inspector when a search result 
is clicked
......................................................................

MWLinkAnnotationInspector: Close inspector when a search result is clicked

Change-Id: Id473b45a222d53f6bca0168dad4adf536ccdf97a
---
M modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor 
refs/changes/86/244886/1

diff --git a/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js 
b/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
index 48afb2b..2f6b190 100644
--- a/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
+++ b/modules/ve-mw/ui/inspectors/ve.ui.MWLinkAnnotationInspector.js
@@ -74,6 +74,7 @@
        this.linkTypeIndex.connect( this, { set: 'onLinkTypeIndexSet' } );
        this.internalAnnotationInput.connect( this, { change: 
'onInternalLinkChange' } );
        this.externalAnnotationInput.connect( this, { change: 
'onExternalLinkChange' } );
+       this.internalAnnotationInput.getResults().connect( this, { choose: 
'onFormSubmit' } );
        // Form submit only auto triggers on enter when there is one input
        this.internalAnnotationInput.getTextInputWidget().connect( this, { 
enter: 'onFormSubmit' } );
        this.externalAnnotationInput.getTextInputWidget().connect( this, { 
enter: 'onFormSubmit' } );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id473b45a222d53f6bca0168dad4adf536ccdf97a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: Esanders <esand...@wikimedia.org>

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

Reply via email to