mediawiki-extensions-Visual.../modules/ve-mw/ui/pages
Thiemo Kreuz 76f563c929 Move .addPromptedParameters() calls to more canonical places
This was done in 3 rather "random" places:
1. Whenever a template is manually added. But rather late, after the
   template was added, in an event handler that is about focus
   behavior. It should not continue to manipulate the template that
   was just added.
2. When the dialog opens with a template preloaded by name, as it is
   done from the citation menu.
3. When the dialog is about to finish loading.

This patch fixes 2 issues:
* Get rid of a duplicate call (number 2 and 3) when using the
  citation menu.
* Move number 1 to a place where it's executed much earlier, and
  only when the user clicks "add template" in a template placeholder.
  There is no other way to add a template to an existing transclusion,
  but it's still a more appropriate place I feel.

Bug: T311069
Change-Id: I8a65ad703b95ba2092e9ef73493e9903e96b0dd6
2022-06-28 08:40:24 +02:00
..
ve.ui.MWAddParameterPage.js Remove invisible stuff from BookletLayout OutlineItems 2022-06-20 09:31:53 +00:00
ve.ui.MWAdvancedSettingsPage.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWCategoriesPage.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWLanguagesPage.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWParameterPage.js Inline template parameter id to page name connection 2022-06-23 12:24:08 +02:00
ve.ui.MWSettingsPage.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWTemplatePage.js Remove dead code in MWTemplatePage 2022-06-22 00:20:00 +00:00
ve.ui.MWTemplatePlaceholderPage.js Move .addPromptedParameters() calls to more canonical places 2022-06-28 08:40:24 +02:00
ve.ui.MWTemplatesUsedPage.js eslint: Enable no-jquery/no-append-html 2021-12-16 02:04:11 +01:00
ve.ui.MWTransclusionContentPage.js Remove invisible stuff from BookletLayout OutlineItems 2022-06-20 09:31:53 +00:00