mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Fix errors from using strict mode
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
var categories = {};
|
||||
var defaultSavePath = "";
|
||||
|
||||
getCategories = function() {
|
||||
var getCategories = function() {
|
||||
new Request.JSON({
|
||||
url: 'api/v2/torrents/categories',
|
||||
noCache: true,
|
||||
@@ -46,7 +46,7 @@ getCategories = function() {
|
||||
}).send();
|
||||
};
|
||||
|
||||
getPreferences = function() {
|
||||
var getPreferences = function() {
|
||||
new Request.JSON({
|
||||
url: 'api/v2/app/preferences',
|
||||
method: 'get',
|
||||
@@ -73,7 +73,7 @@ getPreferences = function() {
|
||||
}).send();
|
||||
};
|
||||
|
||||
changeCategorySelect = function(item) {
|
||||
var changeCategorySelect = function(item) {
|
||||
if (item.value == "\\other") {
|
||||
item.nextElementSibling.hidden = false;
|
||||
item.nextElementSibling.value = "";
|
||||
@@ -98,7 +98,7 @@ changeCategorySelect = function(item) {
|
||||
}
|
||||
};
|
||||
|
||||
changeTMM = function(item) {
|
||||
var changeTMM = function(item) {
|
||||
if (item.selectedIndex == 1) {
|
||||
$('savepath').disabled = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user