mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge branch '2024.6-rc' of github.com:cryptpad/cryptpad into 2024.6-rc
This commit is contained in:
commit
be5f9734a0
@ -580,6 +580,12 @@ define([
|
||||
let addTabListener = frame => {
|
||||
// find focusable elements
|
||||
let modalElements = $(frame).find('a, button, input, [tabindex]:not([tabindex="-1"]), textarea').filter(':visible').filter(':not(:disabled)');
|
||||
|
||||
if (modalElements.length === 0) {
|
||||
// there are no focusable elements -> nothing to do for us here
|
||||
return;
|
||||
}
|
||||
|
||||
// intialize with focus on first element
|
||||
modalElements[0].focus();
|
||||
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2024 XWiki CryptPad Team <contact@cryptpad.org> and contributors
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
define([
|
||||
'optional!/extensions.js'
|
||||
], (Extensions) => {
|
||||
|
||||
@ -1,3 +1,9 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2024 XWiki CryptPad Team <contact@cryptpad.org> and contributors
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
@import (reference) "../../customize/src/less2/include/browser.less";
|
||||
@import (reference) "../../customize/src/less2/include/framework.less";
|
||||
@import (reference) "../../customize/src/less2/include/tools.less";
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
// SPDX-FileCopyrightText: 2024 XWiki CryptPad Team <contact@cryptpad.org> and contributors
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
define([
|
||||
'jquery',
|
||||
'/common/inner/sidebar-layout.js',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user