mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 10:59:56 +00:00
7503b323b1
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 |
||
---|---|---|
.. | ||
annotations | ||
metaitems | ||
models | ||
nodes | ||
.eslintrc.json | ||
ve.dm.MWWikitextSurface.js | ||
ve.dm.MWWikitextSurfaceFragment.js |