From 0a1323f907ee503ac3b090dbe315dbc0399f713b Mon Sep 17 00:00:00 2001 From: Robin <100402885+robin-NEC@users.noreply.github.com> Date: Wed, 4 Jan 2023 17:34:32 +0530 Subject: [PATCH 1/2] [7227] Autofocus the `upload` button when page is rendered --- ckan/templates/package/snippets/resource_upload_field.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/templates/package/snippets/resource_upload_field.html b/ckan/templates/package/snippets/resource_upload_field.html index a831f1aa451..da5ff19394f 100644 --- a/ckan/templates/package/snippets/resource_upload_field.html +++ b/ckan/templates/package/snippets/resource_upload_field.html @@ -45,7 +45,7 @@ onclick=" document.getElementById('resource-url-upload').checked = true; document.getElementById('field-resource-upload').click(); - ">{{ _("Upload") }} + "autofocus="true">{{ _("Upload") }} {% endif %}