mediawiki-extensions-Visual.../modules/ve-mw/dm/models
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.dm.MWImageModel.js Support the upcoming mw:File typeof 2022-06-10 14:29:31 -04:00
ve.dm.MWParameterModel.js Add missing @fires documentation tags 2021-09-30 15:50:33 +00:00
ve.dm.MWTemplateModel.js Move .addPromptedParameters() calls to more canonical places 2022-06-28 08:40:24 +02:00
ve.dm.MWTemplatePlaceholderModel.js Remove redundant ve.dm.MWTemplatePlaceholderModel.isEmpty 2021-08-03 14:40:50 +02:00
ve.dm.MWTemplateSpecModel.js Remove/update template related comments that just repeat the code 2022-04-19 13:58:32 +02:00
ve.dm.MWTransclusionContentModel.js Add missing @fires documentation tags 2021-09-30 15:50:33 +00:00
ve.dm.MWTransclusionModel.js Move .addPromptedParameters() calls to more canonical places 2022-06-28 08:40:24 +02:00
ve.dm.MWTransclusionPartModel.js Move .addPromptedParameters() calls to more canonical places 2022-06-28 08:40:24 +02:00