mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-11 00:02:43 +00:00
8b2e0d7be9
Depends-On: I2ea656a8a1704a495f1a94fede1a8829ba7325a1 Depends-On: I84ce108b4d46b4e19fad032382f8b69a1b0065d5 Bug: T332432 Change-Id: I8487d7d249c66bf3c3c60120f490a6ba72745aac
27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
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 {boolean} wouldAutoCreate Whether saving the comment would automatically create a
|
|
* temporary account if the user is logged out
|
|
* @param {string} preloadContent Preload content, may be wikitext or HTML depending on `preloadContentMode`
|
|
* @param {string} preloadContentMode 'source' or 'visual'
|
|
*/
|
|
function CommentDetails( pageName, oldId, notices, wouldAutoCreate, preloadContent, preloadContentMode ) {
|
|
this.pageName = pageName;
|
|
this.oldId = oldId;
|
|
this.notices = notices;
|
|
this.wouldAutoCreate = wouldAutoCreate;
|
|
this.preloadContent = preloadContent;
|
|
this.preloadContentMode = preloadContentMode;
|
|
}
|
|
|
|
OO.initClass( CommentDetails );
|
|
|
|
module.exports = CommentDetails;
|