mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-24 02:48:18 +00:00
Merge "Give new-section a specific init_type to distinguish it"
This commit is contained in:
commit
dce452fe6b
|
@ -98,6 +98,10 @@ CommentController.prototype.getTranscludedFromSource = function ( commentId ) {
|
|||
return promise;
|
||||
};
|
||||
|
||||
/* Static properties */
|
||||
|
||||
CommentController.static.initType = 'page';
|
||||
|
||||
/* Methods */
|
||||
|
||||
CommentController.prototype.onReplyLinkClick = function ( e ) {
|
||||
|
@ -143,7 +147,7 @@ CommentController.prototype.setup = function ( mode ) {
|
|||
|
||||
logger( {
|
||||
action: 'init',
|
||||
type: 'page',
|
||||
type: this.constructor.static.initType || 'page',
|
||||
mechanism: 'click',
|
||||
// TODO: Use 'wikitext-2017' when config.enable2017Wikitext is set
|
||||
// eslint-disable-next-line camelcase
|
||||
|
|
|
@ -36,6 +36,10 @@ function NewTopicController( $pageContainer, $replyLink ) {
|
|||
|
||||
OO.inheritClass( NewTopicController, CommentController );
|
||||
|
||||
/* Static properties */
|
||||
|
||||
NewTopicController.static.initType = 'section';
|
||||
|
||||
/* Methods */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue