Move some JS code from fomantic.js
to standalone files (#27994)
To improve maintainability, this PR: 1. Rename `web_src/js/modules/aria` to `web_src/js/modules/fomantic` (the code there are all for aria of fomantic) 2. Move api/transition related code to `web_src/js/modules/fomantic/api.js` and `web_src/js/modules/fomantic/transition.js` No logic is changed.
This commit is contained in:
parent
61ff91f960
commit
f860fe31d9
8 changed files with 100 additions and 93 deletions
5
web_src/js/modules/fomantic/base.js
Normal file
5
web_src/js/modules/fomantic/base.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
let ariaIdCounter = 0;
|
||||
|
||||
export function generateAriaId() {
|
||||
return `_aria_auto_id_${ariaIdCounter++}`;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue