mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
Fix errors from using strict mode
This commit is contained in:
@@ -24,10 +24,10 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
torrentsTable = new TorrentsTable();
|
||||
torrentPeersTable = new TorrentPeersTable();
|
||||
searchResultsTable = new SearchResultsTable();
|
||||
searchPluginsTable = new SearchPluginsTable();
|
||||
var torrentsTable = new TorrentsTable();
|
||||
var torrentPeersTable = new TorrentPeersTable();
|
||||
var searchResultsTable = new SearchResultsTable();
|
||||
var searchPluginsTable = new SearchPluginsTable();
|
||||
|
||||
var updatePropertiesPanel = function() {};
|
||||
|
||||
@@ -324,7 +324,7 @@ window.addEvent('load', function() {
|
||||
if (!categoryList)
|
||||
return;
|
||||
var childrens = categoryList.childNodes;
|
||||
for (var i in childrens) {
|
||||
for (var i = 0; i < childrens.length; ++i) {
|
||||
if (childrens[i].id == selected_category)
|
||||
childrens[i].className = "selectedFilter";
|
||||
else
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -31,12 +31,43 @@ function getLocalStorageItem(name, defaultVal) {
|
||||
return val;
|
||||
}
|
||||
|
||||
var saveWindowSize = function() {};
|
||||
var loadWindowWidth = function() {};
|
||||
var loadWindowHeight = function() {};
|
||||
var showDownloadPage = function() {};
|
||||
var globalUploadLimitFN = function() {};
|
||||
var uploadLimitFN = function() {};
|
||||
var shareRatioFN = function() {};
|
||||
var toggleSequentialDownloadFN = function() {};
|
||||
var toggleFirstLastPiecePrioFN = function() {};
|
||||
var setSuperSeedingFN = function() {};
|
||||
var setForceStartFN = function() {};
|
||||
var globalDownloadLimitFN = function() {};
|
||||
var StatisticsLinkFN = function() {};
|
||||
var downloadLimitFN = function() {};
|
||||
var deleteFN = function() {};
|
||||
var startFN = function() {};
|
||||
var pauseFN = function() {};
|
||||
var startFN = function() {};
|
||||
var autoTorrentManagementFN = function() {};
|
||||
var recheckFN = function() {};
|
||||
var reannounceFN = function() {};
|
||||
var setLocationFN = function() {};
|
||||
var renameFN = function() {};
|
||||
var torrentNewCategoryFN = function() {};
|
||||
var torrentSetCategoryFN = function() {};
|
||||
var createCategoryFN = function() {};
|
||||
var editCategoryFN = function() {};
|
||||
var removeCategoryFN = function() {};
|
||||
var deleteUnusedCategoriesFN = function() {};
|
||||
var startTorrentsByCategoryFN = function() {};
|
||||
var pauseTorrentsByCategoryFN = function() {};
|
||||
var deleteTorrentsByCategoryFN = function() {};
|
||||
var copyNameFN = function() {};
|
||||
var copyMagnetLinkFN = function() {};
|
||||
var copyHashFN = function() {};
|
||||
var setPriorityFN = function() {};
|
||||
|
||||
initializeWindows = function() {
|
||||
|
||||
var initializeWindows = function() {
|
||||
saveWindowSize = function(windowId) {
|
||||
var size = $(windowId).getSize();
|
||||
localStorage.setItem('window_' + windowId + '_width', size.x);
|
||||
|
||||
@@ -352,5 +352,5 @@ var updateTorrentFilesData = function() {
|
||||
loadTorrentFilesData();
|
||||
};
|
||||
|
||||
fTable = new filesDynTable();
|
||||
var fTable = new filesDynTable();
|
||||
fTable.setup($('filesTable'));
|
||||
|
||||
@@ -232,7 +232,7 @@ var removeTrackerFN = function(element) {
|
||||
}).send();
|
||||
};
|
||||
|
||||
torrentTrackersTable = new trackersDynTable();
|
||||
var torrentTrackersTable = new trackersDynTable();
|
||||
torrentTrackersTable.setup($('trackersTable'), torrentTrackersContextMenu);
|
||||
|
||||
new ClipboardJS('#CopyTrackerUrl', {
|
||||
|
||||
@@ -107,5 +107,5 @@ var updateWebSeedsData = function() {
|
||||
loadWebSeedsData();
|
||||
};
|
||||
|
||||
wsTable = new webseedsDynTable();
|
||||
var wsTable = new webseedsDynTable();
|
||||
wsTable.setup($('webseedsTable'));
|
||||
|
||||
Reference in New Issue
Block a user