mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-15 03:35:58 +00:00
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:
parent
1072dcc27c
commit
dd1173de39
|
@ -211,6 +211,7 @@
|
||||||
buttons[ mw.msg( 'wikieditor-toolbar-tool-link-lookslikeinternal-int' ) ] =
|
buttons[ mw.msg( 'wikieditor-toolbar-tool-link-lookslikeinternal-int' ) ] =
|
||||||
function () {
|
function () {
|
||||||
insertLinkTitleInputField.getField().setValue( match[ 1 ] );
|
insertLinkTitleInputField.getField().setValue( match[ 1 ] );
|
||||||
|
insertLinkLinkTypeField.setIsExternal( false );
|
||||||
$( this ).dialog( 'close' );
|
$( this ).dialog( 'close' );
|
||||||
// Select the first match (i.e. the value set above) so that the
|
// Select the first match (i.e. the value set above) so that the
|
||||||
// message under the title field will be updated correctly.
|
// message under the title field will be updated correctly.
|
||||||
|
|
Loading…
Reference in a new issue