mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Fire wikipage.content hook on edit notices
Bug: T319133 Change-Id: I36efb9326a9bf0efc5ef646d49361b314fdd0b5a
This commit is contained in:
parent
b4ff3c9f83
commit
5f32c90225
|
@ -118,6 +118,7 @@ NewTopicController.prototype.setupReplyWidget = function ( replyWidget ) {
|
||||||
.html( typeof noticeItem === 'string' ? noticeItem : noticeItem.message );
|
.html( typeof noticeItem === 'string' ? noticeItem : noticeItem.message );
|
||||||
this.$notices.append( $noticeElement );
|
this.$notices.append( $noticeElement );
|
||||||
}
|
}
|
||||||
|
mw.hook( 'wikipage.content' ).fire( this.$notices );
|
||||||
|
|
||||||
var title = this.replyWidget.storage.get( this.replyWidget.storagePrefix + '/title' );
|
var title = this.replyWidget.storage.get( this.replyWidget.storagePrefix + '/title' );
|
||||||
if ( title && !this.sectionTitle.getValue() ) {
|
if ( title && !this.sectionTitle.getValue() ) {
|
||||||
|
|
Loading…
Reference in a new issue