mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
WebUI: enforce coding style
Actually, not all of them but some that can be enforced by eslint. The changes are made by eslint with minor manual tweaking. PR #17046.
This commit is contained in:
parent
5af96943e3
commit
dbfd6a2368
20 changed files with 155 additions and 98 deletions
|
@ -91,7 +91,7 @@ const getShowFiltersSidebar = function() {
|
|||
// Show Filters Sidebar is enabled by default
|
||||
const show = LocalPreferences.get('show_filters_sidebar');
|
||||
return (show === null) || (show === 'true');
|
||||
}
|
||||
};
|
||||
|
||||
function genHash(string) {
|
||||
// origins:
|
||||
|
@ -112,7 +112,8 @@ const fetchQbtVersion = function() {
|
|||
url: 'api/v2/app/version',
|
||||
method: 'get',
|
||||
onSuccess: function(info) {
|
||||
if (!info) return;
|
||||
if (!info)
|
||||
return;
|
||||
sessionStorage.setItem('qbtVersion', info);
|
||||
}
|
||||
}).send();
|
||||
|
@ -245,7 +246,7 @@ window.addEvent('load', function() {
|
|||
toggleFilterDisplay = function(filter) {
|
||||
const element = filter + "FilterList";
|
||||
LocalPreferences.set('filter_' + filter + "_collapsed", !$(element).hasClass("invisible"));
|
||||
$(element).toggleClass("invisible")
|
||||
$(element).toggleClass("invisible");
|
||||
const parent = $(element).getParent(".filterWrapper");
|
||||
const toggleIcon = $(parent).getChildren(".filterTitle img");
|
||||
if (toggleIcon)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue