mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-28 10:11:45 +00:00
Remove unsupported argument from getWikitextFragment
This was removed upstream due to a regression. We don't need it right now, but may need it in the future to support editing, so replace with a TODO. Change-Id: Ia73657080241319df309f3b6566ac0ac36a5909d
This commit is contained in:
parent
303b233ca1
commit
83968e4c00
|
@ -415,19 +415,12 @@ CommentController.prototype.save = function ( parsoidData ) {
|
|||
CommentController.prototype.switchToWikitext = function () {
|
||||
var wikitextPromise,
|
||||
oldWidget = this.replyWidget,
|
||||
pageData = oldWidget.parsoidData.pageData,
|
||||
target = oldWidget.replyBodyWidget.target,
|
||||
previewDeferred = $.Deferred(),
|
||||
commentController = this;
|
||||
|
||||
wikitextPromise = target.getWikitextFragment(
|
||||
target.getSurface().getModel().getDocument(),
|
||||
{
|
||||
page: pageData.pageName,
|
||||
baserevid: pageData.oldId,
|
||||
etag: pageData.etag
|
||||
}
|
||||
);
|
||||
// TODO: We may need to pass oldid/etag when editing is supported
|
||||
wikitextPromise = target.getWikitextFragment( target.getSurface().getModel().getDocument() );
|
||||
this.replyWidgetPromise = this.createReplyWidget( oldWidget.parsoidData, false );
|
||||
|
||||
return $.when( wikitextPromise, this.replyWidgetPromise ).then( function ( wikitext, replyWidget ) {
|
||||
|
|
Loading…
Reference in a new issue