mediawiki-extensions-Visual.../modules/ve-mw/ui
Thiemo Kreuz a6f784c095 Fix hiding unused template parameters sometimes not working
We ended mixing two concepts in a single method:

* We need a method that allows us to create the parameter list widget
when it's needed, even if it's empty. This is relevant when a template
is entirely empty, and the first parameter is added. This wasn't
working. Instead the parameter list was created with all parameters.

* On initialization we either want all parameters to be shown, or only
used ones. But this code is only needed once, on initialization. I
ended inlining this code in this patch.

Bug: T300640
Bug: T304046
Change-Id: I6620a870e4420dcb8fecf522b3274458eeec891d
2022-03-22 15:41:55 +01:00
..
actions Move var declarations inline 2022-03-01 17:50:24 +00:00
commands Move var declarations inline 2022-03-01 17:50:24 +00:00
contextitems Move var declarations inline 2022-03-01 17:50:24 +00:00
datatransferhandlers Move var declarations inline 2022-03-01 17:50:24 +00:00
dialogs Fix review button shown when review panel is already active 2022-03-21 11:37:58 +01:00
elements Use .bind() syntax where it makes code more readable 2022-02-21 10:34:03 +00:00
inspectors Move var declarations inline 2022-03-01 17:50:24 +00:00
pages Merge "Remove MWDismissibleMessageWidget and use MessageWidget's showClose option instead" 2022-03-17 11:43:33 +00:00
styles Fix template dialog parameter padding on mobile 2022-03-21 09:53:22 +01:00
tools Move var declarations inline 2022-03-01 17:50:24 +00:00
widgets Fix hiding unused template parameters sometimes not working 2022-03-22 15:41:55 +01:00
ve.ui.MWAriaDescribe.js Make better use of the ARIA mixin 2021-11-18 15:21:47 +00:00
ve.ui.MWCommandRegistry.js
ve.ui.MWExtensionWindow.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWSequenceRegistry.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWSurface.js Add mw-show-empty-elt to MW surfaces 2021-11-19 16:08:53 +00:00
ve.ui.MWWikitextCommandRegistry.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWWikitextDataTransferHandlerFactory.js Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWWikitextSequenceRegistry.js
ve.ui.MWWikitextSurface.js
ve.ui.MWWikitextTransferRegistry.js