mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Hide label section in MagicLinkNodeContextItem"
This commit is contained in:
commit
34e8aef6e4
|
@ -52,6 +52,15 @@ ve.ui.MWMagicLinkNodeContextItem.prototype.getDescription = function () {
|
|||
return this.model.getAttribute( 'content' );
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
ve.ui.MWMagicLinkNodeContextItem.prototype.renderBody = function () {
|
||||
// Parent method
|
||||
ve.ui.MWMagicLinkNodeContextItem.super.prototype.renderBody.apply( this, arguments );
|
||||
|
||||
this.$labelLayout.remove();
|
||||
};
|
||||
/* Registration */
|
||||
|
||||
ve.ui.contextItemFactory.register( ve.ui.MWMagicLinkNodeContextItem );
|
||||
|
|
Loading…
Reference in a new issue