From dd1173de39393ba10afad050b818413f56471559 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Wed, 8 Dec 2021 14:34:11 +0800 Subject: [PATCH] Set link type radio when confirming looks-like internal When closing the alert that appears when a link looks like an internal URL, the link target text was changed but the radio button was not. This patch rectifies this. Bug: T295517 Change-Id: Ie0339f3aac8ccfd118c604602ce638539ff67e03 --- modules/jquery.wikiEditor.dialogs.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/jquery.wikiEditor.dialogs.config.js b/modules/jquery.wikiEditor.dialogs.config.js index 53867dcd..15e6c213 100644 --- a/modules/jquery.wikiEditor.dialogs.config.js +++ b/modules/jquery.wikiEditor.dialogs.config.js @@ -211,6 +211,7 @@ buttons[ mw.msg( 'wikieditor-toolbar-tool-link-lookslikeinternal-int' ) ] = function () { insertLinkTitleInputField.getField().setValue( match[ 1 ] ); + insertLinkLinkTypeField.setIsExternal( false ); $( this ).dialog( 'close' ); // Select the first match (i.e. the value set above) so that the // message under the title field will be updated correctly.