DLynch has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/366279 )
Change subject: ArticleTarget: set local config to hide welcome dialog ...................................................................... ArticleTarget: set local config to hide welcome dialog This stops the welcome dialog from being displayed repeatedly if the user edits the article multiple times in the same pageload. Bug: T170983 Change-Id: I8cc5990e9acb1ac09a2d6dd95eef8042c70088c7 --- M modules/ve-mw/init/ve.init.mw.ArticleTarget.js 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/VisualEditor refs/changes/79/366279/1 diff --git a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js index ffa9d12..9672b02 100644 --- a/modules/ve-mw/init/ve.init.mw.ArticleTarget.js +++ b/modules/ve-mw/init/ve.init.mw.ArticleTarget.js @@ -2159,6 +2159,7 @@ if ( prefSaysShow ) { new mw.Api().saveOption( 'visualeditor-hidebetawelcome', '1' ); + mw.user.options.set( 'visualeditor-hidebetawelcome', '1' ); // No need to set a cookie every time for logged-in users that have already // set the hidebetawelcome=1 preference, but only if this isn't a one-off -- To view, visit https://gerrit.wikimedia.org/r/366279 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8cc5990e9acb1ac09a2d6dd95eef8042c70088c7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/VisualEditor Gerrit-Branch: master Gerrit-Owner: DLynch <dly...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits