Merge "Give new-section a specific init_type to distinguish it"

This commit is contained in:
jenkins-bot 2021-01-12 22:02:13 +00:00 committed by Gerrit Code Review
commit dce452fe6b
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -36,6 +36,10 @@ function NewTopicController( $pageContainer, $replyLink ) {
OO.inheritClass( NewTopicController, CommentController );
/* Static properties */
NewTopicController.static.initType = 'section';
/* Methods */
/**