mediawiki-extensions-Visual.../modules/ve-mw/ui
Thiemo Kreuz 8831887e3c Update template search fallback to max out at 10
Before, the fallback algorithm was somewhat adaptive, trying harder and
harder the fewer CirrusSearch results have been found. This updated
algorithm guarantees that 10 results are shown.

Warning: You might see only 9 results. The reason is a bogus, unrelated
behavior in the mw.widgets.TitleWidget in core that's used as a base
class here. There is a "showMissing" option that's apparently enabled
by default, and prepends a non-existing title from the main namespace,
ignoring the "namespace" option. This extra result from the wrong
namespace is later dropped by the very same widget.

This code here sees 10 results before the bogus one is dropped.
Disabling "showMissing" causes other issues. We would need a series (?)
of custom hacks to work around all this, but this seems inappropriate.
Let's live with 9 for the moment.

Bug: T303524
Change-Id: I2c577c9ef2752b6c6cd360f4023e151e9272fcd5
2022-04-21 09:25:00 +00:00
..
actions Use new config option signature when building sequences 2022-03-11 17:12:54 +00:00
commands Move var declarations inline 2022-03-01 17:50:24 +00:00
contextitems Remove "delete" button from link node desktop context 2022-03-30 17:43:02 +01:00
datatransferhandlers Move var declarations inline 2022-03-01 17:50:24 +00:00
dialogs Use boolean RegExp.test() instead of .match() where possible 2022-03-24 11:04:43 +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 Update template search fallback to max out at 10 2022-04-21 09:25:00 +00:00
ve.ui.MWAriaDescribe.js Make better use of the ARIA mixin 2021-11-18 15:21:47 +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 Move var declarations inline 2022-03-01 17:50:24 +00:00
ve.ui.MWSequenceRegistry.js Use new config option signature when building sequences 2022-03-11 17:12:54 +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 Use boolean RegExp.test() instead of .match() where possible 2022-03-24 11:04:43 +01: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 Override default source mode font in placeholders too 2021-09-09 22:30:38 +02:00
ve.ui.MWWikitextTransferRegistry.js