mediawiki-extensions-Visual.../modules/ve-mw/init
Roan Kattouw 7457834dc5 ArticleTarget: Clean up WelcomeDialog show/hide handling
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
2020-04-17 15:46:07 -07:00
..
apiresponsecache doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
styles Remove hack to avoid iOS Safari menu bar area tap stealing 2020-01-31 21:22:23 +00:00
targets ArticleTarget: Clean up WelcomeDialog show/hide handling 2020-04-17 15:46:07 -07:00
ve.init.mw.ArticleTargetEvents.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.Platform.init.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.Platform.js Update VE core submodule to master (cf72879d2) 2020-03-19 12:26:26 -07:00
ve.init.mw.SaveErrorHandler.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.trackSubscriber.js Fix EditAttemptStep events logged with revision_id=0 2020-02-11 19:37:22 +01:00
ve.init.mw.ViewportZoomHandler.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00