From: Matthias Schmidt Date: Sat, 19 Dec 2020 12:16:44 +0000 (+0100) Subject: Add autocomplete support for url form field X-Git-Tag: 5.4.0_Alpha_1~521^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5672467c45ad2b3d2a4731ce5516746f3a0e6d3b;p=GitHub%2FWoltLab%2FWCF.git Add autocomplete support for url form field --- diff --git a/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php b/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php index 7f56e0b0fc..d40a818ba7 100644 --- a/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php +++ b/wcfsetup/install/files/lib/system/form/builder/field/UrlFormField.class.php @@ -14,6 +14,18 @@ use wcf\util\Url; * @since 5.2 */ class UrlFormField extends TextFormField { + /** + * @inheritDoc + * @since 5.4 + */ + protected function getValidAutoCompleteTokens(): array { + return [ + 'url', + 'photo', + 'impp', + ]; + } + /** * @inheritDoc */