From 5f32c90225cbed6d584d5cc5a0820cc1b422a0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Sun, 2 Oct 2022 11:38:33 +0200 Subject: [PATCH] Fire wikipage.content hook on edit notices Bug: T319133 Change-Id: I36efb9326a9bf0efc5ef646d49361b314fdd0b5a --- modules/NewTopicController.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/NewTopicController.js b/modules/NewTopicController.js index 70b03754f..9d93da9c9 100644 --- a/modules/NewTopicController.js +++ b/modules/NewTopicController.js @@ -118,6 +118,7 @@ NewTopicController.prototype.setupReplyWidget = function ( replyWidget ) { .html( typeof noticeItem === 'string' ? noticeItem : noticeItem.message ); this.$notices.append( $noticeElement ); } + mw.hook( 'wikipage.content' ).fire( this.$notices ); var title = this.replyWidget.storage.get( this.replyWidget.storagePrefix + '/title' ); if ( title && !this.sectionTitle.getValue() ) {