diff --git a/extension.json b/extension.json index 02c83bec1d..5a757a3862 100644 --- a/extension.json +++ b/extension.json @@ -406,10 +406,6 @@ "accesskey-ca-editsource", "accesskey-ca-ve-edit", "pipe-separator", - "postedit-confirmation-created", - "postedit-confirmation-published", - "postedit-confirmation-restored", - "postedit-confirmation-saved", "tooltip-ca-createsource", "tooltip-ca-edit", "tooltip-ca-editsource", @@ -500,6 +496,8 @@ "lastmodifiedat", "mw-widgets-abandonedit", "pagetitle", + "postedit-confirmation-published", + "postedit-confirmation-saved", "visualeditor-section-body-placeholder", "visualeditor-section-title-placeholder" ] diff --git a/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js b/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js index d8fc49eedb..d6e1c4f0d4 100644 --- a/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js +++ b/modules/ve-mw/preinit/ve.init.mw.DesktopArticleTarget.init.js @@ -1698,24 +1698,9 @@ // TODO: Also set wgPostEdit on non-redirecting edits (T240041) mw.config.set( 'wgPostEdit', notify ); - // Load postEdit code to execute the queued event below, which will handle it once it arrives + // Loadomg postEdit code will trigger the post edit notification as wgPostEdit is set mw.loader.load( 'mediawiki.action.view.postEdit' ); - var messageSuffix; - if ( notify === 'saved' ) { - messageSuffix = mw.config.get( 'wgEditSubmitButtonLabelPublish' ) ? 'published' : 'saved'; - } else { - messageSuffix = notify; - } - mw.hook( 'postEdit' ).fire( { - // The following messages can be used here: - // * postedit-confirmation-published - // * postedit-confirmation-saved - // * postedit-confirmation-created - // * postedit-confirmation-restored - message: mw.msg( 'postedit-confirmation-' + messageSuffix, mw.user ) - } ); - delete uri.query.venotify; // Get rid of the ?venotify= from the URL if ( history.replaceState ) {