Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/260218
Change subject: SpecialPageLanguage: Use title input (enable suggestions) and autofocus ...................................................................... SpecialPageLanguage: Use title input (enable suggestions) and autofocus The title input field requires a valid title, so suggestions make sense to suggest possible existing pages to the user. Autofocus the input field, if the title is empty allows the user to type the title with less clicks. Change-Id: I8a75fdeccbe2be2144fcc15439ffefae1e89c6a9 --- M includes/specials/SpecialPageLanguage.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/18/260218/1 diff --git a/includes/specials/SpecialPageLanguage.php b/includes/specials/SpecialPageLanguage.php index 02fca3a..f77cb3a 100644 --- a/includes/specials/SpecialPageLanguage.php +++ b/includes/specials/SpecialPageLanguage.php @@ -48,9 +48,10 @@ $page = array(); $page['pagename'] = array( - 'type' => 'text', + 'type' => 'title', 'label-message' => 'pagelang-name', 'default' => $defaultName, + 'autofocus' => $defaultName === null, ); // Options for whether to use the default language or select language -- To view, visit https://gerrit.wikimedia.org/r/260218 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8a75fdeccbe2be2144fcc15439ffefae1e89c6a9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits