mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Add postEdit notification
Per T267595#6656121 Bug: T268994 Change-Id: I2c47fc36ff6515b1f5f5e6bfd11f41eec9c1cd86
This commit is contained in:
parent
4f0c999553
commit
7c01e20e47
|
@ -67,6 +67,7 @@
|
|||
"moment",
|
||||
"rangefix",
|
||||
"oojs-ui-windows",
|
||||
"mediawiki.action.view.postEdit",
|
||||
"mediawiki.Title",
|
||||
"mediawiki.Uri",
|
||||
"mediawiki.util",
|
||||
|
@ -76,6 +77,7 @@
|
|||
"ext.visualEditor.core.utils.parsing"
|
||||
],
|
||||
"messages": [
|
||||
"discussiontools-postedit-confirmation-published",
|
||||
"discussiontools-error-comment-conflict",
|
||||
"discussiontools-error-comment-disappeared",
|
||||
"discussiontools-error-comment-is-transcluded",
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
"discussiontools-error-noswitchtove-table": "table syntax",
|
||||
"discussiontools-error-noswitchtove-template": "template syntax",
|
||||
"discussiontools-error-noswitchtove-title": "Visual mode disabled",
|
||||
"discussiontools-postedit-confirmation-published": "Your comment was published.",
|
||||
"tag-discussiontools": "-",
|
||||
"tag-discussiontools-description": "Edit made using DiscussionTools",
|
||||
"tag-discussiontools-edit": "Edit comment",
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
"discussiontools-error-noswitchtove-table": "Type of syntax detected, used as a parameter in {{msg-mw|discussiontools-error-noswitchtove}}.",
|
||||
"discussiontools-error-noswitchtove-template": "Type of syntax detected, used as a parameter in {{msg-mw|discussiontools-error-noswitchtove}}.",
|
||||
"discussiontools-error-noswitchtove-title": "Type of syntax detected, used as a parameter in {{msg-mw|discussiontools-error-noswitchtove}}.",
|
||||
"discussiontools-postedit-confirmation-published": "{{gender}}\nShown after a user publishes a comment on a page. Parameters:\n* $1 - the current user, for GENDER support\n\nSee also: {{msg-mw|postedit-confirmation-published}}",
|
||||
"tag-discussiontools": "{{ignored}}Short description of the discussiontools tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit made using DiscussionTools.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-description}}\n{{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-description": "Long description of the discussiontools tag ({{msg-mw|Tag-discussiontools}}).\n\nShown on [[Special:Tags]].\n\nSee also:\n* {{msg-mw|Tag-discussiontools}}\n{{Related|tag-discussiontools}}",
|
||||
"tag-discussiontools-edit": "Short description of the discussiontools-edit tag.\n\nShown on lists of changes (history, recentchanges, etc.) for each edit to an existing comment made using DiscussionTools.\n\nThis message is always shown directly after {{msg-mw|tag-discussiontools}} and a comma.\n\nSee also:\n* {{msg-mw|Tag-discussiontools-edit-description}}\n{{Related|tag-discussiontools}}",
|
||||
|
|
|
@ -263,6 +263,12 @@ function init( $container, state ) {
|
|||
highlight( repliedToComment.replies[ repliedToComment.replies.length - 1 ] );
|
||||
}
|
||||
|
||||
if ( state.repliedTo ) {
|
||||
mw.hook( 'postEdit' ).fire( {
|
||||
message: mw.msg( 'discussiontools-postedit-confirmation-published', mw.user )
|
||||
} );
|
||||
}
|
||||
|
||||
// Preload page metadata.
|
||||
// TODO: Isn't this too early to load it? We will only need it if the user tries replying...
|
||||
getPageData(
|
||||
|
|
Loading…
Reference in a new issue