mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "Make inserting existing references work again"
This commit is contained in:
commit
8f846c502e
|
@ -150,7 +150,8 @@ ve.ui.MWReferenceDialog.prototype.onDocumentTransact = function () {
|
|||
ve.ui.MWReferenceDialog.prototype.onSearchSelect = function ( ref ) {
|
||||
if ( ref instanceof ve.dm.MWReferenceModel ) {
|
||||
this.useReference( ref );
|
||||
this.close( { 'action': 'insert' } );
|
||||
// HACK - This proves that the interface for ActionDialog is screwed up
|
||||
this.onApplyButtonClick();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue