var textlen = $(this).val().length;
$('#character-counter').text(textlen);
});
- $textarea.editor_autocomplete(baseurl+"/acl");
+ $textarea.editor_autocomplete(baseurl + '/search/acl');
$textarea.bbco_autocomplete('bbcode');
let $acl_allow_input = $('#acl_allow');
e.stopPropagation()
}
});
+ // Accessibility: enable space and enter to open a panel when focused
+ $('body').on('keyup', '[data-toggle="collapse"]:focus', function (e) {
+ if (e.key === ' ' || e.key === 'Enter') {
+ $(this).click();
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ });
$('#visibility-public-panel').on('show.bs.collapse', function() {
$('#visibility-public').prop('checked', true);
$acl_allow_input.tagsinput({
confirmKeys: [13, 44],
- cancelConfirmKeysOnEmpty: true,
freeInput: false,
tagClass: function(item) {
switch (item.type) {