mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 10:59:56 +00:00
190237ee28
This dramatically simplifies the "mode" flag in MWTransclusionDialog. The main reason to touch this code is: The flag appears like it will be "single" when the dialog contains a single template, and "multiple" when there are multiple templates. But this is not true. What the flag really does is show/hide the sidebar. The sidebar is needed to be able to create multi-part templates. But a dialog that already contains multiple templates can be set to "single" mode (i.e. the user can collapse the sidebar), and vice versa. This patch focuses on private details inside of this class, but keeps the terminology of a "mode" in some places. E.g. the messages are not renamed to not cause unnecessary trouble for translators. Change-Id: Ib029fd48b393d2ab7d7cff6c842789e22989e944 |
||
---|---|---|
.. | ||
apex | ||
contextitems | ||
dialogs | ||
elements | ||
images | ||
inspectors | ||
pages | ||
tools | ||
widgets | ||
wikimediaui | ||
ve.ui.MWWikitextSurface.css |