mediawiki-extensions-Visual.../modules/ve-mw/dm/models
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
..
ve.dm.MWImageModel.js Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
ve.dm.MWParameterModel.js Merge "Fix incomplete template dialog event handling in new sidebar" 2021-07-16 13:07:03 +00:00
ve.dm.MWTemplateModel.js Stop re-creating template parameter pages over and over again 2021-08-17 13:34:41 +02:00
ve.dm.MWTemplatePlaceholderModel.js Remove redundant ve.dm.MWTemplatePlaceholderModel.isEmpty 2021-08-03 14:40:50 +02:00
ve.dm.MWTemplateSpecModel.js Add isDocumented() feature to ve.dm.MWTemplateSpecModel 2021-08-13 12:47:28 +02:00
ve.dm.MWTransclusionContentModel.js Better name for ambiguous "empty" concept in the model 2021-08-06 15:11:44 +02:00
ve.dm.MWTransclusionModel.js Merge "Split MWTransclusionModel methods to do one thing only" 2021-08-05 10:32:18 +00:00
ve.dm.MWTransclusionPartModel.js Better name for ambiguous "empty" concept in the model 2021-08-06 15:11:44 +02:00