mediawiki-extensions-Visual.../modules/ve-mw/dm
Thiemo Kreuz 7503b323b1 Stop re-creating template parameter pages over and over again
This is what actually happens:
* We call `addParameter()`.
* This triggers an `add` event.
* This calls an `MWTemplateDialog.onAddParameter` event handler.
* This code doesn't check if a parameter already exists (because
  it shouldn't). It detroys the page in the content pane on the
  right and recreates it from scratch.

The only reason we do this is to focus the input field on the
right. This patch introduces a dedicated event to do this.

Bug: T288827
Change-Id: I47effe05427cfabfcf534920edee79521eaa033f
2021-08-17 13:34:41 +02:00
..
annotations MWExternalLinkAnnotation: Call core method to evaluate diff 2021-01-22 17:33:24 +00:00
metaitems MWCategoryMetaItem: Allow trailing whitespace (e.g. \n) in category names 2020-10-06 12:17:30 -07:00
models Stop re-creating template parameter pages over and over again 2021-08-17 13:34:41 +02:00
nodes Merge "Rewrite MWTransclusionNode.isSingleTemplate for readability" 2021-07-01 11:21:44 +00: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 Remove/fix a few small pieces of unused code 2021-05-21 11:43:45 +00:00