mediawiki-extensions-Visual.../modules/ve-mw/ui
Thiemo Kreuz 301c84bda4 Call focusPart() only once in MWTemplateDialog.onReplacePart()
This merges all code-paths that re-select a part (i.e. an input
widget on the right side of the template dialog).

Note there is an edge-case that actually changes with this
patch. When a page is removed, and creating a new page fails,
there is an `if ( page )` check. Before, the behavior was that
nothing gets selected in this case. After this change the
behavior is the same as if a page was removed: the closest one
gets selected. Not only does this make more sense. The `if` is
only a fail-safe anyway and should not result in different
behavior.

Bug: T288827
Change-Id: Ibb0260587588fb51a876658b16a81c5a73371dc4
2021-08-20 09:49:30 +02:00
..
actions MWLinkAction: update call to window.open 2020-10-08 18:37:47 +00:00
commands doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
contextitems Remove @param/@return docs that literally repeat the code 2021-06-14 15:44:51 +02:00
datatransferhandlers MWWikitextStringTransferHandler: Factor out Parsoid->DOM conversion 2021-01-20 19:49:27 +00:00
dialogs Call focusPart() only once in MWTemplateDialog.onReplacePart() 2021-08-20 09:49:30 +02:00
elements Add icons to the show/hide button in the ExpandableContentElement 2021-06-29 08:33:22 +00:00
inspectors Merge "Don't show toolbar in MWLanguageVariantInspector text targets" 2021-08-10 01:17:08 +00:00
pages Remove parameter adding on new sidebar code 2021-08-19 08:18:55 +00:00
styles Merge "Make template parameter checkbox widget an OptionWidget" 2021-08-18 09:31:52 +00:00
tools Merge "ve.ui.MWBackTool: Avoid using global ve.init.target" 2021-08-18 16:50:04 +00:00
widgets Merge "Rename custom outline widget events to not conflict" 2021-08-19 13:49:29 +00:00
ve.ui.MWCommandRegistry.js Add command to insert non-breaking space 2021-04-08 00:09:35 +02:00
ve.ui.MWExtensionWindow.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWSequenceRegistry.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWSurface.js eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
ve.ui.MWTransclusionsBooklet.js Method for getting the currently selected element 2021-06-10 15:32:07 +02:00
ve.ui.MWWikitextCommandRegistry.js Add command to insert non-breaking space 2021-04-08 00:09:35 +02:00
ve.ui.MWWikitextDataTransferHandlerFactory.js build: Update eslint-config-wikimedia to 0.17.0 2020-08-18 13:16:49 +01:00
ve.ui.MWWikitextSequenceRegistry.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.ui.MWWikitextSurface.js eslint: Enable the mediawiki/class-doc rule and make pass 2020-04-17 22:59:11 +01:00
ve.ui.MWWikitextTransferRegistry.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00