Fire wikipage.content hook on edit notices

Bug: T319133
Change-Id: I36efb9326a9bf0efc5ef646d49361b314fdd0b5a
This commit is contained in:
Bartosz Dziewoński 2022-10-02 11:38:33 +02:00
parent b4ff3c9f83
commit 5f32c90225

View file

@ -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() ) {