mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
add alert attributes
This commit is contained in:
parent
82442bf7c2
commit
41497a136a
@ -2679,7 +2679,10 @@ define([
|
||||
$creation.append(title);
|
||||
|
||||
if (early === 1) {
|
||||
$creation.append(h('div.cp-creation-early.alert.alert-warning', Messages._getKey('premiumAccess', [
|
||||
$creation.append(h('div.cp-creation-early.alert.alert-warning',{
|
||||
role: 'alert',
|
||||
'aria-live': 'assertive'
|
||||
}, Messages._getKey('premiumAccess', [
|
||||
domain
|
||||
])));
|
||||
}
|
||||
@ -2777,7 +2780,10 @@ define([
|
||||
// Password
|
||||
let text;
|
||||
if (type === 'form') {
|
||||
text = h('div.cp-creation-password-warning.alert.alert-info.dismissable', h('span.cp-inline-alert-text', Messages.form_passwordWarning));
|
||||
text = h('div.cp-creation-password-warning.alert.alert-info.dismissable',{
|
||||
role: 'alert',
|
||||
'aria-live': 'assertive'
|
||||
}, h('span.cp-inline-alert-text', Messages.form_passwordWarning));
|
||||
}
|
||||
var password = h('div.cp-creation-password', [
|
||||
UI.createCheckbox('cp-creation-password', Messages.properties_addPassword, false),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user