mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-30 19:16:39 +00:00
Allow inspectors to position beyond the surface
Change-Id: I3cd0e433ea117b1b469e5a2111f4c7988c48abfd
This commit is contained in:
parent
9b581769a7
commit
2aa6e5f583
|
@ -67,6 +67,13 @@ CommentTarget.prototype.attachToolbar = function () {
|
|||
this.$element.parent().parent().prepend( this.getToolbar().$element );
|
||||
};
|
||||
|
||||
CommentTarget.prototype.getSurfaceConfig = function ( config ) {
|
||||
return CommentTarget.super.prototype.getSurfaceConfig.call( this, ve.extendObject( {
|
||||
// eslint-disable-next-line no-jquery/no-global-selector
|
||||
$overlayContainer: $( '#content' )
|
||||
}, config ) );
|
||||
};
|
||||
|
||||
/* Registration */
|
||||
|
||||
ve.init.mw.targetFactory.register( CommentTarget );
|
||||
|
|
Loading…
Reference in a new issue