Merge "Make inserting existing references work again"

This commit is contained in:
jenkins-bot 2014-04-30 21:33:24 +00:00 committed by Gerrit Code Review
commit 8f846c502e

View file

@ -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();
}
};