mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-18 02:51:26 +00:00
5af3e90fec
To avoid affecting existing preload forms, the new topic tool is only used when the 'dtpreload' query parameter is also set. Bug: T269310 Change-Id: I4ee024cc4760542790319f302f42b1b2389ac897
24 lines
926 B
JavaScript
24 lines
926 B
JavaScript
/**
|
|
* More information about a comment obtained from various APIs, rather than parsed from the page.
|
|
*
|
|
* @class CommentDetails
|
|
* @constructor
|
|
* @param {string} pageName Page name the reply is being saved to
|
|
* @param {number} oldId Revision ID of page at time of editing
|
|
* @param {Object.<string,string>} notices Edit notices for the page where the reply is being saved.
|
|
* Keys are message names; values are HTML to display.
|
|
* @param {string} preloadContent Preload content, may be wikitext or HTML depending on `preloadContentMode`
|
|
* @param {string} preloadContentMode 'source' or 'visual'
|
|
*/
|
|
function CommentDetails( pageName, oldId, notices, preloadContent, preloadContentMode ) {
|
|
this.pageName = pageName;
|
|
this.oldId = oldId;
|
|
this.notices = notices;
|
|
this.preloadContent = preloadContent;
|
|
this.preloadContentMode = preloadContentMode;
|
|
}
|
|
|
|
OO.initClass( CommentDetails );
|
|
|
|
module.exports = CommentDetails;
|