mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
WebUI: enforce coding style
* WebUI: prefer `classList.toggle()` over other pattern Addresses: https://github.com/qbittorrent/qBittorrent/pull/23231#discussion_r2328647152 * WebUI: prefer using built-in objects Constructor * WebUI: combine function calls PR #23261.
This commit is contained in:
@@ -710,10 +710,8 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||
colElem.classList.toggle("reverse", isReverse);
|
||||
}
|
||||
const oldColElem = getCol(this.dynamicTableFixedHeaderDivId, oldColumn);
|
||||
if (oldColElem !== null) {
|
||||
oldColElem.classList.remove("sorted");
|
||||
oldColElem.classList.remove("reverse");
|
||||
}
|
||||
if (oldColElem !== null)
|
||||
oldColElem.classList.remove("sorted", "reverse");
|
||||
}
|
||||
|
||||
getSelectedRowId() {
|
||||
|
||||
Reference in New Issue
Block a user