You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/07/31 14:18:48 UTC

[allura] branch master updated: allow incomplete URLs without http:// to be entered in browser

This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new bd364e9  allow incomplete URLs without http:// to be entered in browser
bd364e9 is described below

commit bd364e93d765d2108aecc90e76118b557795df4c
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Fri Jul 31 10:18:28 2020 -0400

    allow incomplete URLs without http:// to be entered in browser
---
 Allura/allura/ext/admin/widgets.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Allura/allura/ext/admin/widgets.py b/Allura/allura/ext/admin/widgets.py
index 8ae0127..4df1ff0 100644
--- a/Allura/allura/ext/admin/widgets.py
+++ b/Allura/allura/ext/admin/widgets.py
@@ -207,11 +207,9 @@ class MetadataAdmin(ff.AdminForm):
         icon = ew.FileField(label='Icon', attrs={'accept': 'image/*'},
                             validator=V.IconValidator())
         external_homepage = ew.InputField(field_type="text", label='Homepage',
-                                          attrs={'type': 'url'},
                                           validator=fev.URL(add_http=True))
         video_url = ew.InputField(field_type="text", label="Video (YouTube)",
-                                  attrs={'type': 'url',
-                                         'title': 'Paste in a Youtube URL', 'class': 'tooltip'},
+                                  attrs={'title': 'Paste in a Youtube URL', 'class': 'tooltip'},
                                   validator=V.YouTubeConverter())
         support_page = ew.InputField(field_type="text", label='Support Page')
         support_page_url = ew.InputField(