mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Reset location input between opening the link inspector
This commit is contained in:
parent
4b764f7524
commit
ef35fc2be2
|
@ -53,6 +53,8 @@ es.LinkInspector.prototype.onOpen = function() {
|
|||
var title = this.getTitleFromSelection();
|
||||
if ( title !== null ) {
|
||||
this.$locationInput.val( title );
|
||||
} else {
|
||||
this.$locationInput.val( '' );
|
||||
}
|
||||
this.$locationInput.focus();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue