Fix errors from using strict mode

This commit is contained in:
Chocobo1 2018-11-30 18:35:32 +08:00
parent 1cb065edc6
commit ba32525b45
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
9 changed files with 81 additions and 50 deletions

View file

@ -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;