input type="date" here will allow datepicker.js to be eliminated
authorroot <root@ellen.local.lan>
Wed, 2 Dec 2020 14:36:26 +0000 (09:36 -0500)
committerroot <root@ellen.local.lan>
Wed, 2 Dec 2020 14:36:26 +0000 (09:36 -0500)
and should fall back to type="text" in the few remaining browsers
that don't support it.

webcit/calendar_tools.c

index 86da183b8abcca7f6a8666b7e2b99a1ae1142fc5..3d875c307bdbc738c73b86a7072cf5b0ab5a55f1 100644 (file)
@@ -68,7 +68,7 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix, int d
                localtime_r(&tt, &tm);
        }
 
-       wc_printf("<input type=\"text\" name=\"");
+       wc_printf("<input type=\"date\" name=\"");
        StrBufAppendBufPlain(WCC->WBuf, prefix, -1, 0);
        wc_printf("\" id=\"");
        StrBufAppendBufPlain(WCC->WBuf, prefix, -1, 0);