mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
update aria-checked attribute dynamically
This commit is contained in:
parent
3e98a8bed2
commit
77afbeb2ab
@ -1359,13 +1359,12 @@ define([
|
||||
});
|
||||
|
||||
$input.change(function () {
|
||||
$mark.attr('aria-checked', $input.is(':checked'));
|
||||
if (!opts.labelAlt) { return; }
|
||||
if ($input.is(':checked') !== checked) {
|
||||
$(label).text(opts.labelAlt);
|
||||
$mark.attr('aria-checked', 'true');
|
||||
} else {
|
||||
$(label).text(labelTxt);
|
||||
$mark.attr('aria-checked', 'false');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user