mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 09:43:30 +00:00
Merge "ReplyWidget: Pass 'title' when previewing"
This commit is contained in:
commit
45e811a688
|
@ -164,7 +164,10 @@ ReplyWidget.prototype.onInputChange = function () {
|
|||
wikitext = controller.autoSign( wikitext );
|
||||
wikitext = wikitext.slice( 0, -4 ) + '<span style="opacity: 0.5;">~~~~</span>';
|
||||
wikitext = indent + wikitext.replace( /\n/g, '\n' + indent );
|
||||
this.previewRequest = parsePromise = this.api.parse( wikitext, { pst: true } );
|
||||
this.previewRequest = parsePromise = this.api.parse( wikitext, {
|
||||
pst: true,
|
||||
title: mw.config.get( 'wgPageName' )
|
||||
} );
|
||||
}
|
||||
// TODO: Add list context
|
||||
|
||||
|
|
Loading…
Reference in a new issue