mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-10 23:42:46 -07:00
Fix errors from using strict mode
This commit is contained in:
parent
1cb065edc6
commit
ba32525b45
9 changed files with 81 additions and 50 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue