Clean up functions in global scope

This commit is contained in:
Chocobo1
2024-02-08 12:03:10 +08:00
parent 9b64d50660
commit f7e9ff0fb0
24 changed files with 294 additions and 270 deletions

View File

@@ -36,7 +36,7 @@
},
onComplete: function() {
window.parent.updateMainData();
window.parent.closeWindows();
window.parent.qBittorrent.Client.closeWindows();
}
}).send();
}
@@ -49,7 +49,7 @@
'limit': limit
},
onComplete: function() {
window.parent.closeWindows();
window.parent.qBittorrent.Client.closeWindows();
}
}).send();
}
@@ -67,11 +67,11 @@
event.preventDefault();
},
'Escape': function(event) {
window.parent.closeWindows();
window.parent.qBittorrent.Client.closeWindows();
event.preventDefault();
},
'Esc': function(event) {
window.parent.closeWindows();
window.parent.qBittorrent.Client.closeWindows();
event.preventDefault();
}
}