mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 10:46:15 +03:00
WebUI: Fix minor error
No timer is set when the functions are directly called.
This commit is contained in:
parent
d06d7b1f6d
commit
cb9ed13d69
1 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ var loadTorrentsInfo = function () {
|
||||||
|
|
||||||
var updateTransferList = function() {
|
var updateTransferList = function() {
|
||||||
clearTimeout(loadTorrentsInfoTimer);
|
clearTimeout(loadTorrentsInfoTimer);
|
||||||
loadTorrentsInfoTimer = loadTorrentsInfo();
|
loadTorrentsInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEvent('load', function () {
|
window.addEvent('load', function () {
|
||||||
|
@ -253,7 +253,7 @@ window.addEvent('load', function () {
|
||||||
|
|
||||||
var updateTransferInfo = function() {
|
var updateTransferInfo = function() {
|
||||||
clearTimeout(loadTransferInfoTimer);
|
clearTimeout(loadTransferInfoTimer);
|
||||||
loadTransferInfoTimer = loadTransferInfo();
|
loadTransferInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start fetching data now
|
// Start fetching data now
|
||||||
|
|
Loading…
Reference in a new issue