mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 02:23:58 +00:00
7457834dc5
Factor out the logic for whether the WelcomeDialog should be shown into its own method, and write it in a less confusing way. Do the same thing with the logic for setting the preference/storage/cookie for hiding the WelcomeDialog. This makes maybeShowWelcomeDialog() much simpler, and removes duplicated code in DesktopArticleTarget. There is one minor change in behavior: if the WelcomeDialog is suppressed using the URL parameter, that no longer causes the preference to be updated as if the dialog had been shown. Change-Id: I1d4f912c5f6bd7a2bbad2b209b97c3ec1f250a07 |
||
---|---|---|
.. | ||
apiresponsecache | ||
styles | ||
targets | ||
ve.init.mw.ArticleTargetEvents.js | ||
ve.init.mw.js | ||
ve.init.mw.Platform.init.js | ||
ve.init.mw.Platform.js | ||
ve.init.mw.SaveErrorHandler.js | ||
ve.init.mw.trackSubscriber.js | ||
ve.init.mw.ViewportZoomHandler.js |