mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
add aria-label
This commit is contained in:
parent
da82950c8e
commit
23ea19b97c
@ -139,6 +139,8 @@ define(req, function(AppConfig, Default, Language) {
|
||||
// text & number were missing from the existing list
|
||||
// "form_input_ph_email": "email@example.com",
|
||||
// "form_input_ph_url": "https://example.com",
|
||||
|
||||
Messages.form_date_time = "Select date and time";
|
||||
return Messages;
|
||||
|
||||
});
|
||||
|
||||
@ -2114,13 +2114,18 @@ define([
|
||||
get: function (opts, a, n, evOnChange) {
|
||||
opts = Util.clone(TYPES.date.defaultOpts);
|
||||
|
||||
var tag = h('input');
|
||||
var tag = h('input', {'aria-label': Messages.form_date_time});
|
||||
|
||||
var picker = Flatpickr(tag, {
|
||||
disableMobile: true,
|
||||
enableTime: true,
|
||||
time_24hr: is24h,
|
||||
dateFormat: dateFormat,
|
||||
onChange: function(date) {
|
||||
if (date) {
|
||||
$(tag).attr('aria-label', date);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var $tag = $(tag);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user