forked from forgejo/forgejo
Remove jQuery class from the diff view (#30176)
- Switched from jQuery class functions to plain JavaScript `classList` - Tested the diff view functionality and it works as before --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com> Co-authored-by: silverwind <me@silverwind.io> (cherry picked from commit c487a32bcd093affe3284282ea279d97f52a867f)
This commit is contained in:
parent
6d164224e9
commit
ecc78da55a
2 changed files with 32 additions and 25 deletions
|
@ -51,7 +51,7 @@ export function isElemHidden(el) {
|
|||
return res[0];
|
||||
}
|
||||
|
||||
export function queryElemSiblings(el, selector) {
|
||||
export function queryElemSiblings(el, selector = '*') {
|
||||
return Array.from(el.parentNode.children).filter((child) => child !== el && child.matches(selector));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue