Fix link annotation from inspector by changing link type to wikiLink

Change-Id: I5b3497755c6a13e2767f59cc5c95b3e4b43b3be7
This commit is contained in:
Rob Moen 2012-06-11 12:55:16 -07:00
parent a0d5cbd42a
commit 29c76e6dd4
2 changed files with 1 additions and 2 deletions

View file

@ -83,7 +83,7 @@ ve.ui.LinkInspector.prototype.onClose = function( accept ) {
}
var surfaceModel = this.context.getSurfaceView().model;
surfaceModel.annotate( 'clear', /link\/.*/ );
surfaceModel.annotate( 'set', { 'type': 'link/internal', 'data': { 'title': title } } );
surfaceModel.annotate( 'set', { 'type': 'link/wikiLink', 'data': { 'title': title } } );
}
};

View file

@ -162,7 +162,6 @@ ve.ui.Context.prototype.openInspector = function( name ) {
this.inspectors[name].open();
this.positionOverlay( this.$inspectors );
this.$inspectors.show();
this.positionOverlay( this.$inspectors );
//this.positionOverlay( this.inspectors[name].$ );
this.inspector = name;
};