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
This commit is contained in:
Sam Wilson 2021-12-08 14:34:11 +08:00
parent 1072dcc27c
commit dd1173de39

View file

@ -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.