mediawiki-extensions-Visual.../modules/ve-mw
Thiemo Kreuz 45096d1e2f Streamline and harden template paramter search widget behavior
What this changes:
* The moment the user selects anything in the parameter search
  widget, the input is cleared, no matter what happens next.
  Even in case of an error. We know the input was bad in this
  case. Let's get rid of it.
* The method makes sure it does not even try to add a
  duplicate parameter. This should be unreachable, but better
  be safe than sorry.

This is split from I5eeb973. I run into this while playing
around with different approaches related to hiding deprecated
parameters. Typically there should be no way the parameter
search widget offers a duplicate. Still I believe it's a good
idea to have this extra safety-net.

Bug: T272487
Bug: T288827
Change-Id: I04e76d73b4a3f6467d0ccf3ccff5d2f6b4114bd9
2021-08-20 07:46:26 +00:00
..
ce Minor documentation updates in template related classes 2021-06-25 16:46:59 +02:00
dm Revert "Hide deprecated parameters if they don't have a value" 2021-08-03 08:24:24 +00:00
init Move abort event tracking from the start to the end of the teardown process 2021-07-27 22:50:52 +02:00
preinit Avoid conflicts between 2017 wikitext editor and DiscussionTools new topic tool 2021-07-28 16:10:22 +02:00
tests Revert "Hide deprecated parameters if they don't have a value" 2021-08-03 08:24:24 +00:00
themes
ui Streamline and harden template paramter search widget behavior 2021-08-20 07:46:26 +00:00