mediawiki-extensions-Visual.../modules/ve-mw/dm
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
..
annotations Update VE core submodule to master (38b8213b5) 2022-03-31 13:01:51 +02:00
metaitems Merge "Move var declarations inline" 2021-10-22 19:40:49 +00:00
models Move .addPromptedParameters() calls to more canonical places 2022-06-28 08:40:24 +02:00
nodes Support the upcoming mw:File typeof 2022-06-10 14:29:31 -04:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.16.0 2020-06-02 21:30:00 +01:00
ve.dm.MWWikitextSurface.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.dm.MWWikitextSurfaceFragment.js Use boolean RegExp.test() instead of .match() where possible 2022-03-24 11:04:43 +01:00