mediawiki-extensions-Visual.../modules/ve-mw
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
..
ce eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
dm eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
init ArticleTarget: Clean up WelcomeDialog show/hide handling 2020-04-17 15:46:07 -07:00
preinit eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
tests ve.dm.MWGalleryNode: Preserve 'class' attribute unchanged 2020-02-14 22:05:50 +01:00
themes doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ui eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00